[Python-Dev] os.access and Unicode

"Martin v. Löwis" martin at v.loewis.de
Tue Mar 8 10:17:58 CET 2005

Apparently, os.access was forgotten when the file system encoding
was introduced in Python 2.2, and then it was again forgotten in
PEP 277.

I've now fixed it in the trunk (posixmodule.c:2.334), and I wonder
whether this is a backport candidate. People who try to invoke
os.access with a non-ASCII filename on non-NT+ systems will get
a UnicodeError; with the patch, the operation will succeed
(assuming the characters are all supported in the file system
Should this be backported?


More information about the Python-Dev mailing list