Alexander Belopolsky <belopol...@users.sourceforge.net> added the comment:

Committed issue11313.diff in revision 88553.

On the second thought, the getargs optimization is not worth the trouble 
because in existing sources 'e' code is used with constant encodings and one is 
unlikely to pass NULL as an encoding because that is equivalent to eliding the 
'e' code altogether.

I will keep this issue open to consider whether remaining  

        if (encoding == NULL)
            encoding = PyUnicode_GetDefaultEncoding();

clauses can be simply removed because the lower level code accepts NULL in 
encoding.

----------

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

Reply via email to