# Copyright (C) 2001-2018, Python Software Foundation # For licence information, see README file. # msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-01-15 22:33+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: library/symtable.rst:2 msgid ":mod:`symtable` --- Access to the compiler's symbol tables" msgstr "" #: library/symtable.rst:7 msgid "**Source code:** :source:`Lib/symtable.py`" msgstr "**Code source :** :source:`Lib/symtable.py`" #: library/symtable.rst:15 msgid "" "Symbol tables are generated by the compiler from AST just before bytecode is " "generated. The symbol table is responsible for calculating the scope of " "every identifier in the code. :mod:`symtable` provides an interface to " "examine these tables." msgstr "" #: library/symtable.rst:22 msgid "Generating Symbol Tables" msgstr "" #: library/symtable.rst:26 msgid "" "Return the toplevel :class:`SymbolTable` for the Python source *code*. " "*filename* is the name of the file containing the code. *compile_type* is " "like the *mode* argument to :func:`compile`." msgstr "" #: library/symtable.rst:32 msgid "Examining Symbol Tables" msgstr "" #: library/symtable.rst:36 msgid "A namespace table for a block. The constructor is not public." msgstr "" #: library/symtable.rst:40 msgid "" "Return the type of the symbol table. Possible values are ``'class'``, " "``'module'``, and ``'function'``." msgstr "" #: library/symtable.rst:45 msgid "Return the table's identifier." msgstr "" #: library/symtable.rst:49 msgid "" "Return the table's name. This is the name of the class if the table is for " "a class, the name of the function if the table is for a function, or " "``'top'`` if the table is global (:meth:`get_type` returns ``'module'``)." msgstr "" #: library/symtable.rst:55 msgid "Return the number of the first line in the block this table represents." msgstr "" #: library/symtable.rst:59 msgid "Return ``True`` if the locals in this table can be optimized." msgstr "" #: library/symtable.rst:63 msgid "Return ``True`` if the block is a nested class or function." msgstr "" #: library/symtable.rst:67 msgid "" "Return ``True`` if the block has nested namespaces within it. These can be " "obtained with :meth:`get_children`." msgstr "" #: library/symtable.rst:72 msgid "" "Return a view object containing the names of symbols in the table. See the :" "ref:`documentation of view objects `." msgstr "" #: library/symtable.rst:77 msgid "Lookup *name* in the table and return a :class:`Symbol` instance." msgstr "" #: library/symtable.rst:81 msgid "Return a list of :class:`Symbol` instances for names in the table." msgstr "" #: library/symtable.rst:85 msgid "Return a list of the nested symbol tables." msgstr "" #: library/symtable.rst:90 msgid "" "A namespace for a function or method. This class inherits :class:" "`SymbolTable`." msgstr "" #: library/symtable.rst:95 msgid "Return a tuple containing names of parameters to this function." msgstr "" #: library/symtable.rst:99 msgid "Return a tuple containing names of locals in this function." msgstr "" #: library/symtable.rst:103 msgid "Return a tuple containing names of globals in this function." msgstr "" #: library/symtable.rst:107 msgid "Return a tuple containing names of nonlocals in this function." msgstr "" #: library/symtable.rst:111 msgid "Return a tuple containing names of free variables in this function." msgstr "" #: library/symtable.rst:116 msgid "A namespace of a class. This class inherits :class:`SymbolTable`." msgstr "" #: library/symtable.rst:120 msgid "Return a tuple containing the names of methods declared in the class." msgstr "" #: library/symtable.rst:125 msgid "" "An entry in a :class:`SymbolTable` corresponding to an identifier in the " "source. The constructor is not public." msgstr "" #: library/symtable.rst:130 msgid "Return the symbol's name." msgstr "" #: library/symtable.rst:134 msgid "Return ``True`` if the symbol is used in its block." msgstr "" #: library/symtable.rst:138 msgid "Return ``True`` if the symbol is created from an import statement." msgstr "" #: library/symtable.rst:142 msgid "Return ``True`` if the symbol is a parameter." msgstr "" #: library/symtable.rst:146 msgid "Return ``True`` if the symbol is global." msgstr "" #: library/symtable.rst:150 msgid "Return ``True`` if the symbol is nonlocal." msgstr "" #: library/symtable.rst:154 msgid "" "Return ``True`` if the symbol is declared global with a global statement." msgstr "" #: library/symtable.rst:158 msgid "Return ``True`` if the symbol is local to its block." msgstr "" #: library/symtable.rst:162 msgid "Return ``True`` if the symbol is annotated." msgstr "" #: library/symtable.rst:168 msgid "" "Return ``True`` if the symbol is referenced in its block, but not assigned " "to." msgstr "" #: library/symtable.rst:173 msgid "Return ``True`` if the symbol is assigned to in its block." msgstr "" #: library/symtable.rst:177 msgid "Return ``True`` if name binding introduces new namespace." msgstr "" #: library/symtable.rst:179 msgid "" "If the name is used as the target of a function or class statement, this " "will be true." msgstr "" #: library/symtable.rst:182 msgid "For example::" msgstr "Par exemple ::" #: library/symtable.rst:188 msgid "" "Note that a single name can be bound to multiple objects. If the result is " "``True``, the name may also be bound to other objects, like an int or list, " "that does not introduce a new namespace." msgstr "" #: library/symtable.rst:194 msgid "Return a list of namespaces bound to this name." msgstr "" #: library/symtable.rst:198 msgid "" "Return the namespace bound to this name. If more than one or no namespace is " "bound to this name, a :exc:`ValueError` is raised." msgstr ""