My Account Log in

1 option

Fluent Python : clear, concise, and effective programming / Luciano Ramalho

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Ramalho, Luciano.
Language:
English
Subjects (All):
Python (Computer program language).
Object-oriented programming languages.
Physical Description:
1 online resource (xxviii, 981 pages) : illustrations
Edition:
Second edition
Place of Publication:
Beijing : O'Reilly Media, 2022.
Summary:
Don't waste time bending Python to fit patterns you've learned in other languages. Python's simplicity lets you become productive quickly, but often this means you aren't using everything the language 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. 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. Complete with major updates throughout, this new edition features five parts that work as five short books within the book: 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, protocols, and more static types; Control flow: Context managers, generators, coroutines, async/await, and thread/process pools; Metaprogramming: Properties, attribute descriptors, class decorators, and new class metaprogramming hooks that replace or simplify metaclasses.
Contents:
I. Data structures
1. The Python Data Model
2. An Array of Sequences
3. Dictionaries and Sets
4. Unicode Text Versus Bytes
5. Data Class Builders
6. Object References, Mutability, and Recycling
II. Functions as objects
7. Functions as First-Class Objects
8. Type Hints in Functions
9. Decorators and Closures
10. Design Patterns with First-Class Functions
III. Classes and protcols
11. A Pythonic Object
12. Special Methods for Sequences
13. Interfaces, Protocols, and ABCs
14. Inheritance: For Better or for Worse
15. More About Type Hints
16. Operator Overloading
IV. Control flow
17. Iterators, Generators, and Classic Coroutines
18. with, match, and else Blocks
19. Concurrency Models in Python
20. Concurrent Executors
21. Asynchronous Programming
V. Metaprogramming
22. Dynamic Attributes and Properties
23. Attribute Descriptors
24. Class Metaprogramming
Afterword
Index.
Notes:
"2nd edition. Covers Python 3.10" -- Cover.
Description based on publisher supplied metadata and other sources.
ISBN:
9781492056300
1492056308
9781492056324
1492056324
9781492056348
1492056340
OCLC:
1308979387

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account