gto76 / python-cheatsheet

Comprehensive Python Cheatsheet
https://gto76.github.io/python-cheatsheet/
36.29k stars 6.46k forks source link

TODO #12

Closed gto76 closed 5 years ago

gto76 commented 5 years ago

Cheatsheet

Page

0xbart commented 5 years ago

Thanks for your awesome cheatsheet. But a question / addition: maybe some short sentences about PEP8?

nevzat commented 5 years ago

Please add 3.7's DataClass goodie

gto76 commented 5 years ago

I don't know how and where to incorporate PEP8. Also it would be kind of awkward to preach about it, since most examples don't follow it.

Didn't know about DataClasses. Will most probably squeeze them in somewhere. If there are any more useful 3.7 features, feel free to suggest.

Kub-AT commented 5 years ago

About DataClasses and "backports" for earlier versions https://realpython.com/python-refactoring/#5-using-attrs-and-dataclasses-to-reduce-code

RedactedCode commented 5 years ago

lstrip(), rstrip() f-strings

jrmontag commented 5 years ago

Great reference! It'd be great to see a section on the typing module https://docs.python.org/3/library/typing.html