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 vstinner
Recipients loewis, vstinner
Date 2010-09-10.21:30:19
SpamBayes Score 5.272212e-06
Marked as misclassified No
Message-id <1284154222.85.0.283363431979.issue9820@psf.upfronthosting.co.za>
In-reply-to
Content
Patch:
 - Remove the bytes version of listdir(): reuse the unicode version but converts the filename to bytes using PyUnicode_EncodeFSDefault() if the directory name is not unicode
 - use Py_XDECREF(d) instead of Py_DECREF(d) at the end (because d=NULL on error)
 - use Py_CLEAR(d) instead of "Py_DECREF(d); d=NULL;"
 - remove "char namebuf[MAX_PATH+5]" buffer (use less stack memory)
History
Date User Action Args
2010-09-10 21:30:23vstinnersetrecipients: + vstinner, loewis
2010-09-10 21:30:22vstinnersetmessageid: <1284154222.85.0.283363431979.issue9820@psf.upfronthosting.co.za>
2010-09-10 21:30:21vstinnerlinkissue9820 messages
2010-09-10 21:30:20vstinnercreate