- Glossary
- ********
- callable
- A callable is an object that can be called, possibly with a set of
- arguments (see *argument*), with the following syntax:
- callable(argument1, argument2, ...)
- A *function*, and by extension a *method*, is a callable. An
- instance of a class that implements the "__call__()" method is also
- a callable.
- callback
- A subroutine function which is passed as an argument to be executed
- at some point in the future.
- class
- A template for creating user-defined objects. Class definitions
- normally contain method definitions which operate on instances of
- the class.
- class variable
- A variable defined in a class and intended to be modified only at
- class level (i.e., not in an instance of the class).
- complex number
- An extension of the familiar real number system in which all
- numbers are expressed as a sum of a real part and an imaginary
- part. Imaginary numbers are real multiples of the imaginary unit
- (the square root of "-1"), often written "i" in mathematics or "j"
- in engineering. Python has built-in support for complex numbers,
- which are written with this latter notation; the imaginary part is
- written with a "j" suffix, e.g., "3+1j". To get access to complex
- equivalents of the "math" module, use "cmath". Use of complex
- numbers is a fairly advanced mathematical feature. If you're not
- aware of a need for them, it's almost certain you can safely ignore
- them.
- context manager
- An object which controls the environment seen in a "with" statement
- by defining "__enter__()" and "__exit__()" methods. See **PEP
- 343**.
- context variable
- A variable which can have different values depending on its
- context. This is similar to Thread-Local Storage in which each
- execution thread may have a different value for a variable.
- However, with context variables, there may be several contexts in
- one execution thread and the main usage for context variables is to
- keep track of variables in concurrent asynchronous tasks. See
- "contextvars".
- contiguous
- A buffer is considered contiguous exactly if it is either
- *C-contiguous* or *Fortran contiguous*. Zero-dimensional buffers
- are C and Fortran contiguous. In one-dimensional arrays, the items
- must be laid out in memory next to each other, in order of
- increasing indexes starting from zero. In multidimensional
- C-contiguous arrays, the last index varies the fastest when
- visiting items in order of memory address. However, in Fortran
- contiguous arrays, the first index varies the fastest.
- coroutine
- Coroutines are a more generalized form of subroutines. Subroutines
- are entered at one point and exited at another point. Coroutines
- can be entered, exited, and resumed at many different points. They
- can be implemented with the "async def" statement. See also **PEP
- 492**.
- coroutine function
- A function which returns a *coroutine* object. A coroutine
- function may be defined with the "async def" statement, and may
- contain "await", "async for", and "async with" keywords. These
- were introduced by **PEP 492**.
- CPython
- The canonical implementation of the Python programming language, as
- distributed on python.org. The term "CPython" is used when
- necessary to distinguish this implementation from others such as
- Jython or IronPython.
Python software and documentation are licensed under the PSF License Agreement.
Starting with Python 3.8.6, examples, recipes, and other code in the documentation are dual licensed under the PSF License Agreement and the Zero-Clause BSD license.
Some software incorporated into Python is under different licenses. The licenses are listed with code falling under that license. See Licenses and Acknowledgements for Incorporated Software for an incomplete list of these licenses.
Python and it's documentation is:
Copyright © 2001-2022 Python Software Foundation. All rights reserved.
Copyright © 2000 BeOpen.com. All rights reserved.
Copyright © 1995-2000 Corporation for National Research Initiatives. All rights reserved.
Copyright © 1991-1995 Stichting Mathematisch Centrum. All rights reserved.
See History and License for complete license and permissions information:
https://docs.python.org/3/license.html#psf-license