Making your Python code write your Python code Discover Python's 'ast' module to see how you can an…

Опубликовано: 08 Февраль 2025
на канале: FOSDEM
2,557
35

Making your Python code write your Python code Discover Python's 'ast' module to see how you can analyze and generate Python code
by Marcin Sobczyk

At: FOSDEM 2019
https://video.fosdem.org/2019/UD2.120...


Have you ever wondered how much of your code could be generated automatically? Introspection, mutation, extension - Python's uber-dynamic nature allows us to do all kinds of kinky stuff. In this presentation we will take a look at the 'ast' module and see how it allows us to analyze and produce Python code. By leveraging it's power, we will try to create useful tools and even our own DSLs!

Room: UD2.120 (Chavanne)
Scheduled start: 2019-02-03 12:00:00+01