[issue39944] UserString.join should return UserString

2020-03-12 Thread Dennis Sweeney
Change by Dennis Sweeney : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39944] UserString.join should return UserString

2020-03-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: This API is very old and doesn't seem to have a caused any issues in practice. Changing the API now is more likely to break existing code than to help anyone in the future. -- ___ Python tracker

[issue39944] UserString.join should return UserString

2020-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You are right. Sorry. -- stage: resolved -> patch review superseder: UserString doesn't combine nicely with strings -> ___ Python tracker

[issue39944] UserString.join should return UserString

2020-03-12 Thread Dennis Sweeney
Change by Dennis Sweeney : -- resolution: duplicate -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing

[issue39944] UserString.join should return UserString

2020-03-12 Thread Dennis Sweeney
Dennis Sweeney added the comment: This is not a duplicate: issue16397 concerned " ".join([US("a"), US("b")]) While this is concerned about the return value and acceptable parameters for UserString.join(). -- ___ Python tracker

[issue39944] UserString.join should return UserString

2020-03-12 Thread Dennis Sweeney
Change by Dennis Sweeney : -- pull_requests: +18304 pull_request: https://github.com/python/cpython/pull/18953 ___ Python tracker ___

[issue39944] UserString.join should return UserString

2020-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is a duplicate of issue16397. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> UserString doesn't combine nicely with strings ___ Python tracker

[issue39944] UserString.join should return UserString

2020-03-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39944] UserString.join should return UserString

2020-03-12 Thread Dennis Sweeney
New submission from Dennis Sweeney : It seems that `.join` methods typically return the type of the separator on which they are called: >>> bytearray(b" ").join([b"a", b"b"]) bytearray(b'a b') >>> b" ".join([bytearray(b"a"), bytearray(b"b")]) b'a b' This is broken in