
Built-in Types — Python 3.14.2 documentation
2 days ago · Numbers are created by numeric literals or as the result of built-in functions and operators. Unadorned integer literals (including hex, octal and binary numbers) yield integers. Numeric literals …
Integer Objects — Python 3.14.2 documentation
2 days ago · With the default flags (-1, or UNSIGNED_BUFFER without REJECT_NEGATIVE), multiple Python integers can map to a single value without overflow. For example, both 255 and -1 fit a single …
Built-in Functions — Python 3.14.2 documentation
2 days ago · If it is an integer, the array will have that size and will be initialized with null bytes. If it is an object conforming to the buffer interface, a read-only buffer of the object will be used to initialize the …
Dynamic type creation and names for built-in types - Python
2 days ago · This module provides names for many of the types that are required to implement a Python interpreter. It deliberately avoids including some of the types that arise only incidentally during …
typing — Support for type hints — Python 3.14.2 documentation
2 days ago · While type hints can be simple classes like float or str, they can also be more complex. The typing module provides a vocabulary of more advanced type hints. New features are frequently …
Data Types — Python 3.14.2 documentation
3 days ago · The modules described in this chapter provide a variety of specialized data types such as dates and times, fixed-type arrays, heap queues, double-ended queues, and enumerations.
array — Efficient arrays of numeric values — Python 3.14.2 …
2 days ago · This module defines an object type which can compactly represent an array of basic values: characters, integers, floating-point numbers. Arrays are sequence types and behave very …
enum — Support for enumerations — Python 3.14.2 documentation
2 days ago · IntEnum is the same as Enum, but its members are also integers and can be used anywhere that an integer can be used. If any integer operation is performed with an IntEnum …
numbers — Numeric abstract base classes — Python 3.14.2 …
2 days ago · Subtypes Rational and adds a conversion to int. Provides defaults for float(), numerator, and denominator. Adds abstract methods for pow() with modulus and bit-string operations: <<, >>, &, …
decimal — Decimal fixed-point and floating-point arithmetic — Python …
2 days ago · Decimal floating-point objects share many properties with the other built-in numeric types such as float and int. All of the usual math operations and special methods apply.