Nonfiction
Book
Availability
Details
PUBLISHED
©2022
EDITION
DESCRIPTION
xxviii, 983 pages : illustrations ; 24 cm
ISBN/ISSN
LANGUAGE
NOTES
Previous edition: 2015
Data structures. The Python data model ; An array of sequences ; Dictionaries and sets ; Unicode text versus bytes ; Data class builders ; Object references, mutability, and recycling -- Functions as objects. Functions as first-class objects ; Type hints in functions ; Decorators and closures ; Design patterns with first-class functions -- Classes and protocols. A Pythonic object ; Special methods for sequences ; Interfaces, protocols, and ABCs ; Inheritance : for better or for worse ; More about type hints ; Operator overloading -- Control flow. Iterators, generators, and classic coroutines ; With, match, and else blocks ; Concurrency models in Python ; Concurrent executors ; Asynchronous programming -- Metaprogramming. Dynamic attributes and properties ; Attribute descriptors ; Class metaprogramming
Don't waste time bending Python to fit patterns you've learned in other languages. Python's simplicity lets you become productive quickly - but this often means you aren't using everything the language has to offer. In the updated edition of this hands-on guide, you'll learn how to write effective, modern Python 3 code by leveraging its best ideas. Discover and apply idiomatic Python 3 features beyond your past experience. The author guides you through Python's core language features and libraries, and teaches you how to make your code shorter, faster, and more readable
"Covers Python 3.10"-- Cover