Python in a Nutshell.
| Main Author: | |
|---|---|
| Corporate Author: | |
| Other Authors: | , , |
| Format: | eBook |
| Language: | English |
| Published: |
Sebastopol, CA :
O'Reilly Media, Inc.,
2023.
|
| Edition: | 4th edition. |
| Subjects: | |
| Online Access: | Connect to the full text of this electronic book |
Table of Contents:
- Cover
- Copyright
- Table of Contents
- Preface
- How To Use This Book
- Part I, Getting Started with Python
- Part II, Core Python Language and Built-ins
- Part III, Python Library and Extension Modules
- Part IV, Network and Web Programming
- Part V, Extending, Distributing, and Version Upgrade and Migration
- Conventions Used in This Book
- Reference Conventions
- Version Conventions
- Typographic Conventions
- Using Code Examples
- O'Reilly Online Learning
- How to Contact Us
- Acknowledgments
- Chapter 1. Introduction to Python
- The Python Language
- The Python Standard Library and Extension Modules
- Python Implementations
- CPython
- PyPy
- Choosing Between CPython, PyPy, and Other Implementations
- Other Developments, Implementations, and Distributions
- Licensing and Price Issues
- Python Development and Versions
- Python Resources
- Documentation
- Community
- Installation
- Installing Python from Binaries
- Installing Python from Source Code
- Microsoft Windows
- Unix-Like Platforms
- Chapter 2. The Python Interpreter
- The python Program
- Environment Variables
- Command-Line Syntax and Options
- The Windows py Launcher
- The PyPy Interpreter
- Interactive Sessions
- Python Development Environments
- IDLE
- Other Python IDEs
- Free Text Editors with Python Support
- Tools for Checking Python Programs
- Running Python Programs
- Running Python in the Browser
- PyScript
- Jupyter
- Chapter 3. The Python Language
- Lexical Structure
- Lines and Indentation
- Character Sets
- Tokens
- Statements
- Data Types
- Numbers
- Sequences
- Sets
- Dictionaries
- None
- Ellipsis (...)
- Callables
- Boolean Values
- Variables and Other References
- Variables
- Assignment Statements
- del Statements
- Expressions and Operators
- Comparison Chaining
- Short-Circuiting Operators
- Assignment Expressions
- Numeric Operations
- Numeric Conversions
- Arithmetic Operations
- Bitwise Operations on Integers
- Sequence Operations
- Sequences in General
- Strings
- Tuples
- Lists
- Set Operations
- Set Membership
- Set Methods
- Dictionary Operations
- Dictionary Membership
- Indexing a Dictionary
- Dictionary Methods
- Control Flow Statements
- The if Statement
- The match Statement
- The while Statement
- The for Statement
- The break Statement
- The continue Statement
- The else Clause on Loop Statements
- The pass Statement
- The try and raise Statements
- The with Statement
- Functions
- Defining Functions: The def Statement
- Parameters
- Attributes of Function Objects
- Function Annotations
- The return Statement
- Calling Functions
- Namespaces
- lambda Expressions
- Generators
- Recursion
- Chapter 4. Object-Oriented Python
- Classes and Instances
- Python Classes
- The class Statement
- The Class Body
- Descriptors
- Instances
- Attribute Reference Basics
- Bound and Unbound Methods