Participer au site avec un Tip
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 :

Python 3.11.3

Contenu du module « sys »

Liste des fonctions du module sys

Signature de la fonction Description
addaudithook(hook) Adds a new audit hook callback. [extrait de addaudithook.__doc__]
audit audit(event, *args) [extrait de audit.__doc__]
breakpointhook breakpointhook(*args, **kws) [extrait de breakpointhook.__doc__]
call_tracing(func, args) Call func(*args), while tracing is enabled. [extrait de call_tracing.__doc__]
displayhook(object) Print an object to sys.stdout and also save it in builtins._ [extrait de displayhook.__doc__]
exc_info() Return current exception information: (type, value, traceback). [extrait de exc_info.__doc__]
excepthook(exctype, value, traceback) Handle an exception by displaying it with a traceback on sys.stderr. [extrait de excepthook.__doc__]
exception() Return the current exception. [extrait de exception.__doc__]
exit(status=None) Exit the interpreter by raising SystemExit(status). [extrait de exit.__doc__]
get_asyncgen_hooks() Return the installed asynchronous generators hooks. [extrait de get_asyncgen_hooks.__doc__]
get_coroutine_origin_tracking_depth() Check status of origin tracking for coroutine objects in this thread. [extrait de get_coroutine_origin_tracking_depth.__doc__]
get_int_max_str_digits() Return the maximum string digits limit for non-binary int<->str conversions. [extrait de get_int_max_str_digits.__doc__]
getallocatedblocks() Return the number of memory blocks currently allocated. [extrait de getallocatedblocks.__doc__]
getdefaultencoding() Return the current default encoding used by the Unicode implementation. [extrait de getdefaultencoding.__doc__]
getdlopenflags() Return the current value of the flags that are used for dlopen calls. [extrait de getdlopenflags.__doc__]
getfilesystemencodeerrors() Return the error mode used Unicode to OS filename conversion. [extrait de getfilesystemencodeerrors.__doc__]
getfilesystemencoding() Return the encoding used to convert Unicode filenames to OS filenames. [extrait de getfilesystemencoding.__doc__]
getprofile() Return the profiling function set with sys.setprofile. [extrait de getprofile.__doc__]
getrecursionlimit() Return the current value of the recursion limit. [extrait de getrecursionlimit.__doc__]
getrefcount(object) Return the reference count of object. [extrait de getrefcount.__doc__]
getsizeof getsizeof(object [, default]) -> int [extrait de getsizeof.__doc__]
getswitchinterval() Return the current thread switch interval; see sys.setswitchinterval(). [extrait de getswitchinterval.__doc__]
gettrace() Return the global debug tracing function set with sys.settrace. [extrait de gettrace.__doc__]
intern(string) ``Intern'' the given string. [extrait de intern.__doc__]
is_finalizing() Return True if Python is exiting. [extrait de is_finalizing.__doc__]
set_asyncgen_hooks set_asyncgen_hooks(* [, firstiter] [, finalizer]) [extrait de set_asyncgen_hooks.__doc__]
set_coroutine_origin_tracking_depth(depth) Enable or disable origin tracking for coroutine objects in this thread. [extrait de set_coroutine_origin_tracking_depth.__doc__]
set_int_max_str_digits(maxdigits) Set the maximum string digits limit for non-binary int<->str conversions. [extrait de set_int_max_str_digits.__doc__]
setdlopenflags(flags) Set the flags used by the interpreter for dlopen calls. [extrait de setdlopenflags.__doc__]
setprofile setprofile(function) [extrait de setprofile.__doc__]
setrecursionlimit(limit) Set the maximum depth of the Python interpreter stack to n. [extrait de setrecursionlimit.__doc__]
setswitchinterval(interval) Set the ideal thread switching delay inside the Python interpreter. [extrait de setswitchinterval.__doc__]
settrace settrace(function) [extrait de settrace.__doc__]
unraisablehook(unraisable) Handle an unraisable exception. [extrait de unraisablehook.__doc__]

Liste des variables globales du module sys

Nom de la variable globale Valeur
abiflags
api_version 1013
argv ['GenerateDoc.py']
base_exec_prefix /usr
base_prefix /usr
builtin_module_names ('_abc', '_ast', '_codecs', '_collections', '_functools', '_imp', '_io', '_locale', '_operator', '_signal', '_sre', '_stat', '_string', '_symtable', '_thread', '_tokenize', '_tracemalloc', '_warnings', '_weakref', 'atexit', 'builtins', 'errno', 'faulthandler', 'gc', 'itertools', 'marshal', 'posix', 'pwd', 'sys', 'time', 'xxsubtype')
byteorder little
copyright Copyright (c) 2001-2023 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved.
dont_write_bytecode False
exec_prefix Contenu de type <class 'str'>
executable Contenu de type <class 'str'>
flags sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0, dev_mode=False, utf8_mode=0, warn_default_encoding=0, safe_path=False, int_max_str_digits=-1)
float_info sys.float_info(max=1.7976931348623157e+308, max_exp=1024, max_10_exp=308, min=2.2250738585072014e-308, min_exp=-1021, min_10_exp=-307, dig=15, mant_dig=53, epsilon=2.220446049250313e-16, radix=2, rounds=1)
float_repr_style short
hash_info sys.hash_info(width=64, modulus=2305843009213693951, inf=314159, nan=0, imag=1000003, algorithm='siphash13', hash_bits=64, seed_bits=128, cutoff=0)
hexversion 51053552
implementation namespace(name='cpython', cache_tag='cpython-311', version=sys.version_info(major=3, minor=11, micro=3, releaselevel='final', serial=0), hexversion=51053552, _multiarch='x86_64-linux-gnu')
int_info sys.int_info(bits_per_digit=30, sizeof_digit=4, default_max_str_digits=4300, str_digits_check_threshold=640)
maxsize 9223372036854775807
maxunicode 1114111
meta_path [<_distutils_hack.DistutilsMetaFinder object at 0x7f720e2fa510>, <class '_frozen_importlib.BuiltinImporter'>, <class '_frozen_importlib.FrozenImporter'>, <class '_frozen_importlib_external.PathFinder'>, <six._SixMetaPathImporter object at 0x7f71b81e2750>]
modules Contenu de type <class 'dict'>
orig_argv ['python', 'GenerateDoc.py']
path Contenu de type <class 'list'>
path_hooks [<class 'zipimport.zipimporter'>, <function FileFinder.path_hook.<locals>.path_hook_for_FileFinder at 0x7f721bad8540>]
path_importer_cache Contenu de type <class 'dict'>
platform linux
platlibdir lib64
prefix Contenu de type <class 'str'>
pycache_prefix None
pyside63_option_python_enum True
stderr <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>
stdin <_io.TextIOWrapper name='<stdin>' mode='r' encoding='utf-8'>
stdlib_module_names Contenu de type <class 'frozenset'>
stdout <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
thread_info sys.thread_info(name='pthread', lock='semaphore', version='NPTL 2.37')
version 3.11.3 (main, Apr 5 2023, 00:00:00) [GCC 13.0.1 20230401 (Red Hat 13.0.1-0)]
version_info sys.version_info(major=3, minor=11, micro=3, releaselevel='final', serial=0)
warnoptions []