Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Code From Nothing - Procedural Generation of Python Source Code

EuroPython Conference via YouTube

Overview

Explore procedural generation of Python source code in this 31-minute EuroPython 2021 conference talk. Dive into novel techniques for testing Python linters and fixers using Hypothesis and related tools. Learn how to address corner cases in Python's complex syntax, discover potential issues in widely-used tools like Black and the Python parser, and gain insights into source-code fuzzing. Understand the importance of comprehensive testing for code analysis tools, with a focus on flake8 and libcst. Grasp the fundamentals of parsers and programming language design as you uncover innovative approaches to ensure the robustness of Python development tools.

Syllabus

Intro
Greetings!
About this talk
Code... What is it, really?
Linters and autoformatters
Checking the Checkers
Random acts of code
Structure is the king
Grammar as a template
Enter Hypothesis
LarkStrategy
Python is quirky
Enter Hypothesmith
Targeted search
Bugs found with Hypothesmith
Caveats
Further reading

Taught by

EuroPython Conference

Reviews

Start your review of Code From Nothing - Procedural Generation of Python Source Code

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.