Found in 13 comments on Hacker News
samwillis · 2022-09-17 · Original thread
This oft-repeated quote is always relevant on Python metaclass posts:

“[Metaclasses] are deeper magic than 99% of users should ever worry about. If you wonder whether you need them, you don’t (the people who actually need them know with certainty that they need them, and don’t need an explanation about why).”

Tim Peters, Inventor of the timsort algorithm and prolific Python contributor

https://www.oreilly.com/library/view/fluent-python/978149194...

https://en.m.wikipedia.org/wiki/Tim_Peters_(software_enginee...

I would then also concur with the other comment that if you “know” you need metaclasses, 99% of the time actually you only need __subclass_init__.

A lot of online literature about Python meta programming misses out __subclass_init__ as it was only added to Python 3.6 in 2015 via PEP 487.

https://peps.python.org/pep-0487/

didymospl · 2020-05-05 · Original thread
I don't know (yet) about any of the resources mentioned in this post but let me share my experience. Last year I came back to Python after several years spent mostly in JVM land and I was looking for some refresher so when I saw Python book bundle on Humble Bundle I didn't hesitate for a moment. While all books were solid, one really stood out. Fluent Python[0] is one of the best intermediate/advanced level books on any programming language I've ever read. It's like an average advanced course, Effective Java and JavaScript: The Good Parts blended together. Bonus points for numerous references to other languages(How is Python different from X?) and other technical digressions. I couldn't recommend it more if you, like me, wrote some Python before but have the feeling you never really understood its essence.

[0]: http://shop.oreilly.com/product/0636920032519.do

iliaznk · 2018-12-28 · Original thread
This is not really the kind of book you're looking for, I'm, afraid, but still it's the best one I've read on Python in general http://shop.oreilly.com/product/0636920032519.do

As a language reference you could use something like that https://gto76.github.io/python-cheatsheet/ or another good book https://doughellmann.com/blog/the-python-3-standard-library-...

celias · 2018-09-22 · Original thread
The book Fluent Python is a good book that goes beyond the introduction to python books http://shop.oreilly.com/product/0636920032519.do

Here's an interview with the author in 2015 https://talkpython.fm/episodes/show/24/fluent-python

mirceaulinic · 2018-08-18 · Original thread
I had prior experience with other programming / scripting languages, and picking Python up felt very natural.

I started with Mark Lutz's Learning Python (http://shop.oreilly.com/product/9780596513986.do) about 10 years ago. In the meanwhile I've been an active contributor to large Python-based open source projects, e.g., Salt (https://github.com/saltstack/salt) which not only that it helped me get feedback from people with a tremendous experience, but also reading through the code taught me good practices and many good ways to solve various problems. A few months ago I started reading Luciano Ramalho's Fluent Python (http://shop.oreilly.com/product/0636920032519.do) which is just beautifully written and with a wide variety of topics for a deeper look inside Python internals.

manaskarekar · 2017-01-22 · Original thread
Would highly recommend Fluent Python.

http://shop.oreilly.com/product/0636920032519.do

joshvm · 2017-01-09 · Original thread
There's Fluent Python from OReilly which is a pretty good follow-on for people who are comfortable with the basics and want to know dig into some more advanced features:

http://shop.oreilly.com/product/0636920032519.do

josteink · 2016-08-24 · Original thread
I just went with the "Fluent Python" O'Reilly book.

http://shop.oreilly.com/product/0636920032519.do

It's a bit pricey, but I managed to score it on a 50% sale, and I have to say I think it's a very good book for people already fluent in other programming languages.

tjt · 2016-05-03 · Original thread
Can anyone recommend a good python book for someone learning Data Analysis/Wrangling? I've listed a few options below.

Python for Data Analysis - http://shop.oreilly.com/product/0636920023784.do - I'm working on this one now.

Data Wrangling with Python - http://shop.oreilly.com/product/0636920032861.do

Fluent Python - http://shop.oreilly.com/product/0636920032519.do

Learning Predictive Analytics with Python - http://shop.oreilly.com/product/9781783983261.do

Data Visualization with Python and JavaScript - http://shop.oreilly.com/product/0636920037057.do

Thanks for any comments!

rbanffy · 2015-09-08 · Original thread
I mentioned Fluent Python a couple minutes ago. http://shop.oreilly.com/product/mobile/0636920032519.do