New submission from Paul Koning: The __bytes__ special method has no effect in a subclass of "int" because the bytes() builtin checks for int or int subclass before it gets around to looking for that special method. The attached example shows it.
---------- components: Interpreter Core files: bytes.py messages: 183155 nosy: pkoning priority: normal severity: normal status: open title: __bytes__ doesn't work in subclass of int type: behavior versions: Python 3.2 Added file: http://bugs.python.org/file29264/bytes.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17309> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com