[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2019-05-07 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: -13067 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2019-05-07 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: +13067 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2019-05-06 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: -4438 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2019-05-06 Thread anthony shaw
anthony shaw added the comment: This issue has been open for some time and the PR references an upstream branch that no longer exists. Can this request be closed, or has the conversation yet to be resolved? -- nosy: +anthony shaw ___ Python

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2017-11-22 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: I added a PR. FWIW, I still think it would make sense to change the return type of UserString.join, and maybe *split* and *partition methods (to return list/tuple of UserString objects) for the sake of consistency. --

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2017-11-22 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- keywords: +patch pull_requests: +4438 stage: -> patch review ___ Python tracker ___

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2017-10-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would support changing format() and format_map(). The join() method has been around for a long time, so changing it might do more harm than good. -- assignee: -> lisroach nosy: +lisroach, rhettinger versions:

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2017-10-22 Thread Dmitry Kazakov
New submission from Dmitry Kazakov : A few of the methods of collections.UserString return objects of type str when one would expect instances of UserString or a subclass. Here's an example for UserString.join: >>> s = UserString(', ').join(['a', 'b', 'c']);