mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
#1499: Document compile() exceptions.
This commit is contained in:
parent
81de0d24d5
commit
516787dd98
1 changed files with 3 additions and 0 deletions
|
|
@ -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]])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue