From: Georg Brandl Date: Sun, 6 Jan 2008 16:22:56 +0000 (+0000) Subject: #1499: Document compile() exceptions. X-Git-Tag: v2.6a1~712 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=516787dd98134f1d866b20fb42d8c4da53259b4a;p=python #1499: Document compile() exceptions. --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 693af64563..5d07fbc2a7 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -221,6 +221,9 @@ available. They are listed here in alphabetical order. can be found as the :attr:`compiler_flag` attribute on the :class:`_Feature` instance in the :mod:`__future__` module. + This function raises :exc:`SyntaxError` if the compiled source is invalid, + and :exc:`TypeError` if the source contains null bytes. + .. function:: complex([real[, imag]])