Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

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.

----------
keywords: +patch
Added file: http://bugs.python.org/file10125/oct_and_hex_py3k.patch

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2337>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to