This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gregory.p.smith
Recipients chris.jerdonek, ezio.melotti, georg.brandl, gregory.p.smith, mark.dickinson, python-dev, serhiy.storchaka
Date 2012-12-26.21:46:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1356558393.95.0.404451726529.issue16772@psf.upfronthosting.co.za>
In-reply-to
Content
I used it because Mark suggested it could have the same behavior as round() and that is the more abstract API that round uses.  Regardless, at this point I've added tests and tested for the TypeError when a float is passed as well as testing that the only valid values (2..36) all work.

I did not test to see that something supporting __index__ works as Mark suggests because I don't know off the top of my head of anything that does and it seems like a pointless thing to care about for this API.

If you want something different, feel free to change the code.  I'm done with this issue.
History
Date User Action Args
2012-12-26 21:46:34gregory.p.smithsetrecipients: + gregory.p.smith, georg.brandl, mark.dickinson, ezio.melotti, chris.jerdonek, python-dev, serhiy.storchaka
2012-12-26 21:46:33gregory.p.smithsetmessageid: <1356558393.95.0.404451726529.issue16772@psf.upfronthosting.co.za>
2012-12-26 21:46:33gregory.p.smithlinkissue16772 messages
2012-12-26 21:46:33gregory.p.smithcreate