Why does this change __name__?
>>> print __name__
__main__
>>> from sqlalchemy.sql import *
>>> print __name__
sqlalchemy.sql
It is often bad practice to import *, but still a module should not
impact __name__ unless really necessary.
Primary side effect is you can no longer use
if __name__ == '__main__':
<do something>
Of course you could do something like this:
oldname = __name__
from sqlalchemy.sql import *
__name__ = oldname
--
Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---