home ¦ Archives ¦ Atom ¦ RSS

Trey Hunner Cheatsheets

Link parkin, from Trey Hunner’s site: Python Articles on Cheat Sheets

A collection of the many Python cheat sheets within Python Morsels articles and screencasts.

I especially like the cheatsheet on the pathlib module:

I now use pathlib for nearly all file-related code in Python, especially when I need to construct or deconstruct file paths or ask questions of file paths.

I’d like to make the case for Python’s pathlib module… but first let’s look at a cheat sheet of common path operations.

© 2008-2025 C. Ross Jam. Built using Pelican. Theme based upon Giulio Fidente’s original svbhack, and slightly modified by crossjam.