Author mark.dickinson
Recipients fredrikj, mark.dickinson, orsenthil, pitrou, rhettinger, terry.reedy, vstinner, zooko
Date 2010-06-22.18:00:01
SpamBayes Score 4.94274e-05
Marked as misclassified No
Message-id <1277229603.82.0.238529024758.issue3439@psf.upfronthosting.co.za>
In-reply-to
Content
So there are two issues here:

 - deprecation of int(my_float) and long(my_float)
 - removal of long in 3.x

I'm not sure which Terry is referring to here.

On the first, I don't think use of int() with float arguments actually *is* deprecated in any meaningful way.  At one point there was a push (related to PEP 3141) to deprecate truncating uses of int and introduce a new builtin trunk, but it never really took hold (and trunc ended up being relegated to the math module0;  I certainly don't expect to see such deprecation happen within the lifetime of Python 3.x, so I don't think it would be appropriate to mention it in the 2.x docs.

On the second, it's possible that there should be a mention somewhere in the 2.x docs that long() no longer exists in 3.x, and that for almost all uses int() works just as well.  A separate issue should probably be opened for this.
History
Date User Action Args
2010-06-22 18:00:04mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, terry.reedy, zooko, orsenthil, pitrou, vstinner, fredrikj
2010-06-22 18:00:03mark.dickinsonsetmessageid: <1277229603.82.0.238529024758.issue3439@psf.upfronthosting.co.za>
2010-06-22 18:00:01mark.dickinsonlinkissue3439 messages
2010-06-22 18:00:01mark.dickinsoncreate