Built-in Types — Python 3.15.2 documentation
empty sequences and collections: '' , () , [] , {} , set() , range(0). Operations and built-in functions that have a Boolean result always return 0 or False for ...
empty sequences and collections: '' , () , [] , {} , set() , range(0). Operations and built-in functions that have a Boolean result always return 0 or False for ...
Objects, values and types: Objects are Python's abstraction for data. All data in a Python program is represented by objects or by relations between objects ...
16 hours ago · This is an instance of PyTypeObject representing the Python frozenset type. The following type check macros work on pointers to any Python object. Likewise, the constructor functions work with any iterable Python object. int PySet_Check(PyObject *p) ¶ Return true if p is a set object or an instance of a subtype. This function always succeeds.
2to3 is a Python program that reads Python 2.x source code and applies a series of fixers to transform it into valid Python 3.x code. The standard library contains a rich set of fixers that will handle almost all code.
1 day ago · The modules described in this chapter provide support for concurrent execution of code. The appropriate choice of tool will depend on the task to be executed (CPU bound vs IO bound) and preferred s...
このメソッドは Python/C API での Python オブジェクトの型構造体の tp_iter スロットに対応します。 イテレータオブジェクト自体は以下の 2 つのメソッドをサポートする ...
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 ...
1 day ago · The instance’s contents are initially set to a copy of list, defaulting to the empty list []. list can be any iterable, for example a real Python list or a UserList object.
Python 3.0 is a far-ranging redesign of Python that breaks compatibility with the 2.x series. This means that existing Python code will need some conversion in ...
1 day ago · The recipes also give ideas about ways that the tools can be combined — for example, how starmap () and repeat () can work together. The recipes also show patterns for using itertools with the operator and collections modules as well as with the built-in itertools such as map (), filter (), reversed (), and enumerate ().
Symbols · comment, [1], [2] · in doctests · in printf-style formatting, [1] · in regular expressions · in string formatting · source encoding declaration.
16 hours ago · It helps to have a Python interpreter handy for hands-on experience, but all examples are self-contained, so the tutorial can be read off-line as well. For a description of standard objects and modules, see Python built-ins reference and The Python standard library. The Python Language Reference gives a more formal definition of the language.
객체, 값, 형: Objects are Python's abstraction for data. All data in a Python program is represented by objects or by relations between objects.