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 benjamin.peterson
Recipients benjamin.peterson, brett.cannon, georg.brandl
Date 2008-04-27.19:04:31
SpamBayes Score 0.00508023
Marked as misclassified No
Message-id <1209323086.59.0.775030063031.issue2337@psf.upfronthosting.co.za>
In-reply-to
Content
Here's a patch for that. It warns for hex() when __hex__ is used,
otherwise it uses __index__. (This doesn't work for old style classes
because ob_tp->tp_as_number->tp_hex is filled.) Use of oct() just gets a
warning. The __hex__ and __oct__ methods of builtin number objects
should probably be removed.
History
Date User Action Args
2008-04-27 19:04:47benjamin.petersonsetspambayes_score: 0.00508023 -> 0.00508023
recipients: + benjamin.peterson, brett.cannon, georg.brandl
2008-04-27 19:04:46benjamin.petersonsetspambayes_score: 0.00508023 -> 0.00508023
messageid: <1209323086.59.0.775030063031.issue2337@psf.upfronthosting.co.za>
2008-04-27 19:04:44benjamin.petersonlinkissue2337 messages
2008-04-27 19:04:38benjamin.petersoncreate