errno 22 instead of errno 2

Discussion in 'Python' started by Glenn Linderman, Jan 28, 2009.

  1. 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.

    --
    Glenn -- http://nevcal.com/
    ===========================
    A protocol is complete when there is nothing left to remove.
    -- Stuart Cheshire, Apple Computer, regarding Zero Configuration Networking
     
    Glenn Linderman, Jan 28, 2009
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Markus Elfring

    conversion: errno => exception

    Markus Elfring, Nov 8, 2004, in forum: C++
    Replies:
    13
    Views:
    3,389
    Markus Elfring
    Jan 5, 2005
  2. Replies:
    3
    Views:
    379
    Ron Natalie
    Mar 4, 2005
  3. Marcia Hon

    errno 13

    Marcia Hon, Feb 9, 2004, in forum: C Programming
    Replies:
    3
    Views:
    483
    Mike Wahler
    Feb 9, 2004
  4. Richard Tobin

    errno-like variables in threaded environments

    Richard Tobin, Feb 27, 2004, in forum: C Programming
    Replies:
    4
    Views:
    365
    Richard Tobin
    Feb 27, 2004
  5. viza

    &errno, sizeof errno

    viza, Sep 12, 2008, in forum: C Programming
    Replies:
    20
    Views:
    1,016
    Tim Rentsch
    Sep 14, 2008
Loading...

Share This Page