Navigation
index
next
|
previous
|
The Hazel Tree
»
Source
Python Lessons
ΒΆ
contents
[expand]
Python 101 – Introduction to Python
Front Matter
Abstract:
Contents
1. Python 101 – Introduction to Python
1.1 Important Features of Python
1.2 Where to Go For Additional help
2. Python – Feature by Feature
2.1 Interactive Python
2.2 Data Types
2.2.1 Strings
2.2.1.1 What
2.2.1.2 When
2.2.1.3 How
Writing - For example:
Notes:
Reading an entire file:
Reading a file one line at a time:
Notes:
2.2.2 Sequences
2.2.2.1 What
Capabilities of lists:
Capabilities of lists and tuples:
2.2.2.2 When
2.2.2.3 How
2.2.3 Dictionaries
2.2.3.1 What
Capabilities:
2.2.3.2 When
2.2.3.3 How
2.3 Simple Statements
2.3.1 print
2.3.2 import
2.3.3 assert
2.3.4 global
2.4 Control Structures
2.4.1 if
2.4.2 for
2.4.3 while
2.4.4 try-except and raise – Exceptions
2.4.5 Reading Text Files
2.4.6 Iterator objects
Examples
2.4.6.1 Example - A generator function
2.4.6.2 Example - A class containing a generator method
2.4.6.3 Example - An iterator class
2.4.6.4 Example - An iterator class that uses yield
2.4.6.5 Example - A list comprehension
2.4.6.6 Example - A generator expression
2.5 Code Organization
2.5.1 Functions
2.5.1.1 A basic function
2.5.1.2 A function with default arguments
2.5.1.3 Argument lists and keyword argument lists
2.5.2 Classes and Instances
2.5.2.1 A basic class
2.5.2.2 Inheritance
2.5.2.3 Class data
2.5.2.4 Static methods and class methods
2.5.2.5 Properties
2.5.3 Modules
2.5.4 Packages
End Matter
Acknowledgements and Thanks
See Also:
Python 201 – (Slightly) Advanced Python Topics
Front Matter
Abstract:
Contents
2. Regular Expressions
2.1 Defining regular expressions
2.2 Compiling regular expressions
2.3 Using regular expressions
2.4 Using match objects to extract a value
2.5 Extracting multiple items
2.6 Replacing multiple items
3. Unit Tests
3.1 Defining unit tests
4. Extending and embedding Python
4.1 Introduction and concepts
4.2 Extension modules
4.3 SWIG
4.4 Pyrex
4.5 SWIG vs. Pyrex
4.6 Extension types
4.7 Extension classes
5. Parsing
5.1 Special purpose parsers
5.2 Writing a recursive descent parser by hand
5.3 Creating a lexer/tokenizer with Plex
5.4 A survey of existing tools
5.5 Creating a parser with PLY
5.6 Creating a parser with pyparsing
5.6.1 Parsing comma-delimeted lines
5.6.2 Parsing functors
5.6.3 Parsing names, phone numbers, etc.
5.6.4 A more complex example
6. GUI Applications
6.1 Introduction
6.2 PyGtk
6.2.1 A simple message dialog box
6.2.2 A simple text input dialog box
6.2.3 A file selection dialog box
6.3 EasyGUI
6.3.1 A simple
EasyGUI
example
7. Guidance on Packages and Modules
7.1 Introduction
7.2 Implementing Packages
7.3 Using Packages
7.4 Distributing and Installing Packages
End Matter
Acknowledgements and Thanks
About this document ...
Navigation
index
next
|
previous
|
The Hazel Tree
»