Create bookmark
Learning Python
Learning Python, PDF
Notes
Please login to add notes
- Table of Contents
- + Preface
- Part I
-
+
A Python Q&A Session
-
+
How Python Runs Programs
-
+
How You Run Programs
- + Interactive Coding
- + System Command Lines and Files
- + Clicking Windows File Icons
- + Module Imports and Reloads
- + The IDLE User Interface
- Other IDEs
- Embedding Calls
- Frozen Binary Executables
- Text Editor Launch Options
- Other Launch Options
- Future Possibilities?
- Which Option Should I Use?
- Part I Exercises
- Part II
-
+
Numbers
-
+
Strings
-
+
Lists and Dictionaries
-
+
Tuples, Files, and Everything Else
- Part III
-
+
Assignment, Expressions, and Print
- + if Tests
-
+
while and for Loops
- + Documenting Python Code
- Part IV
-
+
Function Basics
- + Scopes and Arguments
- + Advanced Function Topics
- Part V
-
+
Modules: The Big Picture
-
+
Module Coding Basics
- + Module Packages
-
+
Advanced Module Topics
- Part VI
- + OOP: The Big Picture
-
+
Class Coding Basics
-
+
Class Coding Details
- + The Class Statement
- + Methods
- + Inheritance
-
+
Operator Overloading
- Common Operator Overloading Methods
- __getitem__ Intercepts Index References
- + __getitem__ and __iter__ Implement Iteration
- __getattr__ and __setattr__ Catch Attribute References
- __repr__ and __str__Return String Representations
- __radd__ Handles Right-Side Addition
- __call__ Intercepts Calls
- __del__ Is a Destructor
- + Namespaces: The Whole Story
-
+
Designing with Classes
- + Python and OOP
- Classes as Records
- OOP and Inheritance: “is-a” Relationships
- + OOP and Composition: “has-a” Relationships
- OOP and Delegation
- Multiple Inheritance
- + Classes Are Objects: Generic Object Factories
- Methods Are Objects: Bound or Unbound
- Documentation Strings Revisited
- Classes Versus Modules
- + Advanced Class Topics
- Part VII
-
+
Exception Basics
-
+
Exception Objects
-
+
Designing with Exceptions
- Part VIII
-
+
Common Tasks in Python
- Exploring on Your Own
- Conversions, Numbers, and Comparisons
- + Manipulating Strings
- + Data Structure Manipulations
-
+
Manipulating Files and Directories
- The os and os.path Modules
- Copying Files and Directories: The shutil Module
- Filenames and Directories
- Matching Sets of Files
- Using Temporary Files
- Modifying Input and Outputs
-
+
Using Standard I/O to Process Files
- Finding all lines that start with a #
- Extracting the fourth column of a file (where columns are defined by whitespace)
- Extracting the fourth column of a file, where columns are separated by colons, and making it lowe...
- Printing the first 10 lines, the last 10 lines, and every other line
- Counting the number of times the word “Python” occurs in a file
- Changing a list of columns into a list of rows
- Choosing chunk sizes
- Doing Something to a Set of Files Specified on the Command Line
- Processing Each Line of One or More Files
- Dealing with Binary Data: The struct Module
- + Internet-Related Modules
- Executing Programs
- + Debugging, Testing, Timing, Profiling
- Exercises
-
+
Frameworks
- + Python Resources
- Part IX
-
+
Installation and Configuration
-
+
Solutions to Exercises
- Index
Portable, powerful, and a breeze to use, Python is the popular open source object-oriented programming language used for both standalone programs and scripting applications. Python is considered easy to learn, but there's no quicker way to mastery of the language than learning from an expert teacher. This edition of Learning Python puts you in the hands of two expert teachers, Mark Lutz and David Ascher, whose friendly, well-structured prose has guided many a programmer to proficiency with the language. Learning Python, Second Edition, offers programmers a comprehensive learning tool for Python and object-oriented programming. Thoroughly updated for the numerous language and class presentation changes that have taken place since the release of the first edition in 1999, this guide introduces the basic elements of the latest release of Python 2.3 and covers new features, such as list comprehensions, nested scopes, and iterators/generators. Beyond language features, this edition of Learning Python also includes new context for less-experienced programmers, including fresh overviews of object-oriented programming and dynamic typing, new discussions of program launch and configuration options, new coverage of documentation sources, and more. There are also new use cases throughout to make the application of language features more concrete. The first part of Learning Python gives programmers all the information they'll need to understand and construct programs in the Python language, including types, operators, statements, classes, functions, modules and exceptions. The authors then present more advanced material, showing how Python performs common tasks by offering real applications and the libraries available for those applications. Each chapter ends with a series of exercises that will test your Python skills and measure your understanding.Learning Python, Second Edition is a self-paced book that allows readers to focus on the core Python language in depth. As you work through the book, you'll gain a deep and complete understanding of the Python language that will help you to understand the larger application-level examples that you'll encounter on your own. If you're interested in learning Python--and want to do so quickly and efficiently--then Learning Python, Second Edition is your best choice.
Test the closed alpha on paperc.com
Book Details
Authors
Categories
Computers > Programming Languages > JavaScript
Publishers
Publication year : 2004
License: All rights reserved ©
Times read: 1,003

