Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Contenu du module « builtins »

Liste des classes du module builtins

Nom de la classe Description
bool bool(x) -> bool [extrait de bool.__doc__]
bytearray bytearray(iterable_of_ints) -> bytearray [extrait de bytearray.__doc__]
bytes bytes(iterable_of_ints) -> bytes [extrait de bytes.__doc__]
classmethod classmethod(function) -> method [extrait de classmethod.__doc__]
complex Create a complex number from a real part and an optional imaginary part. [extrait de complex.__doc__]
dict dict() -> new empty dictionary [extrait de dict.__doc__]
enumerate La classe enumerate permet d'énumérer l'ensemble des paires index/valeur (sous forme de tuple) d'une collection séquentielle. Return an enumerate object. [extrait de enumerate.__doc__]
filter filter(function or None, iterable) --> filter object [extrait de filter.__doc__]
float Convert a string or number to a floating point number, if possible. [extrait de float.__doc__]
frozenset frozenset() -> empty frozenset object [extrait de frozenset.__doc__]
int int([x]) -> integer [extrait de int.__doc__]
list Built-in mutable sequence. [extrait de list.__doc__]
map map(func, *iterables) --> map object [extrait de map.__doc__]
memoryview Create a new memoryview object which references the given object. [extrait de memoryview.__doc__]
object The base class of the class hierarchy. [extrait de object.__doc__]
property Property attribute. [extrait de property.__doc__]
range range(stop) -> range object [extrait de range.__doc__]
reversed Return a reverse iterator over the values of the given sequence. [extrait de reversed.__doc__]
set set() -> new empty set object [extrait de set.__doc__]
slice slice(stop) [extrait de slice.__doc__]
staticmethod staticmethod(function) -> method [extrait de staticmethod.__doc__]
str Cette classe représente le concept de chaîne de caractères. str(object='') -> str [extrait de str.__doc__]
super super() -> same as super(__class__, <first argument>) [extrait de super.__doc__]
tuple Built-in immutable sequence. [extrait de tuple.__doc__]
type type(object_or_name, bases, dict) [extrait de type.__doc__]
zip La classe zip permet d'agréger les éléments de n collections séquentielles et de parcourir ces éléments tuple par tuple. zip(*iterables) --> zip object [extrait de zip.__doc__]

Liste des exceptions du module builtins

