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 pkoning
Recipients pkoning
Date 2013-02-27.15:41:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361979686.07.0.236846670702.issue17309@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-02-27 15:41:26pkoningsetrecipients: + pkoning
2013-02-27 15:41:26pkoningsetmessageid: <1361979686.07.0.236846670702.issue17309@psf.upfronthosting.co.za>
2013-02-27 15:41:26pkoninglinkissue17309 messages
2013-02-27 15:41:25pkoningcreate