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 :

Module « inspect » Python 3.11.3

Fonction getgeneratorlocals - module inspect

Signature de la fonction getgeneratorlocals

def getgeneratorlocals(generator) 

Description

help(inspect.getgeneratorlocals)

    Get the mapping of generator local variables to their current values.

    A dict is returned, with the keys the local variable names and values the
    bound values.