By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,660 Members | 1,102 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,660 IT Pros & Developers. It's quick & easy.

a odd thing of "from __future__ import ..."

P: n/a
i can't use "from __future__ import ..." statement import two
statesments in the same time.
for the simple code:
from __future__ import with_statement, division
with file('url.txt','r') as f:
for line in f:
print line

it can't run until i change the first sentence to below
from __future__ import with_statement
from __future__ import division

why? python2.5/windows.

Oct 14 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
mi******@gmail.com wrote:
i can't use "from __future__ import ..." statement import two
statesments in the same time.
why? python2.5/windows.
This is a bug:

http://groups.google.com/group/comp....638f3cd?hl=en&

Peter
Oct 14 '06 #2

P: n/a
Peter, thanks for the info.
Peter Otten wrote:
mi******@gmail.com wrote:
i can't use "from __future__ import ..." statement import two
statesments in the same time.
why? python2.5/windows.

This is a bug:

http://groups.google.com/group/comp....638f3cd?hl=en&

Peter
Oct 15 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.