Results for “python split method example program error code site:docs.python.org”
docs.python.org
Built-in Exceptions — Python 3.15.2 documentation
User code can raise built-in exceptions. This can be used to test an exception handler or to report an error condition “just like” the situation in which the ...
docs.python.org
Built-in Types — Python 3.15.2 documentation
Two methods support conversion to and from hexadecimal strings. Since Python’s floats are stored internally as binary numbers, converting a float to or from a decimal string usually involves a small rounding error.
docs.python.org
8. Compound statements — Python 3.15.2 documentation
If the finally clause executes a return , break or continue statement, the saved exception is discarded. For example, this function returns 42. Copy def f(): ...
docs.python.org
Programming FAQ — Python 3.15.2 documentation
How can I organize my code to make it easier to change the base class?How can I overload constructors (or methods) in Python?I try to use __spam and I get an error about _SomeClassName__spam.
docs.python.org
4. More Control Flow Tools — Python 3.15.2 documentation
The if is inside the loop, encountered a number of times. If the condition is ever true, a break will happen. If the condition is never true, the else clause ...
docs.python.org
Built-in Types — Python 3.12.16 documentation
(An example of an object supporting multiple forms of iteration would be a tree structure which supports both breadth-first and depth-first traversal.) This method corresponds to the tp_iter slot of the type structure for Python objects in the Python/C API.
docs.python.org
Exception Handling — Python 3.15.2 documentation
This function is normally only used by legacy code that needs to catch exceptions or save and restore the error indicator temporarily. For example: { PyObject * ...
docs.python.org
Python 3.15.2 documentation
1 day ago · This page is licensed under the Python Software Foundation License Version 2. Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
docs.python.org
re — Regular expression operations — Python 3.15.2 documentation
Source code: Lib/re/ This module provides regular expression matching operations similar to those found in Perl. Both patterns and strings to be searched ...
docs.python.org
The Python Tutorial — Python 3.15.2 documentation
15 hours ago · Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming.