Re: builtin function compile exceptions thrown?

2006-07-27 Thread Martin v. Löwis
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
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: builtin function compile exceptions thrown?

2006-07-27 Thread James Thiele
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

-- 
http://mail.python.org/mailman/listinfo/python-list


builtin function compile exceptions thrown?

2006-07-26 Thread James Thiele
What exceptions (if any) can the python builtin compile() function
throw besides SyntaxError?

-- 
http://mail.python.org/mailman/listinfo/python-list