Why exception from os.path.exists()?

Gregory Ewing greg.ewing at canterbury.ac.nz
Mon Jun 11 03:12:26 EDT 2018


Steven D'Aprano wrote:
> The evidence suggests that using the Carbon APIs, NUL is just another 
> Unicode character. Whatever API replaces Carbon, it will have to deal 
> with file names created under Carbon, and classic Mac, and so likely will 
> support the same.

Thsi raises the interesting quesion of what happens if you
use Carbon to create a file name containing a null, and then
try to access it throught the BSD API.

Does the file become inaccessible? Does the NUL get turned
into some kind of escape sequence?

-- 
Greg



More information about the Python-list mailing list