Fluent Python: Clear, Concise, and Effective Programming
Language: English
Category: Ebook - Computer/Internet
Categories: Computer/Internet
Uploader: draino
Uploaded At: 2022-04-12 00:50:05
O'Reilly Media; 2nd Edition 2022, Python Programming
Description
Python’s simplicity lets you become productive quickly, but often this means you aren’t using everything it has to offer. With the updated edition of this hands-on guide, you’ll learn how to write effective, modern Python 3 code by leveraging its best ideas.
Don’t waste time bending Python to fit patterns you learned in other languages. Discover and apply idiomatic Python 3 features beyond your past experience. Author Luciano Ramalho guides you through Python’s core language features and libraries and teaches you how to make your code shorter, faster, and more readable.
Featuring major updates throughout the book, Fluent Python, second edition, covers:
- Special methods: The key to the consistent behavior of Python objects
- Data structures: Sequences, dicts, sets, Unicode, and data classes
- Functions as objects: First-class functions, related design patterns, and type hints in function declarations
- Object-oriented idioms: Composition, inheritance, mixins, interfaces, operator overloading, static typing and protocols
- Control flow: Context managers, generators, coroutines, async/await, and thread/process pools
- Metaprogramming: Properties, attribute descriptors, class decorators, and new class metaprogramming hooks that are simpler than metaclasses
Who This Book is For
This book was written for practicing Python programmers who want to become proficient in Python 3. I tested the examples in Python 3.10—most of them also in Python 3.9 and 3.8. When an example requires Python 3.10, it should be clearly marked.
If you are not sure whether you know enough Python to follow along, review the topics of the official Python tutorial. Topics covered in the tutorial will not be explained here, except for some features that are new.
Who This Book is Not For
If you are just learning Python, this book is going to be hard to follow. Not only that, if you read it too early in your Python journey, it may give you the impression that every Python script should leverage special methods and metaprogramming tricks. Premature abstraction is as bad as premature optimization.
Table of Contents
Part I. Data Structures
1. The Python Data Model
Part II. Functions as Objects
7. Functions as First-Class Objects
Part III. Classes and Protocols
11. A Pythonic Object
Part IV. Control Flow
17. Iterators, Generators, and Classic Coroutines
Part V. Metaprogramming
22. Dynamic Attributes and Properties
Other Torrents
by Luciano Ramalho
O'Reilly Media, 2022, Computer Science, Software Engineering, Computer Programming, Python
pdf | 0 comments
Computer/Internet
15.7 MiB
kdyn
0
997
by Luciano Ramalho
Luciano Ramalho
epub | 0 comments
Computer/Internet
5.1 MiB
0
474
by Luciano Ramalho
Early-release: Raw & Unedited
epub, mobi, pdf | 2 comments
Computer/Internet
42.1 MiB
Huffy
0
659
by Luciano Ramalho
1st edition, programming, 1491946008
epub, pdf | 2 comments
Computer/Internet
17.6 MiB
crescentmoon
0
877