4/23/2025 at 12:47:02 PM
Hey yall! Original author of the blog here!I did not expect to wake up at 4am seeing my post on front page HN, but here we are nevertheless :D
As the intro mentioned, these started off as 14 small tweets I wrote a month prior to starting my blog. When I finally got that set up, I just thought, "hey, I just spent the better part of two weeks writing these nifty Python tricks, might as well reuse them as a fun first post!"
That's why the flow might seem a little weird (as some pointed out, proxy properties are not really a Python "feature" in of itself). They were just whatever I found cool that day. I tried to find something more esoteric if it was a Friday, and something useful if it was a Monday. I was also kinda improving the entire series as it was going on, so that was also a factor.
Same goes with the title. These were just 14 feature I found interesting while writing Python both professionally and as a hobby. Some people mentioned these are not very "advanced" per se, and fair enough. I think I spent a total of 5 second thinking of a title. Oh well!
by edwardjxli
4/23/2025 at 1:46:21 PM
The tricks are more advanced than what I've seen in most people's code at some jobs before! The post is refreshing because it sits in the neglected middle ground between the tons of Python-for-beginners content out there and the arcane "I'm a core developer writing about very specific things" content.by morkalork
4/23/2025 at 12:54:16 PM
Hey, I really enjoyed reading your post. It's straight to the point, the list is very rich and well illustrated with examples. I have been coding in python for the last 20 years and I nowadays rarely like reading these posts as much as I did for yours. Kudos.by niyyou
4/25/2025 at 5:11:03 AM
I think the background of the post is very well explained on the blog.But I’m surprised to read you went from idea to posting each day. I had expected maybe a week of preparation before starting execution.
Regardless it’s a great post, regardless of wether one think there is too much typing or too many new features in modern Python or one is a lover of niche solutions to shorten code.
by wodenokoto
4/23/2025 at 2:57:34 PM
Very good job. I bet most python developers will learn something here. Python has changed a lot; for the better, judging by your examples.by esafak
4/23/2025 at 1:16:21 PM
I appreciate you writing the post and I enjoyed reading it.Congratulations for ending up on the front page! (I hope the server hosting your blog is okay!)
by jay-barronville
4/23/2025 at 12:54:23 PM
I’ve coded python for 15 years and I’ve not seen many of these, so I’d consider them reasonably advanced personally.One I think you missed is getters and setters on attributes!
by hsbauauvhabzb