Python built-ins worth learning
treyhunner.com
Python built-ins worth learning
1–10 of 69 posts
Re: Python built-ins worth learning
#2Relatedly, I highly recommend Dave Beazley's "Built-In Superheroes" talk: https://www.youtube.com/watch?v=j6VSAsKAj98
I rewatch it every 6 months or so and usually learn a new trick or two.
Re: Python built-ins worth learning
#3Amazing post Trey, as usual. This is a very comprehensive list. I can't think of any other important function missing. My students will love this :)
Re: Python built-ins worth learning
#4If you are reading this, the orange bar at the bottom 5% of my screen is hugely distracting. Please allow us to close it.
Re: Python built-ins worth learning
#5> Many Python users rarely create classes. Creating classes isn’t an essential part of Python, though many types of programming require it.
Huh. Okay.
Re: Python built-ins worth learning
#6> Many Python users rarely create classes. Creating classes isn’t an essential part of Python, though many types of programming require it. Huh. Okay.
Data scientists for example.
Re: Python built-ins worth learning
#7If you are reading this, the orange bar at the bottom 5% of my screen is hugely distracting. Please allow us to close it.
I think it's because it overlaps a little of the content. I guess it makes some of us want to tidy it away.
Re: Python built-ins worth learning
#8> Many Python users rarely create classes. Creating classes isn’t an essential part of Python, though many types of programming require it. Huh. Okay.
It's really true. You can do a lot with data objects (dicts, lists) and stateless functions.
Re: Python built-ins worth learning
#9> Many Python users rarely create classes. Creating classes isn’t an essential part of Python, though many types of programming require it. Huh. Okay.
Which part are you reacting to? I can't speak for "many" users, but all three parts you quoted apply to my usage of Python.
Re: Python built-ins worth learning
#10I disagree with only one thing in this article. Frozenset is super useful. You should prefer frozenset over set by default imo. Immutable objects are safer to work with, often easier to work with (frozenset is hashable, you can key a dict with it), and sets come up all the time in a lot of work. You can get by with a sorted list, but sets are nicer and faster.