Python in a Nutshell
O'Reilly Media (Verlag)
978-1-4493-9292-5 (ISBN)
- Titel ist leider vergriffen;
keine Neuauflage - Artikel merken
The third edition of this practical book provides a quick reference to the language—including Python 3.5, 2.7, and highlights of 3.6—commonly used areas of its vast standard library, and some of the most useful third-party modules and packages.
Ideal for programmers with some Python experience, and those coming to Python from other programming languages, this book covers a wide range of application areas, including web and network programming, XML handling, database interactions, and high-speed numeric computing.
Discover how Python provides a unique mix of elegance, simplicity, practicality, and sheer power.
This edition covers:
- Python syntax, Object-Oriented Python, standard library modules, and third-party Python packages
- Python’s support for file and text operations, persistence and databases, concurrent execution, and numeric computations
- Networking basics, event-driven programming, and client-side network protocol modules
- Python extension modules, and tools for packaging and distributing extensions, modules, and applications
Alex Martelli spent 8 years with IBM Research, winning three Outstanding Technical Achievement Awards.He then spent 13 as a Senior Software Consultant at think3 inc, developing libraries, network protocols, GUI engines, event frameworks, and web access frontends. He has also taught programming languages, development methods, and numerical computing at Ferrara University and other venues. He's a C++ MVP for Brainbench, and a member of the Python Software Foundation. He currently works for AB Strakt, a Python-centered software house in Goteborg, Sweden, mostly by telecommuting from his home in Bologna, Italy. Alex's proudest achievement is the articles that appeared in Bridge World (January/February 2000), which were hailed as giant steps towards solving issues that had haunted contract bridge theoreticians for decades.
Anna Martelli Ravenscroft is an experienced speaker and trainer, with diverse background developing curricula for church, regional transit, disaster preparedness; developing web applications for therapy, learning, fitness; writing technical books, articles and presentations; active member of Open Source community; skilled at translating between IT professionals and end users.
Steve Holden is a consultant, advising clients on system and network architectures and the design and implementation of programmed web systems. He also teaches classes on TCP/IP, network security, database and programming topics, and is the author of "Python Web Programming", the O'Reilly School of Technology's "Certificate series in Python" and O'Reilly Media's "Intermediate Python" video series. Steve has spent time on both sides of the "academic divide", and was an early researcher into the integration of text, graphics and database while teaching system development topics at Manchester University. This research led Steve to form Desktop Connection Limited, the first UK reseller of Frame Technology's (now Adobe's) FrameMaker software. His customers included British Telecom, British Aerospace, British Gas, and Sun Microsystems. Born and raised in the UK, Steve has travelled throughout Europe and the USA on teaching assignments. He now lives in Portland, OR, the USA's open source epicenter, where when not consulting, teaching or writing he enjoys looking for worthwhile American beers, entertaining friends and family, and reading science fiction.
Getting Started with Python
Chapter 1Introduction to Python
The Python Language
The Python Standard Library and Extension Modules
Python Implementations
Python Development and Versions
Python Resources
Installation
Installing Python from Binaries
Installing Python from Source Code
Installing Jython
Installing IronPython
Installing PyPy
Chapter 2The Python Interpreter
The python Program
Python Development Environments
Running Python Programs
The jython Interpreter
The IronPython Interpreter
The PyPy Interpreter
Core Python Language and Built-ins
Chapter 3The Python Language
Lexical Structure
Data Types
Variables and Other References
Expressions and Operators
Numeric Operations
Sequence Operations
Set Operations
Dictionary Operations
Control Flow Statements
Functions
Chapter 4Object-Oriented Python
Classes and Instances
Special Methods
Decorators
Metaclasses
Chapter 5Exceptions
The try Statement
The with Statement and Context Managers
Exception Propagation
The raise Statement
Exception Objects
Custom Exception Classes
Error-Checking Strategies
The assert Statement
Chapter 6Modules
Module Objects
Module Loading
Packages
Distribution Utilities (distutils) and setuptools
Python Environments
Chapter 7Core Built-ins and Standard Library Modules
Built-in Types
Built-in Functions
The sys Module
The copy Module
The collections Module
The functools Module
The heapq Module
The argparse Module
The itertools Module
Chapter 8Strings and Things
Methods of String and Bytes Objects
The string Module
String Formatting
Text Wrapping and Filling
The pprint Module
The reprlib Module
Unicode
Chapter 9Regular Expressions
Regular Expressions and the re Module
Python Library and Extension Modules
Chapter 10File and Text Operations
Other Chapters That Also Deal with Files
Organization of This Chapter
The io Module
Auxiliary Modules for File I/O
In-Memory “Files”: io.StringIO and io.BytesIO
Compressed Files
The os Module
Filesystem Operations
Text Input and Output
Richer-Text I/O
Interactive Command Sessions
Internationalization
Chapter 11Persistence and Databases
Serialization
DBM Modules
Berkeley DB Interfacing
The Python Database API (DBAPI) 2.0
Chapter 12Time Operations
The time Module
The datetime Module
The pytz Module
The dateutil Module
The sched Module
The calendar Module
Chapter 13Controlling Execution
Site and User Customization
Termination Functions
Dynamic Execution and exec
Internal Types
Garbage Collection
Chapter 14Threads and Processes
Threads in Python
The threading Module
The queue Module
The multiprocessing Module
The concurrent.futures Module
Threaded Program Architecture
Process Environment
Running Other Programs
The mmap Module
Chapter 15Numeric Processing
The math and cmath Modules
The operator Module
Random and Pseudorandom Numbers
The fractions Module
The decimal Module
The gmpy2 Module
Array Processing
The array Module
Extensions for Numeric Array Computation
Chapter 16Testing, Debugging, and Optimizing
Testing
Debugging
The warnings Module
Optimization
Network and Web Programming
Chapter 17Networking Basics
Networking Principles
The Berkeley Socket Interface
Transport Layer Security (TLS, AKA SSL)
Chapter 18Asynchronous Alternatives
Coroutine-Based Async Architectures
The asyncio Module (v3 Only)
The selectors Module
Chapter 19Client-Side Network Protocol Modules
Email Protocols
HTTP and URL Clients
Other Network Protocols
Chapter 20Serving HTTP
WSGI
Python Web Frameworks
Chapter 21Email, MIME, and Other Network Encodings
MIME and Email Format Handling
Encoding Binary Data as ASCII Text
Chapter 22Structured Text: HTML
The html.entities (v2: htmlentitydefs) Module
Generating HTML
Chapter 23Structured Text: XML
ElementTree
Extending, Distributing, v2/v3 Migration
Chapter 24Extending and Embedding Classic Python
Extending Python with Python’s C API
Extending Python Without Python’s C API
Cython
Embedding Python
Chapter 25Distributing Extensions and Programs
setuptools
Distributing Your Package
Chapter 26v2/v3 Migration and Coexistence
Preparing for Python 3
Minimizing Syntax Differences
Choosing Your Support Strategy
| Erscheinungsdatum | 28.04.2017 |
|---|---|
| Verlagsort | Sebastopol |
| Sprache | englisch |
| Maße | 152 x 229 mm |
| Gewicht | 998 g |
| Einbandart | kartoniert |
| Themenwelt | Informatik ► Programmiersprachen / -werkzeuge ► Python |
| Mathematik / Informatik ► Informatik ► Web / Internet | |
| Schlagworte | Handbuch • Python • Python 3 • Referenz |
| ISBN-10 | 1-4493-9292-X / 144939292X |
| ISBN-13 | 978-1-4493-9292-5 / 9781449392925 |
| Zustand | Neuware |
| Informationen gemäß Produktsicherheitsverordnung (GPSR) | |
| Haben Sie eine Frage zum Produkt? |
aus dem Bereich