Python Programming

From Wikibooks, the open-content textbooks collection

Jump to: navigation, search

Python is a general-purpose interpreted programming language. It currently has distributions available for Microsoft Windows, Apple Mac OS X, GNU/Linux, BSD, and many other platforms. There are currently three major implementations: the standard implementation written in C, Jython written in Java, and IronPython written in C# for the MS .NET environment.

Wikibook Development Stages
Sparse text 00%.svg Developing text 25%.svg Maturing text 50%.svg Developed text 75%.svg Comprehensive text: 100%.svg


If you have questions related to Python programming, ask at the Q&A.

Contents


[edit] Introduction

Overview Development stage: 75% (as of Aug 6, 2006)
Getting Python Development stage: 75% (as of Aug 6, 2006)
Setting it upDevelopment stage: 25% (as of Feb 13, 2007)
Interactive mode Development stage: 75% (as of Aug 6, 2006)
Getting help Development stage: 25% (as of Dec 15, 2008)

[edit] Learning to program in Python

Creating Python programs Development stage: 75% (as of Aug 6, 2006)
Variables and Strings Development stage: 100% (as of Nov 7, 2007)
Basic Math Development stage: 50% (as of Mar 19, 2007)
Arrays Development stage: 25% (as of Nov 7, 2007)
Decision Control Development stage: 100% (as of Dec 1, 2008)
Conditional Statements Development stage: 100% (as of Dec 1, 2008)
Loops Development stage: 50% (as of Mar 27, 2009)
Source Documentation and Comments Development stage: 25% (as of Mar 2, 2009)
Modules and how to use them See section below. Development stage: 25% (as of Aug 6, 2006)
Creating and Handling Files Development stage: 50% (as of Aug 6, 2006)
Handling Text Development stage: 00% (as of Aug 6, 2006)
Errors Development stage: 25% (as of Jul, 2008)
Namespaces Development stage: 00% (as of Aug 6, 2006)
Object-oriented programming Development stage: 100% (as of June 6,2008)
User Interface and Interaction Development stage: 100% (as of Nov 25, 2008)
Databases Development stage: 00% (as of Aug 6, 2006)
Web interaction Development stage: 75% (as of Feb 10, 2009)
Network interaction Development stage: 00% (as of Aug 6, 2006)
Tips and tricks Development stage: 25% (as of Aug 6, 2006)

[edit] Python concepts

Basic syntax Development stage: 75% (as of Aug 6, 2006)
Data types Development stage: 75% (as of Aug 6, 2006)
Numbers Development stage: 75% (as of Aug 6, 2006)
Strings Development stage: 75% (as of Aug 6, 2006)
Lists Development stage: 75% (as of Aug 6, 2006)
Tuples Development stage: 75% (as of Aug 6, 2006)
Dictionaries Development stage: 75% (as of Aug 6, 2006)
Sets Development stage: 75% (as of Aug 6, 2006)
Operators Development stage: 75% (as of Aug 6, 2006)
Flow control Development stage: 75% (as of Aug 6, 2006)
Functions Development stage: 75% (as of Aug 6, 2006)
Decorators Development stage: 25% (as of Dec 16, 2008)
Scoping Development stage: 25% (as of Aug 6, 2006)
Exceptions Development stage: 75% (as of Aug 6, 2006)
Input and output Development stage: 75% (as of Aug 6, 2006)
Modules Development stage: 75% (as of Aug 6, 2006)
Classes Development stage: 75% (as of Aug 6, 2006)
MetaClasses Development stage: 75% (as of Aug 6, 2006)

[edit] Rocking the Python (Modules)

Standard Library Development stage: 00% (as of Feb 10, 2009)
Regular Expression Development stage: 75% (as of Aug 6, 2006)
XML Tools Development stage: 00% (as of Jan 25, 2007)
Email Development stage: 25% (as of Feb 21, 2009)
Threading Development stage: 25% (as of Aug 6, 2006)
Socket programming Development stage: 00% (as of Aug 6, 2006)
Graphical User Interfaces in Python Development stage: 25% (as of Aug 6, 2006)
WSGI web programming Development stage: 00% (as of Aug 6, 2006)
Extracting info from web pages Development stage: 00% (as of Aug 6, 2006)

[edit] Third-party modules

Databases Development stage: 00% (as of Aug 6, 2006)
Game Programming in Python Development stage: 25% (as of Aug 6, 2006)
Qt4 Development stage: 75% (as of Feb 10, 2009)
Dbus Development stage: 00% (as of Jan 25, 2009)
pyFormex

[edit] Writing extension modules

Extending with C Development stage: 50% (as of Aug 6, 2006)
Extending with C++ Development stage: 25% (as of Aug 6, 2006)
Extending with Pyrex
Extending with ctypes

[edit] Notes

The latest documentation for the standard python libraries and modules can always be found at The Python.org documents section. This documentation includes the official Tutorial.

The following articles are Python adaptations from articles of the Computer programming book. The texts in these articles are language neutral but the examples are all Python.

[edit] See also

[edit] External links