Backwards Compatibility of Python versions
Paul Rubin
phr-n2002a at nightsong.com
Sun Feb 3 01:32:10 EST 2002
Joshua Macy <l0819m0v0smfm001 at sneakemail.com> writes:
> try:
> from __future__ import division
> except ImportError:
> pass
>
> Of course, the semantics of division will then vary depending upon
> whether the type is integer...but that's the problem that future
> division is trying to solve, so I don't see any way around that.
So much for compatibility then.
More information about the Python-list
mailing list