Nom de la classe d'exception Description
ArithmeticError Base class for arithmetic errors. [extrait de ArithmeticError.__doc__]
AssertionError Assertion failed. [extrait de AssertionError.__doc__]
AttributeError Attribute not found. [extrait de AttributeError.__doc__]
BaseException Common base class for all exceptions [extrait de BaseException.__doc__]
BlockingIOError I/O operation would block. [extrait de BlockingIOError.__doc__]
BrokenPipeError Broken pipe. [extrait de BrokenPipeError.__doc__]
BufferError Buffer error. [extrait de BufferError.__doc__]
BytesWarning Base class for warnings about bytes and buffer related problems, mostly [extrait de BytesWarning.__doc__]
ChildProcessError Child process error. [extrait de ChildProcessError.__doc__]
ConnectionAbortedError Connection aborted. [extrait de ConnectionAbortedError.__doc__]
ConnectionError Connection error. [extrait de ConnectionError.__doc__]
ConnectionRefusedError Connection refused. [extrait de ConnectionRefusedError.__doc__]
ConnectionResetError Connection reset. [extrait de ConnectionResetError.__doc__]
DeprecationWarning Base class for warnings about deprecated features. [extrait de DeprecationWarning.__doc__]
EOFError Read beyond end of file. [extrait de EOFError.__doc__]
Exception Common base class for all non-exit exceptions. [extrait de Exception.__doc__]
FileExistsError File already exists. [extrait de FileExistsError.__doc__]
FileNotFoundError File not found. [extrait de FileNotFoundError.__doc__]
FloatingPointError Floating point operation failed. [extrait de FloatingPointError.__doc__]
FutureWarning Base class for warnings about constructs that will change semantically [extrait de FutureWarning.__doc__]
GeneratorExit Request that a generator exit. [extrait de GeneratorExit.__doc__]
ImportError Import can't find module, or can't find name in module. [extrait de ImportError.__doc__]
ImportWarning Base class for warnings about probable mistakes in module imports [extrait de ImportWarning.__doc__]
IndentationError Improper indentation. [extrait de IndentationError.__doc__]
IndexError Sequence index out of range. [extrait de IndexError.__doc__]
InterruptedError Interrupted by signal. [extrait de InterruptedError.__doc__]
IsADirectoryError Operation doesn't work on directories. [extrait de IsADirectoryError.__doc__]
KeyboardInterrupt Program interrupted by user. [extrait de KeyboardInterrupt.__doc__]
KeyError Mapping key not found. [extrait de KeyError.__doc__]
LookupError Base class for lookup errors. [extrait de LookupError.__doc__]
MemoryError Out of memory. [extrait de MemoryError.__doc__]
ModuleNotFoundError Module not found. [extrait de ModuleNotFoundError.__doc__]
NameError Name not found globally. [extrait de NameError.__doc__]
NotADirectoryError Operation only works on directories. [extrait de NotADirectoryError.__doc__]
NotImplementedError Method or function hasn't been implemented yet. [extrait de NotImplementedError.__doc__]
OSError Base class for I/O related errors. [extrait de OSError.__doc__]
OverflowError Result too large to be represented. [extrait de OverflowError.__doc__]
PendingDeprecationWarning Base class for warnings about features which will be deprecated [extrait de PendingDeprecationWarning.__doc__]
PermissionError Not enough permissions. [extrait de PermissionError.__doc__]
ProcessLookupError Process not found. [extrait de ProcessLookupError.__doc__]
RecursionError Recursion limit exceeded. [extrait de RecursionError.__doc__]
ReferenceError Weak ref proxy used after referent went away. [extrait de ReferenceError.__doc__]
ResourceWarning Base class for warnings about resource usage. [extrait de ResourceWarning.__doc__]
RuntimeError Unspecified run-time error. [extrait de RuntimeError.__doc__]
RuntimeWarning Base class for warnings about dubious runtime behavior. [extrait de RuntimeWarning.__doc__]
StopAsyncIteration Signal the end from iterator.__anext__(). [extrait de StopAsyncIteration.__doc__]
StopIteration Signal the end from iterator.__next__(). [extrait de StopIteration.__doc__]
SyntaxError Invalid syntax. [extrait de SyntaxError.__doc__]
SyntaxWarning Base class for warnings about dubious syntax. [extrait de SyntaxWarning.__doc__]
SystemError Internal error in the Python interpreter. [extrait de SystemError.__doc__]
SystemExit Request to exit from the interpreter. [extrait de SystemExit.__doc__]
TabError Improper mixture of spaces and tabs. [extrait de TabError.__doc__]
TimeoutError Timeout expired. [extrait de TimeoutError.__doc__]
TypeError Inappropriate argument type. [extrait de TypeError.__doc__]
UnboundLocalError Local name referenced but not bound to a value. [extrait de UnboundLocalError.__doc__]
UnicodeDecodeError Unicode decoding error. [extrait de UnicodeDecodeError.__doc__]
UnicodeEncodeError Unicode encoding error. [extrait de UnicodeEncodeError.__doc__]
UnicodeError Unicode related error. [extrait de UnicodeError.__doc__]
UnicodeTranslateError Unicode translation error. [extrait de UnicodeTranslateError.__doc__]
UnicodeWarning Base class for warnings about Unicode related problems, mostly [extrait de UnicodeWarning.__doc__]
UserWarning Base class for warnings generated by user code. [extrait de UserWarning.__doc__]
ValueError Inappropriate argument value (of correct type). [extrait de ValueError.__doc__]
Warning Base class for warning categories. [extrait de Warning.__doc__]
ZeroDivisionError Second argument to a division or modulo operation was zero. [extrait de ZeroDivisionError.__doc__]

Liste des fonctions du module builtins

