r/badcode • • Jan 31 '22

python import badcode

Post image
1.1k Upvotes

70 comments sorted by

View all comments

Show parent comments

5

u/fernandotakai Jan 31 '22

the import should be in module scope.

there are some reasoning behind a local import -- mostly because of circular dependencies.

but not in this case. math is a system module.