]> granicus.if.org Git - python/commitdiff
#1499: Document compile() exceptions.
authorGeorg Brandl <georg@python.org>
Sun, 6 Jan 2008 16:22:56 +0000 (16:22 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 6 Jan 2008 16:22:56 +0000 (16:22 +0000)
Doc/library/functions.rst

index 693af645638cab441d512f308c70ab458fb2a1b5..5d07fbc2a7333d4d7d8031ad733404f0efdd1bfa 100644 (file)
@@ -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]])