The Real Python Podcast cover image

Creating Better Error Messages for Python 3.10 & 3.11

The Real Python Podcast

00:00

Using a Peck Parser to Parse a Function Call

A peck parter has infinite look ahead. So that helps you get back a lot of the context. That allows you to kind of see some of the stuff around it. Because's it's sort of holding in its mind, if you will, what it's looking for. And and w we use this extra knowledge and his extra power. Sometimes his is more difficult. This partigra example, is one of the most difficult ones,. because python will first try to pass it precisely as a name and a touble. And he will say, yes, his make no sense. And then he will try to passed it as a function difinition. The order is very important

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app