>> future imports have to come first...
Tony> I thought that too, but if I run this script (with 2.2), it works:
...
Sure, but not with CVS HEAD:
% python
Python 2.5a0 (#75, Mar 15 2005, 21:55:51)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1671)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import example
Traceback (most recent call last):
File "<stdin>", line 1, in ?
SyntaxError: from __future__ imports must occur at the beginning of the
file (example.py, line 3)
Think of it as __future__-proofing... ;-)
Skip
_______________________________________________
spambayes-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/spambayes-dev