#1499: Document compile() exceptions.
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 @@
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]])