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 jcgoble3, pitrou, rhettinger, serhiy.storchaka, xiang.zhang
Date 2016-03-06.20:48:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1457297291.67.0.506243807567.issue25652@psf.upfronthosting.co.za>
In-reply-to
Content
What about such example?

>>> class F:
...     def __init__(self, value):
...         self.value = value
...     def __mod__(self, other):
...         if isinstance(other, str):
...             return self.value % other
...         return NotImplemented
... 
>>> from collections import UserString
>>> F('say %s') % UserString('hello')
'say hello'
History
Date User Action Args
2016-03-06 20:48:11serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, pitrou, xiang.zhang, jcgoble3
2016-03-06 20:48:11serhiy.storchakasetmessageid: <1457297291.67.0.506243807567.issue25652@psf.upfronthosting.co.za>
2016-03-06 20:48:11serhiy.storchakalinkissue25652 messages
2016-03-06 20:48:11serhiy.storchakacreate