Thread: Exceptions

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2004
    Location
    Canada
    Posts
    242
    Rep Power
    0

    Exceptions


    Where can I get a list of the exceptions for built-ins like open()?
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2004
    Posts
    10
    Rep Power
    0
    Look in the module documentation. If you are on Windows, go to 'Start->Programs->PythonX.X->Module Docs'. I'm not sure how to start the documentation server on other platforms, unfortunately.

    Then go to:
    http://localhost:7464/exceptions.html
  4. #3
  5. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    here are all the Built-in exceptions Python defines explained. Though only a few are likly to apply to file() itself:

    http://www.python.org/doc/1.5.2p2/li...xceptions.html

    Hope this helps,

    Mark.
    programming language development: www.netytan.com Hula

  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2004
    Location
    Canada
    Posts
    242
    Rep Power
    0
    Thanks.

IMN logo majestic logo threadwatch logo seochat tools logo