Book description
This is the book to reach for when you're coding on the fly and need an answer now. It's an easy-to-use reference to the core language, with descriptions of commonly used modules and toolkits, and a guide to recent changes, new features, and upgraded built-ins -- all updated to cover Python 3.X as well as version 2.6. You'll also quickly find exactly what you need with the handy index.
Written by Mark Lutz -- widely recognized as the world's leading Python trainer -- Python Pocket Reference, Fourth Edition, is the perfect companion to O'Reilly's classic Python tutorials, also written by Mark: Learning Python and Programming Python.
- Built-in object types, including numbers, lists, dictionaries, and more
- Statements and syntax for creating and processing objects
- Functions and modules for structuring and reusing code
- Python's object-oriented programming tools
- The exception-handling model
- Built-in functions, exceptions, and attributes
- Special operator overloading methods
- Widely used standard library modules and extensions
- Command-line options and development tools
- Python idioms and hints
Publisher resources
Table of contents
- Python Pocket Reference
-
1. Python Pocket Reference
- Introduction
- Conventions
- Using Code Examples
- Safari® Books Online
- Command-Line Options
- Environment Variables
- Built-in Types and Operators
- Specific Built-in Types
- Statements and Syntax
-
Specific Statements
- The Assignment Statement
- The Expression Statement
- The print Statement
- The if Statement
- The while Statement
- The for Statement
- The pass Statement
- The break Statement
- The continue Statement
- The del Statement
- The def Statement
- The return Statement
- The yield Statement
- The global Statement
- The nonlocal Statement
- The import Statement
- The from Statement
- The class Statement
- The try Statement
- The raise Statement
- The assert Statement
- The with Statement
- Python 2.X Statements
- Namespace and Scope Rules
- Object-Oriented Programming
- Operator Overloading Methods
- Built-in Functions
- Built-in Exceptions
- Built-in Attributes
- Standard Library Modules
- The sys Module
- The string Module
- The os System Module
- The re Pattern-Matching Module
- Object Persistence Modules
- The tkinter GUI Module and Tools
- Internet Modules and Tools
- Other Standard Library Modules
- Python Portable SQL Database API
- Python Idioms and Hints
- Index
- About the Author
- Copyright
Product information
- Title: Python Pocket Reference, 4th Edition
- Author(s):
- Release date: October 2009
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449379339
You might also like
book
Designing Large Language Model Applications
Transformer-based language models are powerful tools for solving a variety of language tasks and represent a …
book
Fluent Python, 2nd Edition
Don't waste time bending Python to fit patterns you've learned in other languages. Python's simplicity lets …
book
Practices of the Python Pro
Practices of the Python Pro teaches you to design and write professional-quality software that’s understandable, maintainable, …
book
SQL for Data Analysis
With the explosion of data, computing power, and cloud data warehouses, SQL has become an even …