ManderaGeneral / generalimport

Handle all your optional dependencies with a single call!
https://pypi.org/project/generalimport/
Apache License 2.0
15 stars 1 forks source link

Remove top name only thing #17

Closed Mandera closed 1 year ago

Mandera commented 1 year ago

Might not be a good idea, do some testing, a relative import might not even trigger importer

Mandera commented 1 year ago

import foo.bar triggers find_module once with foo and once with bar.

from foo.bar import x is the same, nothing extra for x

Mandera commented 1 year ago

Don't really see a use for generalimport("foo.bar"). I haven't seen conditional modules within a package