Daniel Fortunov <pythonb...@danielfortunov.com> added the comment:

PR submitted here:
https://github.com/python/cpython/pull/13138

Rather than adding three different tests for the different code paths I chose 
to collapse the three different code paths by surfacing the underlying 
str.encode() defaults in the method signature of UserString.encode(), taking it 
down to a one-line implementation.

@xtreak: Thanks for the super-helpful triage and failing test case!

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36582>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to