Python logo

Föregående titel

The initialization of the sys.path module search path

Nästa titel

ast — Abstract syntax trees

Denna sidan

  • Rapportera ett fel
  • Visa källa

Navigering

  • index
  • moduler |
  • nästa |
  • föregående |
  • Python logo
  • Python »
  • 3.14.0 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
      • Root nodes
      • Literals
      • Variables
      • Expressions
        • Subscripting
        • Comprehensions
      • Statements
        • Imports
      • Control flow
      • Pattern matching
      • Type annotations
      • Type parameters
      • 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
    • Command-Line Usage
  • 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
    • Command-line interface
    • 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

The initialization of the sys.path module search path

Nästa titel

ast — Abstract syntax trees

Denna sidan

  • Rapportera ett fel
  • Visa källa
«

Navigering

  • index
  • moduler |
  • nästa |
  • föregående |
  • Python logo
  • Python »
  • 3.14.0 Documentation »
  • The Python Standard Library »
  • Pythons språktjänster
  • |
  • |
© Upphovsrätt 2001 Python Software Foundation.
Denna sida är licensierad enligt Python Software Foundation License version 2.
Exempel, recept och annan kod i dokumentationen är dessutom licensierade under Zero Clause BSD-licensen.
Se Historik och licens för mer information.

Python Software Foundation är ett icke-vinstdrivande företag. Donera.

Senast uppdaterad nov. 22, 2025 (06:59 UTC). Har du hittat ett fel?
Skapad med hjälp av Sphinx 8.2.3.