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.

作者 terry.reedy
收信人 benjamin.peterson, terry.reedy, vstinner
日期 2010-10-15.21:50:09
SpamBayes Score 1.82526e-10
Marked as misclassified
Message-id <1287179414.3.0.16191843819.issue10114@psf.upfronthosting.co.za>
In-reply-to
内容
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.
历史
日期 用户 动作 参数
2010-10-15 21:50:14terry.reedy修改recipients: + terry.reedy, vstinner, benjamin.peterson
2010-10-15 21:50:14terry.reedy修改messageid: <1287179414.3.0.16191843819.issue10114@psf.upfronthosting.co.za>
2010-10-15 21:50:09terry.reedy链接issue10114 messages
2010-10-15 21:50:09terry.reedy创建