[issue25652] collections.UserString.__rmod__() raises NameError
Raymond Hettinger
report at bugs.python.org
Sun Mar 6 15:34:19 EST 2016
Raymond Hettinger added the comment:
Antoine, do you have any thoughts on this one? I'm inclined to remove __rmod__ entirely. That would match what str does and it avoids having to guess what the user meant when writing "A(s) % UserString(t)" when A does not have a __mod__ formatting method.
----------
nosy: +pitrou
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25652>
_______________________________________
More information about the Python-bugs-list
mailing list