Commits

Yung-Yu Chen  committed ad4c734

Structure the basic course.

  • Participants
  • Parent commits 1ab9805

Comments (0)

Files changed (9)

File document/source/basic.rst

 Basic Python Programming
 ========================
 
+Python Starting Course.  The audience is those who want to be a Python expert
+or to understand a Python expert.
+
+In this course, you will be introduced to the most essential elements in the
+Python programming language.  You will be given many examples to familiarize
+yourself to the practice of "one obvious way to do it", and start to understand
+the rationale behind the formality.  This course will lead your way to "import
+this".
+
 .. toctree::
 
    basic_start
    basic_package
    basic_io
    basic_flow
+   basic_container
    basic_abstract
 
 .. vim: set spell ft=rst ff=unix fenc=utf8 ai et sw=4 ts=4 tw=79

File document/source/basic_abstract.rst

-======================
-Containers and Classes
+===========================
+Object-Oriented Programming
+===========================
+
+Organize Data with Functions
+============================
+
+Encapsulation
+=============
+
+``@property``
+=============
+
+Exploit Existing Types
 ======================
 
 .. vim: set spell ft=rst ff=unix fenc=utf8 ai et sw=4 ts=4 tw=79

File document/source/basic_container.rst

+==========
+Containers
+==========
+
+Sequence: ``tuple`` and ``list``
+================================
+
+Slicing
+=======
+
+List Comprehension
+==================
+
+Iterator
+========
+
+Use ``reversed()`` and ``sorted()`` as examples.
+
+Dictionary
+==========
+
+Hashing, iterating, ``get()`` and ``setdefault()``.
+
+Dictionary for Switch-Case
+==========================
+
+Set and Other Containers
+========================
+
+.. vim: set spell ft=rst ff=unix fenc=utf8 ai et sw=4 ts=4 tw=79

File document/source/basic_flow.rst

-=================================
-Code Structuring and Flow Control
+=================
+Execution Control
+=================
+
+Functions
+=========
+
+Yield?
+
+Positional and Keyword Parameters
 =================================
 
+Conditional Statements
+======================
+
+Boolean comparison and testing for singleton.
+
+Looping
+=======
+
 .. vim: set spell ft=rst ff=unix fenc=utf8 ai et sw=4 ts=4 tw=79

File document/source/basic_io.rst

 Input, Output, and String Processing
 ====================================
 
+Read and Write Files
+====================
+
+Stream I/O and Files
+====================
+
+String Formatting
+=================
+
+String Tokenization, Concatenation, and Other Processing
+========================================================
+
+Stripping and testing.
+
+String Templating
+=================
+
+Regular Expression Interface
+============================
+
 .. vim: set spell ft=rst ff=unix fenc=utf8 ai et sw=4 ts=4 tw=79

File document/source/basic_package.rst

 Package Installation
 ====================
 
+Python Modules and PYTHONPATH
+=============================
+
+Python Packages and Import Rules
+================================
+
+Absolute and relative imports.
+
+``virtualenv``, ``pip``, and ``distribute``
+===========================================
+
+The easy way to install new packages.  Use docutils and django as examples.
+
+Manual Installation
+===================
+
+Use NumPy as an example.
+
 .. vim: set spell ft=rst ff=unix fenc=utf8 ai et sw=4 ts=4 tw=79

File document/source/basic_start.rst

 Start Running Python: Execution and Importation
 ===============================================
 
+Pythonicity and PEP8
+====================
+
+Running Python
+==============
+
+On Debian/Ubuntu.
+
+Interactive Interpreter
+=======================
+
+Invoke and use the interactive environment for simple tasks.
+
+Python Script
+=============
+
+Write Python code in a file.
+
+Use shebang and set the executable bit.
+
 .. vim: set spell ft=rst ff=unix fenc=utf8 ai et sw=4 ts=4 tw=79

File document/spell.utf-8.add

 SOLVCON
 SCons
+Pythonicity
+PEP8
+Ubuntu
+Debian
+PYTHONPATH
+virtualenv
+Tokenization
+Templating

File document/spell.utf-8.add.spl

Binary file modified.