Diátaxis and Python documentation

Let me be more precise. I like that there is a highlight, but I also dislike the current style. I’ve saw ArgumentParser class use bullets. It is fine and better than os.copy_file_range, which describes all parameters in a paragraph. I had things like this in mind.

1 Like

Well, that sounds a reasonable approach to me. The json module doc, for example, doesn’t explain what JSON is. Neither does the http module doc explain what HTTP is.

If you want an introduction to JSON, HTTP or multi-threading, then you probably want to read something else than the documentation for the Python language.

This is especially true for multi-threading, which is difficult and full of pitfalls. Guiding beginners through it would require chapters of carefully-written, dedicated material.

2 Likes

I agree in general that we can’t provide introductory material about every concept the stdlib builds on. But the threading module doesn’t even have simple examples of how to use the module. And considering the Python-specific confusion and complication around threading, we could definitely use some more explanation.

10 Likes