[Tutor] "Learn by reading code: Python standard library design decisions explained (for advanced beginners)"

boB Stepp robertvstepp at gmail.com
Fri Apr 16 00:11:13 EDT 2021


The link:  https://death.andgravity.com/stdlib

The article gives a curated selection of a few standard library modules that
the author believes will be beneficial for the "advanced beginner" to study.
In the section "How to read these" the author recommends this order of study:

<quote>
* Get familiar with them as a user: read the documentation, maybe play with the
   examples a bit.

* Read the corresponding Python Enhancement Proposal (PEP). The interesting
   sections usually are the Abstract, Rationale, Design Decisions, Discussion,
   and Rejected Ideas.

* Read the code; it's linked at the top of each documentation page.
</quote>

The libraries he recommends:  dataclasses, pathlib (and compare with os.path),
statistics, and, as a bonus graphlib as its discussion by the developers is
especially educational.

Thought I would pass this along as it might encourage fellow learners to delve
into some of the Python standard library source code.  Now to find some
time...

-- 
Wishing you only the best,

boB Stepp


More information about the Tutor mailing list