Show HN: Python micro event loop library (~250 LOC) gist.github.com 46 points by tarruda 15 hours ago
dnadler 2 hours ago I haven’t kept up with python too much over the past year or two and learned a couple new things from this code. Namely, match/case and generic class typing. Makes me wonder what else is new, off to the python docs!
vram22 8 hours ago It's 736 LOC now.Last 2 lines, 735 and 736: # Start the event loop with the main coroutine event_loop(main()) tarruda 7 hours ago If you count only the library code, it is less than 250 LOC.I then asked for Claude to write the docstrings and examples which increased by 500 Gys 7 hours ago That is counting all comments and empty lines, which are many.
tarruda 7 hours ago If you count only the library code, it is less than 250 LOC.I then asked for Claude to write the docstrings and examples which increased by 500
I haven’t kept up with python too much over the past year or two and learned a couple new things from this code. Namely, match/case and generic class typing. Makes me wonder what else is new, off to the python docs!
It's 736 LOC now.
Last 2 lines, 735 and 736:
If you count only the library code, it is less than 250 LOC.
I then asked for Claude to write the docstrings and examples which increased by 500
That is counting all comments and empty lines, which are many.