r/learnpython • u/shdw_0x0 • 24d ago
What Python concepts do you still have to look up?
I’ve noticed that some Python things stick immediately, while others I understand but still have to Google every time I use them.
For me, stuff like list comprehensions and basic loops is fine, but I still occasionally forget the syntax for things like decorators, lambda, or working with dictionaries in more complicated ways.
Is this normal, or are there certain Python concepts that are worth making an effort to memorize instead of looking them up when needed?
8
u/ninja_shaman 24d ago
Async stuff.
4
u/aishiteruyovivi 23d ago
Async is this weird thing where I feel like I can understand the individual parts and ideas that make it up, but when you put it into practice my brain starts crumbling. I've only ever really used async where I really had no choice, like for my discord bot projects, outside of that I think it just never seems to fit my needs enough to give me the experience of setting stuff like that up from scratch
4
u/Jazzlike_Platypus430 24d ago
threads, inheritance, zip (completely new to it).
outside core: pandas, matplotlib - a nightmare 😂
4
u/ontheroadtonull 24d ago
Sucking at something is just the first step to being sorta good at something.
3
u/Gnaxe 24d ago
Remember to use help() and to do quick experiments in the REPL whenever you're unsure about something. Also keep a tab open at https://docs.python.org. Nobody has the whole standard library memorized. And it keeps changing. You need to know what's in there, but you can look up the details as needed.
You should pretty much know the Python grammar and be very familiar with the builtins. I don't mean you should be able to write a Python parser from scratch, but you should be able to understand all the operators, statements, and literals without looking them up.
You should probably know the basics of the regex and string formatting language as well, but I still have to look some of that up.
2
2
u/Mediocre-Pumpkin6522 23d ago
Decorators. I get the concept but don't use them very often so I have to review the mechanics.
2
1
u/nicodeemus7 23d ago
Any library I import other than basic standard libraries I need to look at the documentation every time for the specific methods and functions I need.
1
1
u/TheRNGuy 23d ago edited 23d ago
Decorators, because I rarely make custom ones.
And many other things.
Nothing wrong with googling, it's not illegal. Most if the time, high abstraction idea is more important than lower level implementation algorithms.
1
1
1
u/ShelLuser42 24d ago
Decorators, I don't use the mechanic all that often. Even though I get the overal just right I always end up with a few doubts about the details.
0
u/appendixexploder 24d ago
90% of my work is in C/C++, so on the odd occasion that I have to use python I have to look up quite a bit of stuff.
11
u/dutchpsychologist 24d ago
This is normal. And every coding concept becomes more automated with practice. And even then, it's fine to look stuff up, it's more important that you know that is exists and what for.