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 serhiy.storchaka
Recipients mark.dickinson, serhiy.storchaka, skrah
Date 2015-12-14.09:01:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1450083663.91.0.599711412526.issue25766@psf.upfronthosting.co.za>
In-reply-to
Content
Other conversion special methods work in str subclass.

>>> class I(str):
...     def __int__(self):
...         return 42
... 
>>> int(I('35'))
42
>>> int(I('35'), 8)
29
History
Date User Action Args
2015-12-14 09:01:03serhiy.storchakasetrecipients: + serhiy.storchaka, mark.dickinson, skrah
2015-12-14 09:01:03serhiy.storchakasetmessageid: <1450083663.91.0.599711412526.issue25766@psf.upfronthosting.co.za>
2015-12-14 09:01:03serhiy.storchakalinkissue25766 messages
2015-12-14 09:01:03serhiy.storchakacreate