summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-01-06 16:22:56 (GMT)
committerGeorg Brandl <georg@python.org>2008-01-06 16:22:56 (GMT)
commit516787dd98134f1d866b20fb42d8c4da53259b4a (patch)
tree22ddbb9dbcdd5d76c710527b2bbf0bdb034391cf
parent81de0d24d589251d9465b3a214a9b9adb3962f4a (diff)
downloadcpython-516787dd98134f1d866b20fb42d8c4da53259b4a.zip
cpython-516787dd98134f1d866b20fb42d8c4da53259b4a.tar.gz
cpython-516787dd98134f1d866b20fb42d8c4da53259b4a.tar.bz2
#1499: Document compile() exceptions.
-rw-r--r--Doc/library/functions.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 693af64..5d07fbc 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]])