R. David Murray <rdmur...@bitdance.com> added the comment: I have confirmed this in trunk and py3k, unit tests attached.
---------- components: +Interpreter Core -None keywords: +patch nosy: +r.david.murray priority: -> normal stage: -> needs patch title: Do not call __float__ to classes derived from str -> __float__ not called by 'float' on classes derived from str type: -> behavior versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.5 Added file: http://bugs.python.org/file13690/issue5759-trunk-test.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5759> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com