Hacker News new | past | comments | ask | show | jobs | submit login
CPython internals: Ten-hour codewalk through the interpreter source code (2014) (pgbovine.net)
84 points by jxub on May 20, 2018 | hide | past | favorite | 7 comments



I'm a Python developer who wanted to learn more about the CPython internals. I watched these videos a couple months ago and found them helpful.


Would you say it's worth going through with a rudimentary knowledge of C or will I be wasting my time?


I think it's worth it. I have a rudimentary understanding of C, but I still gained from it. The first few videos are about the project structure and the main Python loop. You get to disassemble some Python code into bytecode and see what's really going on. Don't let the lack of C expertise stop you.



I wish more projects has walkthroughs like this. I’m not very interested in CPython internals, but there are other projects I’d love to see explained.


It would take less than 10 hours to gain a similar understanding if you just sit down and read the source. The CPython source is surprisingly small. It's not without its warts, but it's laid out well enough.


Yes, this videos should help mostly in dealing with the trickiest parts like the async modules implemented in C, which is most efficient than reading then code in this case.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: