Jump to ratings and reviews
Rate this book

Python 3 Standard Library by Example, The

Rate this book
This is the eBook of the printed book and may not include any media, website access codes, or print supplements that may come packaged with the bound book.





Master the Powerful Python 3 Standard Library through Real Code Examples 

“The genius of Doug’s approach is that with 15 minutes per week, any motivated programmer can learn the Python Standard Library. Doug’s guided tour will help you flip the switch to fully power-up Python’s batteries.”

–Raymond Hettinger, Distinguished Python Core Developer

 The Python 3 Standard Library contains hundreds of modules for interacting with the operating system, interpreter, and Internet–all extensively tested and ready to jump-start application development. Now, Python expert Doug Hellmann introduces every major area of the Python 3.x library through concise source code and output examples. Hellmann’s examples fully demonstrate each feature and are designed for easy learning and reuse.

 

You’ll find practical code for working with text, data structures, algorithms, dates/times, math, the file system, persistence, data exchange, compression, archiving, crypto, processes/threads, networking, Internet capabilities, email, developer and language tools, the runtime, packages, and more. Each section fully covers one module, with links to additional resources, making this book an ideal tutorial and reference.

 

The Python 3 Standard Library by Example introduces Python 3.x’s new libraries, significant functionality changes, and new layout and naming conventions. Hellmann also provides expert porting guidance for moving code from 2.x Python standard library modules to their Python 3.x equivalents.

Manipulate text with string, textwrap, re (regular expressions), and difflib Use data enum, collections, array, heapq, queue, struct, copy, and more Implement algorithms elegantly and concisely with functools, itertools, and contextlib Handle dates/times and advanced mathematical tasks Archive and data compression Understand data exchange and persistence, including json, dbm, and sqlite Sign and verify messages cryptographically Manage concurrent operations with processes and threads Test, debug, compile, profile, language, import, and package tools Control interaction at runtime with interpreters or the environment

5717 pages, Kindle Edition

Published June 14, 2017

46 people are currently reading
75 people want to read

About the author

Doug Hellmann

8 books1 follower

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
9 (64%)
4 stars
3 (21%)
3 stars
1 (7%)
2 stars
1 (7%)
1 star
0 (0%)
Displaying 1 - 3 of 3 reviews
Profile Image for Anton Antonov.
350 reviews48 followers
January 2, 2018
Irreplaceable for practical usage of "low"-level libraries. While the official Python 3 documentation is good compared to other language's documentations, it's really shallow regarding practicality and application of example code provided.

For a very practical reminder of Python 3 modules - the book was extremely helpful to me.
And most importantly for working with binary data and implementing/reversing binary protocols.

The `struct`, `io` and `zlib` module pages were most useful to me.

However the concurrency part of the book is not bad by any means, but the Python 3 documentation feels like it caught up to the book. In some areas such as futures - I preferred the Python 3 documentation.
Displaying 1 - 3 of 3 reviews

Can't find what you're looking for?

Get help and learn more about the design.