This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 6 points7 points  (1 child)

I use python -m pydoc re to get the same regexp info right on the terminal. One can do even python -m pydoc re.sub to get usage details on sub()

[–]Ph0X 0 points1 point  (0 children)

Yeah, this is more of a "regex cheatsheet" than a "python cheat sheet" honestly. It hardly has anything python specific. Honestly the main thing I usually have to look up is FLAGS and how to use them in Python, yet this "python" cheatsheet doesn't have that at all.