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
Python Pocket Reference, 5th Edition
Updated for both Python 3.4 and 2.7, this convenient pocket guide is the perfect on-the-job quick …
book
Python: Essential Reference, Third Edition
Python Essential Reference, 3rd Edition, is a comprehensive reference to the Python programming language. The focus …
book
Core Python Applications Programming, 3rd Edition
Already know Python but want to learn more? A lot more? Dive into a variety of …
article
Run Llama-2 Models Locally with llama.cpp
Llama is Meta’s answer to the growing demand for LLMs. Unlike its well-known technological relative, ChatGPT, …