#1499: Document compile() exceptions.

This commit is contained in:
Georg Brandl 2008-01-06 16:22:56 +00:00
parent 81de0d24d5
commit 516787dd98
1 changed files with 3 additions and 0 deletions

View 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` 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]])