[issue22189] collections.UserString missing some str methods

2019-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > collections.UserString.__rmod__ references an undefined variable `args`: This is a duplicate of issue25652. -- nosy: +serhiy.storchaka resolution: -> fixed stage: needs patch -> resolved status: open -> closed

[issue22189] collections.UserString missing some str methods

2019-03-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Orivej Desh, would you care to make PR to fix this (and add a test)? -- priority: low -> resolution: fixed -> status: closed -> open ___ Python tracker

[issue22189] collections.UserString missing some str methods

2019-03-25 Thread Orivej Desh
Orivej Desh added the comment: collections.UserString.__rmod__ references an undefined variable `args`: def __rmod__(self, format): return self.__class__(format % args)

[issue22189] collections.UserString missing some str methods

2015-05-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset c06b2480766d by Raymond Hettinger in branch 'default': Issue 22189: Add missing methods to UserString https://hg.python.org/cpython/rev/c06b2480766d -- nosy: +python-dev ___ Python tracker

[issue22189] collections.UserString missing some str methods

2015-05-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Joe. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22189 ___

[issue22189] collections.UserString missing some str methods

2015-04-15 Thread Joe Jevnik
Joe Jevnik added the comment: I have added a patch to add these to UserString. I also wrote a test case that would check the UserString, UserList, and UserDict's methods to make sure that new methods to str, list, or dict (or the removal of one of those methods from the User* version) will

[issue22189] collections.UserString missing some str methods

2015-03-09 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- nosy: +Claudiu.Popa versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22189 ___

[issue22189] collections.UserString missing some str methods

2015-03-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22189 ___ ___ Python-bugs-list

[issue22189] collections.UserString missing some str methods

2014-08-28 Thread Julian Gindi
Julian Gindi added the comment: Good catch. I'm gonna look into this. Seems like you should be able to access these from UserString as well. -- nosy: +Julian.Gindi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22189

[issue22189] collections.UserString missing some str methods

2014-08-28 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22189 ___ ___ Python-bugs-list

[issue22189] collections.UserString missing some str methods

2014-08-16 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22189 ___ ___ Python-bugs-list

[issue22189] collections.UserString missing some str methods

2014-08-13 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger components: +Library (Lib) nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22189 ___

[issue22189] collections.UserString missing some str methods

2014-08-12 Thread Nick Coghlan
New submission from Nick Coghlan: str currently implements some methods that UserString doesn't: set(dir(str)) - set(dir(UserString)) {'__rmod__', 'casefold', 'isprintable', 'maketrans', 'format_map', '__getnewargs__'} casefold, isprintable format_map (and perhaps __rmod__) should likely be