builtin function compile exceptions thrown?
James Thiele
jamesthiele.usenet at gmail.com
Thu Jul 27 11:06:09 EDT 2006
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
More information about the Python-list
mailing list