User:Yath~enwikibooks/Python

' NOTE: This page is mostly obsolete and the reorganization has been accomplished. '

This is a scratch page for reorganizing Programming:Python. The book currently has two tables of contents. One of them may or may not represent a reasonable progression through the subject. At any rate, the book is in an amazing state of disarray; I'll try to evaluate and plan some reconstruction here.

These are just the pages that exist. There are also many red links.

''' This page has three sections. ''' One of them is an outline, so I won't be putting in headings and subheadings here (they would interfere with the outline). They are:


 * Analysis of old content
 * New section outline
 * Copy of old content

Potential outline

Introduction
This section is for lighthearted reading, and to prepare the reader for the next section (learning to program).

Learning to program in Python
This section presents a series of examples and exercises of increasing depth and complexity. It sort of follows the sequence of the "Python concepts" section, but tosses in bits from more advanced and less advanced sections. For example, when the sample programs seem to be playing with "flow control" (loops etc.) the os module might be imported and used for a simple function (from ahead) and triple-quoted multiline strings might pop in (from behind). This sort of stuff is done sparingly, because you don't want to overwhelm the reader. It is necessary, however, to keep people from becoming too bored. And it can usually be ignored, unless the reader gets too curious, in which case they can turn to the section on the os module and read up a bit.

Python concepts
This section is like a concept reference. Want something that's a step up from a list of flow control operators? Here it is. Every idiosyncracy of 'if-else-elif-unless' is clearly presented and explained. This would be inappropriate for the learning section. This is the place for completeness.

Operators
Math, concatenation. Perhaps backticks (number-to-string-conversion) belongs here. Remember to include a precedence table.

Standard modules
All or most standard modules, complete function lists, explained.

Function reference
Built-in functions explained.

COPY OF OLD CONTENT

Contents
 * Beginning Python
 * Python syntax and functions
 * Python features
 * Python and data (lists)
 * Code and interfaces in Python
 * Advanced Python

Beginning Python
 * Basic Concepts
 * Modules
 * Variables
 * Data Types
 * Simple Input and Output
 * Simple math
 * Program Flow
 * Procedures and Functions
 * Python classes and instances
 * Libraries
 * Further math in Python
 * Basics of Compilation
 * Exercises

In-depth Python ideas
 * String Manipulation
 * Programming Structure and Style
 * Python complex types
 * Error Catching
 * Operator Overloading
 * Standard libraries
 * Strings and Regular Expressions
 * Files and Directories
 * Storing Data and Objects
 * Networking
 * Standard Internet Protocols
 * Memory Management
 * Generators and the generator protocol

Python and beyond
 * A simple tutorial in Python
 * Python installation
 * Combining Languages
 * Commented Source Code Library