Backwards Compatibility of Python versions

Jason Orendorff jason at jorendorff.com
Mon Feb 4 20:31:12 EST 2002
Paul Rubin wrote:
> If I write in 2.2 or later 2.x's, I have to choose between two
> alternatives, both bad: [...]

I write int(x/y).

But note that this only works correctly for positive results,
which is mostly what I have.

## Jason Orendorff    http://www.jorendorff.com/






More information about the Python-list mailing list