from future module!!!!!!!

Michael ms at cerenity.org
Wed Jan 31 19:37:49 EST 2007


Stargaming wrote:

> The 'from' clause is a keyword in python used for
> imports in the module namespace.

Typically, but in the case of "from __future__ ..." it actually changes the
logic of the interpreter/compiler. As a result if you intend to use any
features from __future__ you have to ensure that that directive comes first.
It looks like any other module on the surface, but it's a little special.

(This also means that if you intend to use any modules that use these
features you need to import it in your top level code as well)


Michael.



More information about the Python-list mailing list