PodParley PodParley

Episode 7: The Old Parser

Episode 7 of the core.py podcast, hosted by Pablo Galindo and Łukasz Langa, titled "Episode 7: The Old Parser" was published on January 31, 2024 and runs 83 minutes.

January 31, 2024 ·83m · core.py

0:00 / 0:00

Context-free grammars, non-deterministic finite automatons, left-to-right leftmost derivations... what even is all that?! Today we're talking about how Python parses your source code. We start gently with how this worked in the past. Come listen to Łukasz's high-level explanations and Pedantic Pablo's "well actuallys". # Timestamps (00:00:00) INTRO (00:01:35) You can still download Python 1.0! (00:02:19) The original tokenizer (00:03:10) What even is a tokenizer? (00:04:08) FUN FACTS ABOUT THE TOKENIZER (00:04:34) Circumflex (00:05:16) Python's invisible braces (00:08:29) Backticks in the syntax (00:11:00) Where are the comments stored? (00:12:27) GRAMMAR (00:13:37) What is a grammar? (00:16:25) The long-forgotten 'access' keyword (00:20:25) Making LL1 do things it wasn't meant to do (00:23:24) SURPRISE QUESTION 1: soft keywords (00:24:46) What's a context-free grammar? (00:26:51) A note about backslashes (00:29:33) The Dragon Book(s) (00:31:27) PARSING: What is it? (00:35:23) How to generate a parser? (00:39:00) LL Cool Parser (00:41:15) What if we used LR? (00:44:01) Let's have three tokenizers! (00:47:50) 2to3 and its legacy (00:52:38) Black and its blib2to3 (00:54:04) The pesky 'with' statement and the death of LL1 (01:00:05) PR OF THE WEEK: GH-113745 (01:05:41) SURPRISE QUESTION 2: Subclasses of SyntaxError (01:07:02) WHAT'S GOING ON IN CPYTHON? (01:09:16) Sam Gross nominated as a core dev (01:10:13) Free-threading progress (01:13:11) Faster CPython changes (01:17:29) ntpath.isreserved() (01:20:11) Pablo and the DWARF (01:22:02) OUTRO

Context-free grammars, non-deterministic finite automatons, left-to-right leftmost derivations... what even is all that?! Today we're talking about how Python parses your source code. We start gently with how this worked in the past. Come listen to Łukasz's high-level explanations and Pedantic Pablo's "well actuallys".


# Timestamps


(00:00:00) INTRO

(00:01:35) You can still download Python 1.0!

(00:02:19) The original tokenizer

(00:03:10) What even is a tokenizer?

(00:04:08) FUN FACTS ABOUT THE TOKENIZER

(00:04:34) Circumflex

(00:05:16) Python's invisible braces

(00:08:29) Backticks in the syntax

(00:11:00) Where are the comments stored?

(00:12:27) GRAMMAR

(00:13:37) What is a grammar?

(00:16:25) The long-forgotten 'access' keyword

(00:20:25) Making LL1 do things it wasn't meant to do

(00:23:24) SURPRISE QUESTION 1: soft keywords

(00:24:46) What's a context-free grammar?

(00:26:51) A note about backslashes

(00:29:33) The Dragon Book(s)

(00:31:27) PARSING: What is it?

(00:35:23) How to generate a parser?

(00:39:00) LL Cool Parser

(00:41:15) What if we used LR?

(00:44:01) Let's have three tokenizers!

(00:47:50) 2to3 and its legacy

(00:52:38) Black and its blib2to3

(00:54:04) The pesky 'with' statement and the death of LL1

(01:00:05) PR OF THE WEEK: GH-113745

(01:05:41) SURPRISE QUESTION 2: Subclasses of SyntaxError

(01:07:02) WHAT'S GOING ON IN CPYTHON?

(01:09:16) Sam Gross nominated as a core dev

(01:10:13) Free-threading progress

(01:13:11) Faster CPython changes

(01:17:29) ntpath.isreserved()

(01:20:11) Pablo and the DWARF

(01:22:02) OUTRO

No similar episodes found.

Mums with Bright Ideas Melissa Pye Mums with Bright Ideas Podcast is for Mums looking for inspo and know-how to start and grow their own business. The Host, Melissa Pye, is a straight shooter and doesn't shy away from asking probing questions to get to the core of what life is really like as a biz owner.Melissa's guests are Mums at different stages of their biz journey who share their story, warts and all. Melissa adopts what she calls a "No Peacocking Policy" so that listeners will always get the real story. To help Mums on their biz journey, Melissa also interviews subject matter experts on finance, marketing, operations, HR and just about anything that will help a biz grow.Melissa has 30 years biz experience, half of that in senior marketing roles in Australia and Asia working with brands including Hyundai, Audi, Jaguar, Optus and Westin Hotels. Melissa launched her first biz 15 years ago and has never looked back! Her latest biz, The LightBulb Lounge, provides courses and a community for Mums starting their bi Sean vigue fitness Sean Vigue Fitness Features world class Yoga, Pilates and core workouts with personal training and fun bootcamps from central Florida’s premier fitness instructor - Sean Vigue. Find eating tips and the most current health and fitness news. Videos updated weekly.Check out my award winning Pilates for Men workout on my website.www.seanviguefitness.com www.facebook.com/seanvigue Core EM - Emergency Medicine Podcast Core EM Core EM Emergency Medicine Podcast Core IM | Internal Medicine Podcast Core IM Team Core Internal Medicine via following series:5 Pearls || Clinically relevant pearls Mind the Gap || Why do we do what we do?Gray Matters || Management ReasoningHoofbeats || Dissecting clinical reasoningAt the Bedside || Explore everyday challenges
URL copied to clipboard!