Terry J. Reedy <tjre...@udel.edu> added the comment:

I think the title is slightly misleading. As I read the patch, the issue is 
that PyArg_ParseTupleAndKeywords requires that string args to C functions be 
valid Unicode strings (and that it does this by trying to encode to utf-8). 
Your patch subverts this by redefining filename to be a generic object, with a 
looser custom-coded test. It is not clear to me that filename, out of all 
string args to builtins, should be excepted this way. It seems to me that any 
real filename should be real unicode and there is no need for fake names that 
are not.

----------
nosy: +terry.reedy

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

Reply via email to