Diez B. Roggisch
deets at nospam.web.de
Mon Dec 8 16:49:57 EST 2008
Márcio Faustino schrieb:
> So, no chance of doing this:
> # "A.py"
> from __future__ import division, with_statement
> # "B.py"
> from A import *
> print 1 / 2
> ...and printing 0.5, right? Too bad :)
Au contraire - *very* good. If it were otherwise, what would happen to
code that _relies_ on / returning an int - some 3rd-party-lib for
example? The same goes for code that contains "with" as variable name or
More information about the Python-list