This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients benjamin.peterson, terry.reedy, vstinner
Date 2010-10-15.21:50:09
SpamBayes Score 1.82526e-10
Marked as misclassified No
Message-id <1287179414.3.0.16191843819.issue10114@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-10-15 21:50:14terry.reedysetrecipients: + terry.reedy, vstinner, benjamin.peterson
2010-10-15 21:50:14terry.reedysetmessageid: <1287179414.3.0.16191843819.issue10114@psf.upfronthosting.co.za>
2010-10-15 21:50:09terry.reedylinkissue10114 messages
2010-10-15 21:50:09terry.reedycreate