What is a highly recommended advanced python (3.x+) concepts and coding book?<p>@decorators for class methods, type coercion, other stuff that may be deemed "interesting" or advanced that I'm not thinking of.<p>I came across a few books published ~2013 which I'd consider dated.<p>It may also just be a matter of reading the latest python documentation.<p>Thanks for any input.
Effective Python by Brett Slatkin is very good, still going through the Second Edition, but I like the practical side of this book.<p>If you want to go really deeper like the inner working of CPython I'd recommend Anthony Shaw's CPython internals. It has been on my radar for some time now, still going through the serie of blog posts from tenthousandmeters[0]<p>0: <a href="https://tenthousandmeters.com/blog/python-behind-the-scenes-1-how-the-cpython-vm-works/" rel="nofollow">https://tenthousandmeters.com/blog/python-behind-the-scenes-...</a>
As an intermediate to advanced Python text book, I would highly recommend Fluent Python.<p>It covers a lot of the fundamental concepts in Python explaining why a lot of things are as they are.
I recommend checking out the talks by David Beazley <a href="https://dabeaz.com/talks.html" rel="nofollow">https://dabeaz.com/talks.html</a>
* Fluent Python<p>* Serious Python<p>* Practices of the Python Pro<p>There are also good blog posts, SO answers, etc on many of these concepts. I have a few links collected here: <a href="https://learnbyexample.github.io/py_resources/specific.html" rel="nofollow">https://learnbyexample.github.io/py_resources/specific.html</a>
I'd recommend Fred Baptiste's Python Deep Dive series on Udemy:<p><a href="https://www.udemy.com/user/fredbaptiste/" rel="nofollow">https://www.udemy.com/user/fredbaptiste/</a><p>He has 4 courses spanning 130+ hours of content covering pretty much every aspect of Python at a deep level.
Python 201 is a great resource. I've recommended it to a lot of people. Fluent Python is also great. There <i>is</i> a physical version of the CPython book by Anthony Shaw.<p>Additionally, have you tried visiting a random page of the Python Documentation? I recommend reading about the data model [1], or the execution model [2], the import system [3], and the data types sections [4]<p>I also recommend reading a few of the PEPs. Some of the more recent ones which are really interesting are:<p>1. PEP 635 - Structural Pattern Matching: Motivation and Rationale [5]
2. PEP 636 - Structural Pattern Matching: Tutorial [6]
3. PEP 483 - The Theory of Type Hints [7]
4. PEP 572 - Assignment Expressions [8]<p>The thing about books is that while they're are a good introduction, you won't get these things from the books. The docs exist for a reason, and if they're not good, feel free to file a PR. However note that the Python docs are really well written :)<p>I also personally recommend the RealPython blog. It has a LOT of articles on the topics you mentioned. On the note of decorators btw, you should learn how to use two python functions: `id`, and `dir` [9]. They are the most powerful tools in my repertoire, and I only grok the advanced topics because I know how to use these.<p>References:
1. <a href="https://docs.python.org/3/reference/datamodel.html" rel="nofollow">https://docs.python.org/3/reference/datamodel.html</a>
2. <a href="https://docs.python.org/3/reference/executionmodel.html" rel="nofollow">https://docs.python.org/3/reference/executionmodel.html</a>
3. <a href="https://docs.python.org/3/reference/import.html" rel="nofollow">https://docs.python.org/3/reference/import.html</a>
4. <a href="https://docs.python.org/3/library/datatypes.html" rel="nofollow">https://docs.python.org/3/library/datatypes.html</a>
5. <a href="https://www.python.org/dev/peps/pep-0635/" rel="nofollow">https://www.python.org/dev/peps/pep-0635/</a>
6. <a href="https://www.python.org/dev/peps/pep-0636/" rel="nofollow">https://www.python.org/dev/peps/pep-0636/</a>
7. <a href="https://www.python.org/dev/peps/pep-0483/" rel="nofollow">https://www.python.org/dev/peps/pep-0483/</a>
8. <a href="https://www.python.org/dev/peps/pep-0572/" rel="nofollow">https://www.python.org/dev/peps/pep-0572/</a>
9. <a href="https://realpython.com/lessons/dir-function/" rel="nofollow">https://realpython.com/lessons/dir-function/</a>