"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Doc/library/exceptions.rst" between
Python-3.9.3.tar.xz and Python-3.9.4.tar.xz

About: Python is an interpreted, interactive, object-oriented programming language. It incorporates modules, exceptions, dynamic typing, very high level dynamic data types, and classes. Newest major release.

exceptions.rst  (Python-3.9.3.tar.xz):exceptions.rst  (Python-3.9.4.tar.xz)
skipping to change at line 377 skipping to change at line 377
.. versionadded:: 3.5 .. versionadded:: 3.5
.. exception:: SyntaxError .. exception:: SyntaxError
Raised when the parser encounters a syntax error. This may occur in an Raised when the parser encounters a syntax error. This may occur in an
:keyword:`import` statement, in a call to the built-in functions :func:`exec` :keyword:`import` statement, in a call to the built-in functions :func:`exec`
or :func:`eval`, or when reading the initial script or standard input or :func:`eval`, or when reading the initial script or standard input
(also interactively). (also interactively).
Instances of this class have attributes :attr:`filename`, :attr:`lineno`, The :func:`str` of the exception instance returns only the error message.
:attr:`offset` and :attr:`text` for easier access to the details. :func:`str
` .. attribute:: filename
of the exception instance returns only the message.
The name of the file the syntax error occurred in.
.. attribute:: lineno
Which line number in the file the error occurred in. This is
1-indexed: the first line in the file has a ``lineno`` of 1.
.. attribute:: offset
The column in the line where the error occurred. This is
1-indexed: the first character in the line has an ``offset`` of 1.
.. attribute:: text
The source code text involved in the error.
.. exception:: IndentationError .. exception:: IndentationError
Base class for syntax errors related to incorrect indentation. This is a Base class for syntax errors related to incorrect indentation. This is a
subclass of :exc:`SyntaxError`. subclass of :exc:`SyntaxError`.
.. exception:: TabError .. exception:: TabError
Raised when indentation contains an inconsistent use of tabs and spaces. Raised when indentation contains an inconsistent use of tabs and spaces.
This is a subclass of :exc:`IndentationError`. This is a subclass of :exc:`IndentationError`.
 End of changes. 1 change blocks. 
4 lines changed or deleted 19 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)