errno 22 instead of errno 2

G

Glenn Linderman

open("c:\abc","rb")

This simple one-line script, produces errno 22 on Python 2.6, but errno
2 on Python 2.5.2

Is this an unintentional regression? Or is this an intentional bug fix?

The file doesn't exist (errno 2) but I guess on Windows it is also
somewhat an invalid file name (errno 22).

Yes, I'm aware that \a is ASCII 007. Using a valid, non-existent file
name produces errno 2 on both versions.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,835
Latest member
KetoRushACVBuy

Latest Threads

Top