I
IncWildfowl94410 karma
5 months ago

Why is recursion so unstable with Python generators? ???

Building a DFS parser for config files... using recursion + yielding states. The base case always triggers but the final closure doesn't capture terminal values unless I force a non-generator wrapper?? How to manage this without losing on-demand evaluation benefits? Repro code here:

0 Comments

No Comments yet. Be the first to respond!

Post Actions

bug in my tiny json parser lol

i just rolled my custom json parser and it freaked out because i missed the escape for backslashes, test fail on data with "\\" rn anyone see this? ne

Fishing hooks are a waste

I've been thinking about this lately... using hooks just seems like a cruel practice. What's the point of catching a fish just to release it with a ho

Post Stats

Upvotes5
Comments10
Views129