[Python-checkins] r59781 - python/trunk/Doc/library/functions.rst

georg.brandl python-checkins at python.org
Sun Jan 6 17:22:56 CET 2008


Author: georg.brandl
Date: Sun Jan 6 17:22:56 2008
New Revision: 59781
Modified:
 python/trunk/Doc/library/functions.rst
Log:
#1499: Document compile() exceptions.
Modified: python/trunk/Doc/library/functions.rst
==============================================================================
--- python/trunk/Doc/library/functions.rst	(original)
+++ python/trunk/Doc/library/functions.rst	Sun Jan 6 17:22:56 2008
@@ -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]])
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /