Python logo

Föregående titel

Using importlib.metadata

Nästa titel

ast — Abstract Syntax Trees

Denna Sida

  • Report a Bug
  • Visa källfil

Navigation

  • index
  • moduler |
  • nästa |
  • föregående |
  • Python logo
  • Python »
  • 3.10.20 Documentation »
  • The Python Standard Library »
  • Pythons språktjänster
  • |
  • |

Pythons språktjänster¶

Python tillhandahåller ett antal moduler som underlättar arbetet med Python-språket. Dessa moduler stöder tokenisering, tolkning, syntaxanalys, bytecode-disassemblering och olika andra funktioner.

Dessa moduler inkluderar:

  • ast — Abstract Syntax Trees
    • Abstract Grammar
    • Node classes
      • Literals
      • Variables
      • Expressions
        • Subscripting
        • Comprehensions
      • Statements
        • Imports
      • Control flow
      • Pattern matching
      • Function and class definitions
      • Async and await
    • ast Helpers
    • Compiler Flags
    • Command-Line Usage
  • symtable — Access to the compiler’s symbol tables
    • Generating Symbol Tables
    • Examining Symbol Tables
  • token — Constants used with Python parse trees
  • keyword — Testing for Python keywords
  • tokenize — Tokenizer for Python source
    • Tokenizing Input
    • Command-Line Usage
    • Examples
  • tabnanny — Detection of ambiguous indentation
  • pyclbr — Python module browser support
    • Function Objects
    • Class Objects
  • py_compile — Compile Python source files
    • Command-Line Interface
  • compileall — Byte-compile Python libraries
    • Command-line use
    • Public functions
  • dis — Disassembler for Python bytecode
    • Bytecode analysis
    • Analysis functions
    • Python Bytecode Instructions
    • Opcode collections
  • pickletools — Tools for pickle developers
    • Command line usage
      • Command line options
    • Programmatic Interface

Föregående titel

Using importlib.metadata

Nästa titel

ast — Abstract Syntax Trees

Denna Sida

  • Report a Bug
  • Visa källfil

Navigation

  • index
  • moduler |
  • nästa |
  • föregående |
  • Python logo
  • Python »
  • 3.10.20 Documentation »
  • The Python Standard Library »
  • Pythons språktjänster
  • |
  • |
© Upphovsrätt 2001-2026, Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

The Python Software Foundation is a non-profit corporation. Please donate.

Senast uppdaterad mars 11, 2026. Found a bug?
Created using Sphinx 3.4.3.