Built-in functions — Python 3.15.2 documentation
This event may also be raised by implicit compilation. Note. When compiling a string with multi-line code in 'single' or 'eval' ...
This event may also be raised by implicit compilation. Note. When compiling a string with multi-line code in 'single' or 'eval' ...
This is the official documentation for Python 3.15.2.Tutorial Start here: a tour of Python's syntax and features. Built-ins reference Built-in functions and classes. Library reference Standard library modules.
For example, the implementation of a function will still use assignments to local variables, but won't modify global variables or have other side effects.
You might have noticed that methods like insert, remove or sort that only modify the list have no return value printed – they return the default None. [1] This is a design principle for all mutable data structures in Python.
(exclamation mark). in formatted string literal ! (pdb command) ! (エクスクラメーション). curses モジュール内 · glob 形式のワイルドカード, [1] ...
Calling a Python function is easy. First, the Python program must somehow pass you the Python function object.Note that any Python object references which are provided to the caller are borrowed references; do not decrement their reference count! Some example calls
Symbols · call · class definition · function definition · generator expression · in assignment target list · in printf-style formatting, [1] · in regular expressions.
asyncio is a library to write concurrent code using the async/await syntax. asyncio is used as a foundation for multiple Python asynchronous frameworks that provide high-performance network and web-servers, database connection libraries, distributed task queues, etc.
tracing : deterministic function-call tracing (relocated from cProfile ). profiling.sampling : a new statistical sampling profiler (named Tachyon). The cProfile ...
The Python interpreter has a number of functions and types built into it that are always available. They are listed here in alphabetical order.Note that classes are callable (calling a class returns a new instance); instances are callable if their class has a __call__() method.
For example, environ['monty'] = 'python' maps the key 'MONTY' to the value 'python' . Note. Calling putenv() directly does not change os.environ , so it's ...
この仕組みは、トップレベルで多くのモジュールをインポートするものの、1回の実行ではその一部しか使わないことがあるアプリケーションで特に有用です。 ロードを遅らせる ...