cpython/Demo
Jeffrey Yasskin d7b00334f3 Add rational.Rational as an implementation of numbers.Rational with infinite
precision. This has been discussed at http://bugs.python.org/issue1682. It's
useful primarily for teaching, but it also demonstrates how to implement a
member of the numeric tower, including fallbacks for mixed-mode arithmetic.

I expect to write a couple more patches in this area:
 * Rational.from_decimal()
 * Rational.trim/approximate() (maybe with different names)
 * Maybe remove the parentheses from Rational.__str__()
 * Maybe rename one of the Rational classes
 * Maybe make Rational('3/2') work.
2008-01-15 07:46:24 +00:00
..
cgi Add description of what's here. 2002-10-18 15:35:42 +00:00
classes Add rational.Rational as an implementation of numbers.Rational with infinite 2008-01-15 07:46:24 +00:00
comparisons SF Bug #1348477, regextest can't be pydoc'ed. Will backport. 2005-11-09 07:07:58 +00:00
curses Docstring fix; use True 2006-06-03 23:09:58 +00:00
embed Remove .cvsignore files, as they live in svn:ignore 2005-10-30 22:01:41 +00:00
imputil
md5test Whitespace normalization. Ran reindent.py over the entire source tree. 2004-07-18 05:56:09 +00:00
metaclasses Whitespace normalization. Ran reindent.py over the entire source tree. 2004-07-18 05:56:09 +00:00
newmetaclasses Replaced import of the 'new' module with 'types' module and added a deprecation warning to the 'new' module. 2007-11-27 21:34:01 +00:00
parser Whitespace normalization. 2007-04-25 18:47:18 +00:00
pdist Remove regsub, reconvert, regex, regex_syntax and everything under lib-old. 2006-03-16 06:50:13 +00:00
pysvr
rpc SF patch 1179503: Fix typos in rpc.py 2005-04-10 16:21:07 +00:00
scripts Remove regsub, reconvert, regex, regex_syntax and everything under lib-old. 2006-03-16 06:50:13 +00:00
sockets Add more whitespace; use a better socket name 2006-06-03 23:59:36 +00:00
threads Remove references to stdwin which was removed long ago. 2007-05-13 20:54:19 +00:00
tix Patch #1462222: Fix Tix.Grid. Closes #1036406. 2006-04-10 08:34:21 +00:00
tkinter A thread-less variant of brownian.py, submitted by Michele Simoniato. 2007-11-26 22:16:49 +00:00
xml Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
zlib Use functions; modernize code 2006-06-03 23:39:07 +00:00
README Remove xmlrpc/ directory 2006-06-03 23:47:22 +00:00

README

This directory contains various demonstrations of what you can do with
Python.  They were all written by me except where explicitly stated
otherwise -- in general, demos contributed by others ends up in the
../Contrib directory, unless I think they're of utmost general
importance (like Matt Conway's Tk demos).

A fair number of utilities that are useful when while developing
Python code can be found in the ../Tools directory -- some of these
can also be considered good examples of how to write Python code.

Finally, in order to save disk space and net bandwidth, not all
subdirectories listed here are distributed.  They are listed just
in case I change my mind about them.


cgi             CGI examples (see also ../Tools/faqwiz/.)

classes		Some examples of how to use classes.

comparisons	A set of responses to a really old language-comparison
		challenge.

curses		A set of curses demos.

embed		An example of embedding Python in another application
		(see also pysvr).

imputil		Demonstration subclasses of imputil.Importer.

md5test		Test program for the optional md5 module.

metaclasses	The code from the 1.5 metaclasses paper on the web.

parser		Example using the parser module.

pdist		Old, unfinished code messing with CVS, RCS and remote
		files.

pysvr		An example of embedding Python in a threaded
		application.

rpc		A set of classes for building clients and servers for
		Sun RPC.

scripts		Some useful Python scripts that I put in my bin
		directory.  No optional built-in modules needed.

sockets		Examples for the new built-in module 'socket'.

threads		Demos that use the 'thread' module.  (Currently these
		only run on SGIs, but this may change in the future.)

tix		Demos using the Tix widget set addition to Tkinter.

tkinter		Demos using the Tk interface (including Matt Conway's
		excellent set of demos).

xml		Some XML demos.

zlib		Some demos for the zlib module (see also the standard
		library module gzip.py).