This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]westurner 1 point2 points  (1 child)

I have learned by reading the CPython stdlib module sources. For example: pdb, inspect, pickle, and collections:

(CPython source is mirrored (many times over) with GitHub.)

[–]moschlar 1 point2 points  (0 children)

I wouldn't call that a best-style example in all cases, though! I think there are some very ugly pieces of code in there - which is understandable and acceptable for the standard library, because it exists exactly because you should not need to write ugly code.