Message 64079 - Python tracker (original) (raw)
As you said, it's a hack, so supporting an abuse of the API is not reasonable. You don't have to set the fromlist for the import to work. And if you are doing it to get the tail module, you can write some simple code to use getattr() to walk down from the root module to the one you want.
And I plan to add a much simpler API to the imp module for people to use directly so that these abuses don't continue.