Sign up
Forgot password?
FAQ: Login

Hellmann Doug. The Python 3 Standard Library by Example

  • pdf file
  • size 14,14 MB
  • added by
  • info modified
Hellmann Doug. The Python 3 Standard Library by Example
Addison-Wesley Professional, 2017. — 1456 p. — (Developer's Library Series). — ISBN: 978-0-13-429105-5.
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 structures: 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.
The book is organized into chapters based on programming topics such as network programming, manipulating text, using the filesystem, etc. Each section of a chapter covers a single module from the standard library. The structure of the sections follows a consistent pattern in which a short introduction explains the overall purpose of the module being discussed, and then the features provided by the module are examined in a logical order, building from basic to complex or following the order a programmer would need to use them in a real application. The code example sections begin with a brief introduction to the example code followed by exposition and sample output from the program. Where appropriate, variations are demonstrated with alternate input values or options to highlight the change in behavior. Each code sample is a complete program file that can be run on its. An appendex will include “porting notes” for each module, summarizing the differences between Python 2 and 3, including aspects like renamed modules or classes, deprecated and new features, and behavioral changes.
  • Sign up or login using form at top of the page to download this file.
  • Sign up
Up