Table of Contents
Dive Into Python.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
....
Plus
Table of Contents Dive Into Python. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Chapter 1. Installing Python. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1. 1. Which Python is right for you?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1. 2. Python on Windows. . . . . . . . . . . . . . . . . . .
Moins
Par Poussah
2/5
Document Adobe PDF
Publiée le 4 Nov. 2009
Pages: 327
Lectures: 66
Téléchargements: 0
Table of Contents
Plongez au coeur de Python.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
....
Plus
Table of Contents Plongez au coeur de Python. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Chapitre 1. Installation de Python. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1. 1. Quel Python vous faut−il ?. . . . . . . . . . . . . . . . . . . . . . .
Moins
Par Poussah
Document Adobe PDF
Publiée le 4 Nov. 2009
Pages: 339
Lectures: 69
Téléchargements: 0
Documenting Python
Release 3.
1
Georg Brandl
June 26, 2009
Python Software Foundation
Email: docs@python.
org
Par Poussah
Document Adobe PDF
Publiée le 30 Juin 2009
Pages: 54
Lectures: 9
Téléchargements: 17
The Python Library Reference
Release 3.
1
Guido van Rossum
Fred L.
Drake, Jr.
, editor
June 26, 2009
Python Software Foundation
Email: docs@python.
org
Par Poussah
Document Adobe PDF
Publiée le 30 Juin 2009
Pages: 1 127
Lectures: 165
Téléchargements: 48
Regular Expression HOWTO
Release 3.
1
Guido van Rossum
Fred L.
Drake, Jr.
, editor
June 26, 2009
Python Software Foundation
Email: docs@python.
org
Contents
1 Introduction ii
2 Simple Patterns ii
2.
1 Matching Characters .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
....
Plus
Regular Expression HOWTO Release 3. 1 Guido van Rossum Fred L. Drake, Jr. , editor June 26, 2009 Python Software Foundation Email: docs@python. org Contents 1 Introduction ii 2 Simple Patterns ii 2. 1 Matching Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ii 2. 2 Repeating Things . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii 3 Using Regular Expressions iv 3. 1 Compiling Regular Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv 3. 2 The Backslash Plague . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v 3. 3 Performing Matches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v 3. 4 Module-Level Fu
Moins
Par Poussah
Document Adobe PDF
Publiée le 30 Juin 2009
Pages: 18
Lectures: 54
Téléchargements: 23
Extending and Embedding Python
Release 3.
1
Guido van Rossum
Fred L.
Drake, Jr.
, editor
June 26, 2009
Python Software Foundation
Email: docs@python.
org
Par Poussah
Document Adobe PDF
Publiée le 30 Juin 2009
Pages: 98
Lectures: 51
Téléchargements: 27
The Python Language Reference
Release 3.
1
Guido van Rossum
Fred L.
Drake, Jr.
, editor
June 26, 2009
Python Software Foundation
Email: docs@python.
org
Par Poussah
Document Adobe PDF
Publiée le 30 Juin 2009
Pages: 110
Lectures: 27
Téléchargements: 40
Socket Programming HOWTO
Release 3.
1
Guido van Rossum
Fred L.
Drake, Jr.
, editor
June 26, 2009
Python Software Foundation
Email: docs@python.
org
Contents
1 Sockets i
1.
1 History .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
ii
2...
Plus
Socket Programming HOWTO Release 3. 1 Guido van Rossum Fred L. Drake, Jr. , editor June 26, 2009 Python Software Foundation Email: docs@python. org Contents 1 Sockets i 1. 1 History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ii 2 Creating a Socket ii 2. 1 IPC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii 3 Using a Socket iii 3. 1 Binary Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v 4 Disconnecting v 4. 1 When Sockets Die . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v 5 Non-blocking Sockets v 5. 1 Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Moins
Par Poussah
Document Adobe PDF
Publiée le 30 Juin 2009
Pages: 7
Lectures: 455
Téléchargements: 54
Python Advocacy HOWTO
Release 3.
1
Guido van Rossum
Fred L.
Drake, Jr.
, editor
June 26, 2009
Python Software Foundation
Email: docs@python.
org
Contents
1 Reasons to Use Python i
1.
1 Programmability .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
i
1.
2...
Plus
Python Advocacy HOWTO Release 3. 1 Guido van Rossum Fred L. Drake, Jr. , editor June 26, 2009 Python Software Foundation Email: docs@python. org Contents 1 Reasons to Use Python i 1. 1 Programmability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . i 1. 2 Prototyping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ii 1. 3 Simplicity and Ease of Understanding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii 1. 4 Java Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii 2 Arguments and Rebuttals iv 3 Useful Resources v Author A. M. Kuchling Release 0. 03 Abstract It’s usually difficult to get your management to accept open source software, and Python is no exception to this r
Moins
Par Poussah
Document Adobe PDF
Publiée le 30 Juin 2009
Pages: 5
Lectures: 6
Téléchargements: 20
Python Tutorial
Release 3.
1
Guido van Rossum
Fred L.
Drake, Jr.
, editor
June 26, 2009
Python Software Foundation
Email: docs@python.
org
Par Poussah
Document Adobe PDF
Publiée le 30 Juin 2009
Pages: 124
Lectures: 1 235
Téléchargements: 352
Unicode HOWTO
Release 3.
1
Guido van Rossum
Fred L.
Drake, Jr.
, editor
June 26, 2009
Python Software Foundation
Email: docs@python.
org
Contents
1 Introduction to Unicode i
1.
1 History of Character Codes .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
i
1.
2...
Plus
Unicode HOWTO Release 3. 1 Guido van Rossum Fred L. Drake, Jr. , editor June 26, 2009 Python Software Foundation Email: docs@python. org Contents 1 Introduction to Unicode i 1. 1 History of Character Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . i 1. 2 Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ii 1. 3 Encodings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii 1. 4 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv 2 Python’s Unicode Support iv 2. 1 The String Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv 2. 2 Conver
Moins
Par Poussah
Document Adobe PDF
Publiée le 30 Juin 2009
Pages: 10
Lectures: 79
Téléchargements: 30
Porting Extension Modules to 3.
0
Release 3.
1
Guido van Rossum
Fred L.
Drake, Jr.
, editor
June 26, 2009
Python Software Foundation
Email: docs@python.
org
Contents
1 Conditional compilation i
2 Changes to Object APIs ii
2.
1 str/unicode Unification .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
....
Plus
Porting Extension Modules to 3. 0 Release 3. 1 Guido van Rossum Fred L. Drake, Jr. , editor June 26, 2009 Python Software Foundation Email: docs@python. org Contents 1 Conditional compilation i 2 Changes to Object APIs ii 2. 1 str/unicode Unification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ii 2. 2 long/int Unification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ii 3 Module initialization and state iii 4 Other options iv Indexv author Benjamin Peterson Abstract Although changing the C-API was not one of Python 3. 0’s objectives, the many Python level changes made leaving 2. x’s API intact impossible. In fact, some changes such as int() and long() unification are more obvious on the C level. This document endeavors to document incompatibilities and how they can be worked around. 1 Conditional compilation The easiest way to comp
Moins
Par Poussah
Document Adobe PDF
Publiée le 30 Juin 2009
Pages: 5
Lectures: 75
Téléchargements: 17
Using Python
Release 3.
1
Guido van Rossum
Fred L.
Drake, Jr.
, editor
June 26, 2009
Python Software Foundation
Email: docs@python.
org
Par Poussah
Document Adobe PDF
Publiée le 30 Juin 2009
Pages: 49
Lectures: 57
Téléchargements: 37
HOWTO Fetch Internet Resources
Using The urllib Package
Release 3.
1
Guido van Rossum
Fred L.
Drake, Jr.
, editor
June 26, 2009
Python Software Foundation
Email: docs@python.
org
Contents
1 Introduction ii
2 Fetching URLs ii
2.
1 Data .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
....
Plus
HOWTO Fetch Internet Resources Using The urllib Package Release 3. 1 Guido van Rossum Fred L. Drake, Jr. , editor June 26, 2009 Python Software Foundation Email: docs@python. org Contents 1 Introduction ii 2 Fetching URLs ii 2. 1 Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii 2. 2 Headers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii 3 Handling Exceptions iv 3. 1 URLError . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv 3. 2 HTTPError . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Moins
Par Poussah
Document Adobe PDF
Publiée le 30 Juin 2009
Pages: 11
Lectures: 503
Téléchargements: 85
Curses Programming with Python
Release 3.
1
Guido van Rossum
Fred L.
Drake, Jr.
, editor
June 26, 2009
Python Software Foundation
Email: docs@python.
org
Contents
1 What is curses? i
1.
1 The Python curses module .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
ii
2...
Plus
Curses Programming with Python Release 3. 1 Guido van Rossum Fred L. Drake, Jr. , editor June 26, 2009 Python Software Foundation Email: docs@python. org Contents 1 What is curses? i 1. 1 The Python curses module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ii 2 Starting and ending a curses application ii 3 Windows and Pads iii 4 Displaying Text iv 4. 1 Attributes and Color . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v 5 User Input vi 6 For More Information vi Author A. M. Kuchling, Eric S. Raymond Release 2. 03 Abstract This document describes how to write text-mode programs with Python 2. x, using the curses extension module to control the display. 1 What is curses? The curses library supplies a terminal-independent screen-painting and keyboard-handling facility for text-based terminals; such terminals include VT100s, the Linux consol
Moins
Par Poussah
Document Adobe PDF
Publiée le 30 Juin 2009
Pages: 7
Lectures: 271
Téléchargements: 39
What’s New in Python
Release 3.
1
A.
M.
Kuchling
June 26, 2009
Python Software Foundation
Email: docs@python.
org
Contents
1 PEP 372: Ordered Dictionaries i
2 PEP 378: Format Specifier for Thousands Separator ii
3 Other Language Changes ii
4 New, Improved, and Deprecated Modules iv
5 Optimizations vi
6 IDLE vii
7 Build and C API...
Plus
What’s New in Python Release 3. 1 A. M. Kuchling June 26, 2009 Python Software Foundation Email: docs@python. org Contents 1 PEP 372: Ordered Dictionaries i 2 PEP 378: Format Specifier for Thousands Separator ii 3 Other Language Changes ii 4 New, Improved, and Deprecated Modules iv 5 Optimizations vi 6 IDLE vii 7 Build and C API Changes vii 8 Porting to Python 3. 1 viii Indexix Author Raymond Hettinger Release 3. 1 Date June 26, 2009 This article explains the new features in Python 3. 1, compared to 3. 0. 1 PEP 372: Ordered Dictionaries Regular Python dictionaries iterate over key/value pairs in arbitrary order. Over the years, a number of authors have written alternative implementations that remember the order that the keys were originally inserted. Based on the experiences from those implementations, a new collections. OrderedDict class has been introduced. The OrderedDict API is substantially the same as regular dictionaries but will iterate over keys and values in a guaranteed
Moins
Par Poussah
Document Adobe PDF
Publiée le 30 Juin 2009
Pages: 9
Lectures: 29
Téléchargements: 28
The Python/C API
Release 3.
1
Guido van Rossum
Fred L.
Drake, Jr.
, editor
June 26, 2009
Python Software Foundation
Email: docs@python.
org
Par Poussah
Document Adobe PDF
Publiée le 30 Juin 2009
Pages: 160
Lectures: 34
Téléchargements: 27
HOWTO Use Python in the web
Release 3.
1
Guido van Rossum
Fred L.
Drake, Jr.
, editor
June 26, 2009
Python Software Foundation
Email: docs@python.
org
Contents
1 The low-level view ii
1.
1 Common Gateway Interface .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
ii
Simple...
Plus
HOWTO Use Python in the web Release 3. 1 Guido van Rossum Fred L. Drake, Jr. , editor June 26, 2009 Python Software Foundation Email: docs@python. org Contents 1 The low-level view ii 1. 1 Common Gateway Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ii Simple script for testing CGI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ii Setting up CGI on your own server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii Common problems with CGI scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii 1. 2 mod_python . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv 1. 3 FastCGI and SCGI . . . . . . . . . . . . . . . . . . . . . . . .
Moins
Par Poussah
Document Adobe PDF
Publiée le 30 Juin 2009
Pages: 11
Lectures: 48
Téléchargements: 38