Signature de la fonction Description
abs(x) Return the absolute value of the argument. [extrait de abs.__doc__]
all(iterable) Return True if bool(x) is True for all values x in the iterable. [extrait de all.__doc__]
any(iterable) Return True if bool(x) is True for any x in the iterable. [extrait de any.__doc__]
ascii(obj) Return an ASCII-only representation of an object. [extrait de ascii.__doc__]
bin(number) Return the binary representation of an integer. [extrait de bin.__doc__]
breakpoint breakpoint(*args, **kws) [extrait de breakpoint.__doc__]
callable(obj) Return whether the object is callable (i.e., some kind of function). [extrait de callable.__doc__]
chr(i) Return a Unicode string of one character with ordinal i; 0 <= i <= 0x10ffff. [extrait de chr.__doc__]
compile(source, filename, mode, flags=0, dont_inherit=False, optimize=-1, *, _feature_version=-1) Compile source into a code object that can be executed by exec() or eval(). [extrait de compile.__doc__]
copyright() interactive prompt objects for printing the license text, a list of [extrait de __doc__]
credits() interactive prompt objects for printing the license text, a list of [extrait de __doc__]
delattr(obj, name) Deletes the named attribute from the given object. [extrait de delattr.__doc__]
dir dir([object]) -> list of strings [extrait de dir.__doc__]
divmod(x, y) Return the tuple (x//y, x%y). Invariant: div*y + mod == x. [extrait de divmod.__doc__]
eval(source, globals=None, locals=None) Evaluate the given source in the context of globals and locals. [extrait de eval.__doc__]
exec(source, globals=None, locals=None) Execute the given source in the context of globals and locals. [extrait de exec.__doc__]
exit(code=None)
format(value, format_spec='') Return value.__format__(format_spec) [extrait de format.__doc__]
getattr getattr(object, name[, default]) -> value [extrait de getattr.__doc__]
globals() Return the dictionary containing the current scope's global variables. [extrait de globals.__doc__]
hasattr(obj, name) Return whether the object has an attribute with the given name. [extrait de hasattr.__doc__]
hash(obj) Return the hash value for the given object. [extrait de hash.__doc__]
help(*args, **kwds) Define the builtin 'help'. [extrait de __doc__]
hex(number) Return the hexadecimal representation of an integer. [extrait de hex.__doc__]
id(obj) Return the identity of an object. [extrait de id.__doc__]
input(prompt='') -> str Cette fonction lit une chaîne de caractères à partir du flux d'entrée standard (sys.stdin). Read a string from standard input. The trailing newline is stripped. [extrait de input.__doc__]
isinstance(obj, class_or_tuple) Return whether an object is an instance of a class or of a subclass thereof. [extrait de isinstance.__doc__]
issubclass(cls, class_or_tuple) Return whether 'cls' is a derived from another class or is the same class. [extrait de issubclass.__doc__]
iter iter(iterable) -> iterator [extrait de iter.__doc__]
len(data) -> int Cette fonction permet de calculer la taille d'une donnée composées (chaîne de caractères, list, tuple, set, dict...). Return the number of items in a container. [extrait de len.__doc__]
license() interactive prompt objects for printing the license text, a list of [extrait de __doc__]
locals() Return a dictionary containing the current scope's local variables. [extrait de locals.__doc__]
max max(iterable, *[, default=obj, key=func]) -> value [extrait de max.__doc__]
min min(iterable, *[, default=obj, key=func]) -> value [extrait de min.__doc__]
next next(iterator[, default]) [extrait de next.__doc__]
oct(number) Return the octal representation of an integer. [extrait de oct.__doc__]
open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None) Open file and return a stream. Raise OSError upon failure. [extrait de open.__doc__]
ord(c) Return the Unicode code point for a one-character string. [extrait de ord.__doc__]
pow(base, exp, mod=None) Equivalent to base**exp with 2 arguments or base**exp % mod with 3 arguments [extrait de pow.__doc__]
print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False) -> None Cette fonction affiche les valeurs passées en paramètres dans un flux (sys.stdout par défaut). print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False) [extrait de print.__doc__]
quit(code=None)
repr(obj) Return the canonical string representation of the object. [extrait de repr.__doc__]
round(number, ndigits=None) Round a number to a given precision in decimal digits. [extrait de round.__doc__]
setattr(obj, name, value) Sets the named attribute on the given object to the specified value. [extrait de setattr.__doc__]
sorted(iterable, /, *, key=None, reverse=False) Return a new list containing all items from the iterable in ascending order. [extrait de sorted.__doc__]
sum(iterable, start=0) -> number Ajoute à la valeur de start la somme des éléments de la collection passée en premier paramètre. Return the sum of a 'start' value (default: 0) plus an iterable of numbers [extrait de sum.__doc__]
vars vars([object]) -> dictionary [extrait de vars.__doc__]

Liste des variables globales du module builtins

Nom de la variable globale Valeur
Ellipsis Ellipsis
False
None
NotImplemented NotImplemented
qApp None
True

Liste des alias du module builtins

Nom de l'alias Définition ciblée
EnvironmentError OSError
IOError OSError