builtin function compile exceptions thrown?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • James Thiele

    #1

    builtin function compile exceptions thrown?

    What exceptions (if any) can the python builtin compile() function
    throw besides SyntaxError?

  • Martin v. Löwis

    #2
    Re: builtin function compile exceptions thrown?

    James Thiele wrote:
    What exceptions (if any) can the python builtin compile() function
    throw besides SyntaxError?
    - TypeError, if the parameters are wrong/too many/too few
    - Any errors that a codec may raise, if there is an encoding
    declaration, plus (pre 2.5) MemoryError if the encoding is
    unknown.
    - MemoryError, if you run out of memory
    - SystemError, for various internal-error conditions

    Regards,
    Martin

    Comment

    • James Thiele

      #3
      Re: builtin function compile exceptions thrown?

      Thank you,
      James

      Martin v. Löwis wrote:
      James Thiele wrote:
      What exceptions (if any) can the python builtin compile() function
      throw besides SyntaxError?
      >
      - TypeError, if the parameters are wrong/too many/too few
      - Any errors that a codec may raise, if there is an encoding
      declaration, plus (pre 2.5) MemoryError if the encoding is
      unknown.
      - MemoryError, if you run out of memory
      - SystemError, for various internal-error conditions

      Regards,
      Martin

      Comment

      Working...