Add CheatGrid Python Cheat Sheet - #3277
Open
michaelmiscanuk wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Project
CheatGrid Python Cheat Sheet
Checklist
Add project-name- [project-name](url) - Description ending with period.Why This Project Is Awesome
Which criterion does it meet? (pick one)
Explain:
Note up front: this is an entry for
Resources > Websites, not a Python package, so thestar-count and PyPI parts of the guidelines do not apply. I have matched the format of the
existing entry in that subsection.
It is a single-page Python reference, free and with no signup needed to read it. 26 grouped
tables covering data types, operators, string ops, slicing, control flow, functions,
comprehensions and generators, classes, dunder methods, exceptions, file I/O, imports,
built-ins, itertools, decorators, context managers, asyncio, type hints, regex, dataclasses,
enums, collections, concurrency, logging, virtualenvs and packaging.
What makes it worth a slot rather than "yet another cheat sheet": every row is a
syntax/description/example triple you can copy straight out, the modern surface is actually
covered (type hints, dataclasses, async, structural pattern matching) instead of stopping at
Python 2 era basics, and the same topic ships a spaced-repetition flashcard deck and practice
questions, so it works for revision and not only lookup.
How It Differs
Against the usual Python cheat sheets: most are either a single screenshot-style image or a
blog post that ends at loops and functions. This is a structured, searchable page kept current
with modern syntax, and each entry carries a runnable example rather than a bare signature.
There is also a per-row explanation button that rewrites any single row in plain language with
a worked example, which is capped (100 explanations on the free account, none while logged out)
and is not the point of the page, but it is the part I have not seen elsewhere.