➜

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.

作者 pitrou
收信人 pitrou, vstinner
日期 2010-04-20.23:45:38
SpamBayes Score 1.3647289e-06
Marked as misclassified 否
Message-id <1271807139.9.0.378140861036.issue8477@psf.upfronthosting.co.za>
In-reply-to
内容
Some comments:
- your ssl_convert_filename() function has a strange signature
- using PyByteArray_AsString() is wrong, we release the GIL later and the buffer could be reallocated, leading to a crash; the right approach is to use PyObject_GetBuffer() and later PyBuffer_Release()
- as such, your function could simply return the bytes/bytearray PyObject *, and not fill the char * pointer
- adding tests for both the bytes and unicode cases would be nice
历史
日期 用户 动作 参数
2010-04-20 23:45:40pitrou修改recipients: + pitrou, vstinner
2010-04-20 23:45:39pitrou修改messageid: <1271807139.9.0.378140861036.issue8477@psf.upfronthosting.co.za>
2010-04-20 23:45:38pitrou链接issue8477 messages
2010-04-20 23:45:38pitrou创建