classify_class_attrs(cls) |
Return list of attribute-descriptor tuples. [extrait de classify_class_attrs.__doc__] |
cleandoc(doc) |
Clean up indentation from docstrings. [extrait de cleandoc.__doc__] |
currentframe() |
Return the frame of the caller or None if this is not possible. [extrait de currentframe.__doc__] |
findsource(object) |
Return the entire source file and starting line number for an object. [extrait de findsource.__doc__] |
formatannotation(annotation, base_module=None) |
|
formatannotationrelativeto(object) |
|
formatargvalues(args, varargs, varkw, locals, formatarg=<class 'str'>, formatvarargs=<function <lambda> at 0x7f720e019800>, formatvarkw=<function <lambda> at 0x7f720e0198a0>, formatvalue=<function <lambda> at 0x7f720e019940>) |
Format an argument spec from the 4 values returned by getargvalues. [extrait de formatargvalues.__doc__] |
get_annotations(obj, *, globals=None, locals=None, eval_str=False) |
Compute the annotations dict for an object. [extrait de get_annotations.__doc__] |
getabsfile(object, _filename=None) |
Return an absolute path to the source or compiled file for an object. [extrait de getabsfile.__doc__] |
getargs(co) |
Get information about the arguments accepted by a code object. [extrait de getargs.__doc__] |
getargvalues(frame) |
Get information about arguments passed into a particular frame. [extrait de getargvalues.__doc__] |
getattr_static(obj, attr, default=<object object at 0x7f721bac47a0>) |
Retrieve attributes without triggering dynamic lookup via the [extrait de getattr_static.__doc__] |
getblock(lines) |
Extract the block of code at the top of the given list of lines. [extrait de getblock.__doc__] |
getcallargs(func, /, *positional, **named) |
Get the mapping of arguments to values. [extrait de getcallargs.__doc__] |
getclasstree(classes, unique=False) |
Arrange the given list of classes into a hierarchy of nested lists. [extrait de getclasstree.__doc__] |
getclosurevars(func) |
|
getcomments(object) |
Get lines of comments immediately preceding an object's source code. [extrait de getcomments.__doc__] |
getcoroutinelocals(coroutine) |
|
getcoroutinestate(coroutine) |
Get current state of a coroutine object. [extrait de getcoroutinestate.__doc__] |
getdoc(object) |
Get the documentation string for an object. [extrait de getdoc.__doc__] |
getfile(object) |
Work out which source or compiled file an object was defined in. [extrait de getfile.__doc__] |
getframeinfo(frame, context=1) |
Get information about a frame or traceback object. [extrait de getframeinfo.__doc__] |
getfullargspec(func) |
Get the names and default values of a callable object's parameters. [extrait de getfullargspec.__doc__] |
getgeneratorlocals(generator) |
|
getgeneratorstate(generator) |
Get current state of a generator-iterator. [extrait de getgeneratorstate.__doc__] |
getinnerframes(tb, context=1) |
Get a list of records for a traceback's frame and all lower frames. [extrait de getinnerframes.__doc__] |
getlineno(frame) |
Get the line number from a frame object, allowing for optimization. [extrait de getlineno.__doc__] |
getmembers(object, predicate=None) |
Return all members of an object as (name, value) pairs sorted by name. [extrait de getmembers.__doc__] |
getmembers_static(object, predicate=None) |
Return all members of an object as (name, value) pairs sorted by name [extrait de getmembers_static.__doc__] |
getmodule(object, _filename=None) |
Return the module an object was defined in, or None if not found. [extrait de getmodule.__doc__] |
getmodulename(path) |
Return the module name for a given file, or None. [extrait de getmodulename.__doc__] |
getmro(cls) |
Return tuple of base classes (including cls) in method resolution order. [extrait de getmro.__doc__] |
getouterframes(frame, context=1) |
Get a list of records for a frame and all higher (calling) frames. [extrait de getouterframes.__doc__] |
getsource(object) |
Return the text of the source code for an object. [extrait de getsource.__doc__] |
getsourcefile(object) |
Return the filename that can be used to locate an object's source. [extrait de getsourcefile.__doc__] |
getsourcelines(object) |
Return a list of source lines and starting line number for an object. [extrait de getsourcelines.__doc__] |
indentsize(line) |
Return the indent size, in spaces, at the start of a line of text. [extrait de indentsize.__doc__] |
isabstract(object) |
Return true if the object is an abstract base class (ABC). [extrait de isabstract.__doc__] |
isasyncgen(object) |
Return true if the object is an asynchronous generator. [extrait de isasyncgen.__doc__] |
isasyncgenfunction(obj) |
Return true if the object is an asynchronous generator function. [extrait de isasyncgenfunction.__doc__] |
isawaitable(object) |
Return true if object can be passed to an ``await`` expression. [extrait de isawaitable.__doc__] |
isbuiltin(object) |
Return true if the object is a built-in function or method. [extrait de isbuiltin.__doc__] |
isclass(object) |
Return true if the object is a class. [extrait de isclass.__doc__] |
iscode(object) |
Return true if the object is a code object. [extrait de iscode.__doc__] |
iscoroutine(object) |
Return true if the object is a coroutine. [extrait de iscoroutine.__doc__] |
iscoroutinefunction(obj) |
Return true if the object is a coroutine function. [extrait de iscoroutinefunction.__doc__] |
isdatadescriptor(object) |
Return true if the object is a data descriptor. [extrait de isdatadescriptor.__doc__] |
isframe(object) |
Return true if the object is a frame object. [extrait de isframe.__doc__] |
isfunction(object) |
Return true if the object is a user-defined function. [extrait de isfunction.__doc__] |
isgeneratorfunction(obj) |
Return true if the object is a user-defined generator function. [extrait de isgeneratorfunction.__doc__] |
isgetsetdescriptor(object) |
Return true if the object is a getset descriptor. [extrait de isgetsetdescriptor.__doc__] |
ismemberdescriptor(object) |
Return true if the object is a member descriptor. [extrait de ismemberdescriptor.__doc__] |
ismethod(object) |
Return true if the object is an instance method. [extrait de ismethod.__doc__] |
ismethoddescriptor(object) |
Return true if the object is a method descriptor. [extrait de ismethoddescriptor.__doc__] |
ismethodwrapper(object) |
Return true if the object is a method wrapper. [extrait de ismethodwrapper.__doc__] |
ismodule(object) |
Return true if the object is a module. [extrait de ismodule.__doc__] |
isroutine(object) |
Return true if the object is any kind of function or method. [extrait de isroutine.__doc__] |
istraceback(object) |
Return true if the object is a traceback. [extrait de istraceback.__doc__] |
namedtuple(typename, field_names, *, rename=False, defaults=None, module=None) |
Returns a new subclass of tuple with named fields. [extrait de namedtuple.__doc__] |
signature(obj, *, follow_wrapped=True, globals=None, locals=None, eval_str=False) |
Get a signature object for the passed callable. [extrait de signature.__doc__] |
stack(context=1) |
Return a list of records for the stack above the caller's frame. [extrait de stack.__doc__] |
trace(context=1) |
Return a list of records for the stack below the current exception. [extrait de trace.__doc__] |
unwrap(func, *, stop=None) |
Get the object wrapped by *func*. [extrait de unwrap.__doc__] |
walktree(classes, children, parent) |
Recursive helper function for getclasstree(). [extrait de walktree.__doc__] |
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 :