Hacker News new | ask | show | jobs
by nemild 3097 days ago
Lots of different ways:

- Find a function call you're making in a library and see how it works

- Look through the top python libraries (see https://github.com/vinta/awesome-python ) and pick a few of the simpler ones to flip through

For reading code, some things that can be useful:

- Flip through test suite and get tests running; then break some tests to see what's happening

- Diagram out code on a piece of paper (file structure, data structure, stack trace for a popular call)

- Discuss implementation with friends

- For certain files, it's often valuable to rewrite yourself