Commit 37934338 authored by Georg Brandl's avatar Georg Brandl

#1499: Document compile() exceptions.

parent 0cb99d23
...@@ -221,6 +221,9 @@ available. They are listed here in alphabetical order. ...@@ -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` can be found as the :attr:`compiler_flag` attribute on the :class:`_Feature`
instance in the :mod:`__future__` module. 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]]) .. function:: complex([real[, imag]])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment