DEV Community

William Petersen
William Petersen

Posted on

I Made a Python Quick Reference in the Style of the 1985 C Handbook

The book I used all the time to program C was The C Programmer's Handbook by M. I. Bolsky, published in 1985.

That book did one thing well. It was a quick reference. No long chapters. No projects. You had a question, you opened the index, you got the answer in a few lines, and you went back to work.

I have been learning Python this year. Every time I stopped to look something up, I wished that book existed for Python. So I made it.

It is called The Python Programmer's Handbook. It follows the old handbook format on purpose. Here is one entry, the way it appears in the book:

/
Divides. The result is always a float.
a / b
print(7 / 2, 6 / 3)
-> 3.5 2.0
Enter fullscreen mode Exit fullscreen mode

Short definition. The form. One example. The result. That is the whole style.

Inside the book:

  • Syntax and data types
  • Operators and expressions
  • Statements and functions
  • Working with data, files, and input
  • The everyday libraries
  • Errors and good habits
  • A full index at the back

It is 86 pages, 6 by 9 inches. It comes as a paperback, and also as an ebook on Kindle. It is a desk reference for looking things up, not a course and not a tutorial.

The book is here: https://www.amazon.com/dp/B0HRRM9M36

I would like to hear what you think.

Top comments (0)