rest25/tutorial/appetite.rst => rest262/tutorial/appetite.rst
f1.. _tut-intro:
2
3**********************
4Whetting Your Appetite
5**********************
6
7If you do much work on computers, eventually you find that there's some task
n8-you'd like to automate.  For example, you may wish to perform a search-and-
n8+you'd like to automate.  For example, you may wish to perform a
9-replace over a large number of text files, or rename and rearrange a bunch of
9+search-and-replace over a large number of text files, or rename and rearrange a
10-photo files in a complicated way. Perhaps you'd like to write a small custom
10+bunch of photo files in a complicated way. Perhaps you'd like to write a small
11-database, or a specialized GUI application, or a simple game.
11+custom database, or a specialized GUI application, or a simple game.
12
13If you're a professional software developer, you may have to work with several
14C/C++/Java libraries but find the usual write/compile/test/re-compile cycle is
15too slow.  Perhaps you're writing a test suite for such a library and find
16writing the testing code a tedious task.  Or maybe you've written a program that
17could use an extension language, and you don't want to design and implement a
18whole new language for your application.
19
20Python is just the language for you.
21
22You could write a Unix shell script or Windows batch files for some of these
23tasks, but shell scripts are best at moving around files and changing text data,
24not well-suited for GUI applications or games. You could write a C/C++/Java
25program, but it can take a lot of development time to get even a first-draft
n26-program.  Python is simpler to use, available on Windows, MacOS X, and Unix
n26+program.  Python is simpler to use, available on Windows, Mac OS X, and Unix
27operating systems, and will help you get the job done more quickly.
28
29Python is simple to use, but it is a real programming language, offering much
30more structure and support for large programs than shell scripts or batch files
31can offer.  On the other hand, Python also offers much more error checking than
32C, and, being a *very-high-level language*, it has high-level data types built
33in, such as flexible arrays and dictionaries.  Because of its more general data
34types Python is applicable to a much larger problem domain than Awk or even
63built-in function or module to the interpreter, either to perform critical
64operations at maximum speed, or to link Python programs to libraries that may
65only be available in binary form (such as a vendor-specific graphics library).
66Once you are really hooked, you can link the Python interpreter into an
67application written in C and use it as an extension or command language for that
68application.
69
70By the way, the language is named after the BBC show "Monty Python's Flying
n71-Circus" and has nothing to do with nasty reptiles.  Making references to Monty
n71+Circus" and has nothing to do with reptiles.  Making references to Monty
72Python skits in documentation is not only allowed, it is encouraged!
73
74Now that you are all excited about Python, you'll want to examine it in some
75more detail.  Since the best way to learn a language is to use it, the tutorial
76invites you to play with the Python interpreter as you read.
t77- 
78-.. % \section{Where From Here \label{where}}
79
80In the next chapter, the mechanics of using the interpreter are explained.  This
81is rather mundane information, but essential for trying out the examples shown
82later.
83
84The rest of the tutorial introduces various features of the Python language and
85system through examples, beginning with simple expressions, statements and data
86types, through functions and modules, and finally touching upon advanced
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op