r/learnpython • u/[deleted] • May 30 '20
Python cheat sheet?
I was wondering whether you guys keep a handy cheat sheet when y'all code. For example when working with a module after a long time it's obvious that we become rusty and need help with the functions and the syntax. Would be great if you guys share the links/books that you guys refer to while programming. I'm sorry if this has been asked before. Cheers!
372
Upvotes
1
u/mat000111 May 31 '20
I have two things I do which I find helpful and will toss out there. First I usually make a directory called python and put sample code in it. I use this to learn how to use new things and then I use it as reference. The second is I tend to make a lot of wrapper classes for thing I use a lot. For example my configparser wrapper has some code to work with python 2 or 3. Checks that files are there before reading. I put the wrapppers into a git repo and move them from project to project.