Built-in functions — Python 3.15.2 documentation
Return the string representing a character with the specified Unicode code point. For example, chr(97) returns the string 'a' , while chr(8364) ...
Return the string representing a character with the specified Unicode code point. For example, chr(97) returns the string 'a' , while chr(8364) ...
This library reference manual describes the standard library distributed with Python. It also describes some of the optional components that are commonly ...
This is the official documentation for Python 3.15.2.Python's C API C API reference. FAQs Frequently asked questions (with answers!) Deprecations Deprecated functionality.
Source code: Lib/string/__init__.py String constants: The constants defined in this module are: Custom string formatting: The built-in string class provides ...
Lexicographical ordering for strings uses the Unicode code point number to order individual characters. Some examples of comparisons between sequences of the same type
1 day ago · What's new in Python 3.15? Or all "What's new" documents since Python 2.0 Tutorial Start here: a tour of Python's syntax and features Built-ins reference Built-in functions and classes Library reference Standard library modules Language reference Syntax and language elements Python setup and usage How to install, configure, and use Python Python HOWTOs In-depth topic manuals Installing Python ...
... error code and a string explaining the code). The associated value is ... Examples of operations which can be blocked with a PythonFinalizationError during the ...
How can I organize my code to make it easier to change the base class? How do I create static class data and static class methods? How can I overload constructors (or methods) in Python? I try to use __spam and I get an error about _SomeClassName__spam.
The environment where top-level code is run. Covers command-line interfaces, import-time behavior, and ``__name__ == '__main__'``. _thread ...
Textual data in Python is handled with str objects, or strings. Strings are immutable sequences of Unicode code points. String literals are written in a variety of ways: Single quotes: 'allows embedded "double" quotes'.
Source code: Lib/socket.py This module provides access to the BSD socket interface. It is available on all modern Unix systems, Windows, MacOS, and probably ...
2.2.1. Source Code Encoding. 3. An Informal Introduction to Python. 3.1. Using Python as a Calculator. 3.1.1. Numbers. 3.1.2. Text.7.1.1. Formatted string literals. 7.1.2. The string format() method. 7.1.3. Manual string formatting.
Return the error message corresponding to the error code in code. On ... For example, standard input is usually file descriptor 0, standard output is 1, and ...
1 day ago · The array module provides an array object that is like a list that stores only homogeneous data and stores it more compactly. The following example shows an array of numbers stored as two byte unsigned binary numbers (typecode "H") rather than the usual 16 bytes per entry for regular lists of Python int objects:
both raise SyntaxError ). For code that cannot use the lazy keyword directly (for example ... tbl = { key = "a string", moar-tbl = { key = 1, }, }. Add \xHH ...