Book description
Updated for both Python 3.4 and 2.7, this convenient pocket guide is the perfect on-the-job quick reference. Youâ??ll find concise, need-to-know information on Python types and statements, special method names, built-in functions and exceptions, commonly used standard library modules, and other prominent Python tools. The handy index lets you pinpoint exactly what you need.
Written by Mark Lutzâ??widely recognized as the worldâ??s leading Python trainerâ??Python Pocket Reference is an ideal companion to Oâ??Reillyâ??s classic Python tutorials, Learning Python and Programming Python, also written by Mark.
This fifth edition covers:
- 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
- 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
- The Python SQL Database API
Publisher resources
Table of contents
-
1. Python Pocket Reference
- Introduction
- Book Conventions
- Python Command-Line Usage
- Python Environment Variables
- Python Windows Launcher Usage
- Built-in Types and Operators
-
Specific Built-in Types
- Numbers
-
Strings
- Literals and creation
- Operations
- String formatting
- String formatting expression
- Formatting expression syntax
- String formatting method
- Formatting method syntax
- Template string substitution
- String methods
- byte and bytearray methods
- Searching methods
- Splitting and joining methods
- Formatting methods
- Content test methods
- The original string module
- Unicode Strings
- Lists
- Dictionaries
- Tuples
- Files
- Sets
- Other Types and Conversions
- 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 SQL Database API
- More Hints and Idioms
- Index
- Copyright
Product information
- Title: Python Pocket Reference, 5th Edition
- Author(s):
- Release date: January 2014
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449357016
You might also like
book
The Quick Python Book, Third Edition
This third revision of Manning's popular The Quick Python Book offers a clear, crisp updated introduction …
book
Python Cookbook
The Python Cookbook is a collection of problems, solutions, and practical examples for Python programmers, written …
book
Programming Python, 4th Edition
If you've mastered Python's fundamentals, you're ready to start using it to get real work done. …
book
Python in a Nutshell, 3rd Edition
Useful in many roles, from design and prototyping to testing, deployment, and maintenance, Python is consistently …