Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a7925f1

Browse files
committed
Initial revision
1 parent 8f0d0c8 commit a7925f1

16 files changed

Lines changed: 4571 additions & 0 deletions

Misc/ACKS

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
Acknowledgements
2+
----------------
3+
4+
This list is not complete and not in any useful order, but I would
5+
like to thank everybody who contributed in any way, with code, hints,
6+
bug reports, ideas, moral support, endorsement, or even complaints....
7+
Without you I would've stopped working on Python long ago!
8+
9+
--Guido
10+
11+
Amrit
12+
Mark Anacker
13+
Anthony Baxter
14+
Donald Beaudry
15+
Eric Beser
16+
Stephen Bevan
17+
Peter Bosch
18+
Terrence Brannon
19+
Erik de Bueger
20+
Jan-Hein B"uhrman
21+
Dick Bulterman
22+
David Chaum
23+
Jonathan Dasteel
24+
John DeGood
25+
Roger Dev
26+
Lance Ellinghouse
27+
Stoffel Erasmus
28+
Niels Ferguson
29+
Michael Guravage
30+
Paul ten Hagen
31+
Lynda Hardman
32+
Ivan Herman
33+
Chris Hoffman
34+
Philip Homburg
35+
Jack Jansen
36+
Bill Janssen
37+
Drew Jenkins
38+
Lou Kates
39+
Robert van Liere
40+
Steve Majewski
41+
Lambert Meertens
42+
Steven Miale
43+
Doug Moen
44+
Sape Mullender
45+
Sjoerd Mullender
46+
George Neville-Neil
47+
Randy Pausch
48+
Marcel van der Peijl
49+
Steven Pemberton
50+
Tim Peters
51+
John Redford
52+
Timothy Roscoe
53+
Kevin Samborn
54+
Fred Sells
55+
Denis Severson
56+
Michael Shiplett
57+
Paul Sijben
58+
Dirk Soede
59+
Per Spilling
60+
Quentin Stafford-Fraser
61+
Tracy Tims
62+
Bennett Todd
63+
Jaap Vermeulen
64+
Dik Winter

Misc/AIX-NOTES

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
[Excerpt from an email describing how to build Python on AIX.]
2+
3+
4+
Subject: Re: Python 1.0.0 BETA 5 -- also for Macintosh!
5+
From: [email protected] (Stefan Esser)
6+
7+
Date: Fri, 7 Jan 1994 17:40:43 +0100
8+
9+
[...]
10+
11+
The following are [...] Instructions
12+
to get a clean compile using gcc and xlc
13+
under AIX 3.2.4.
14+
15+
Since I wanted to make sure that Python compiles
16+
using both compilers and several sets of options
17+
(ANSI and traditional C, optimize on/off) I didn't
18+
try to include bash readline or other optional
19+
modules.
20+
21+
'make test' succeeded using Python compiled with
22+
the AIX C-compiler invoked as 'cc' and with options
23+
'-o -qMEMMAX=4000' and compiled with 'gcc' and
24+
options '-O -Wall'.
25+
26+
There were some problems trying to compile python
27+
using 'gcc -ansi' (because of _AIX no longer being
28+
defined), but I didn't have time to look into this.
29+
30+
31+
32+
Regards,
33+
34+
Stefan Esser
35+
36+
37+
38+
39+
REQUIRED:
40+
---------
41+
42+
1) AIX compilers don't like the LANG env
43+
varaiable set to european locales.
44+
This makes the compiler generate floating
45+
point constants using "," as the decimal
46+
seperator, which the assembler doesnt't
47+
understand (or was it the other way around,
48+
with the assembler expecting "," in float
49+
numbers ???).
50+
Anyway: "LANG=C; export LANG" solves the
51+
problem, as does "LANG=C $(MAKE) ..." in
52+
the master Makefile.
53+
54+
OPTIONAL:
55+
---------
56+
57+
2) The xlc compiler considers "Python/ceval.c"
58+
too complex to optimize, except when invoked
59+
with "-qMEMMAX=4000".
60+
61+
[...]

Misc/BLURB

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
What is Python?
2+
---------------
3+
4+
Python is an interpreted, interactive, object-oriented programming
5+
language. It incorporates modules, exceptions, dynamic typing, very
6+
high level dynamic data types, and classes. Python combines
7+
remarkable power with very clear syntax. It has interfaces to many
8+
system calls and libraries, as well as to various window systems, and
9+
is extensible in C or C++. It is also usable as an extension language
10+
for applications that need a programmable interface. Finally, Python
11+
is portable: it runs on many brands of UNIX, on the Mac, and on
12+
MS-DOS.
13+
14+
As a short example of what Python looks like, here's a script to
15+
print prime numbers (not blazingly fast, but readable!). When this
16+
file is made executable, it is callable directly from the UNIX shell
17+
(if your system supports #! in scripts and the python interpreter is
18+
installed at the indicated place).
19+
20+
#!/usr/local/bin/python
21+
22+
# Print prime numbers in a given range
23+
24+
def main():
25+
import sys
26+
min, max = 2, 0x7fffffff
27+
if sys.argv[1:]:
28+
min = int(eval(sys.argv[1]))
29+
if sys.argv[2:]:
30+
max = int(eval(sys.argv[2]))
31+
primes(min, max)
32+
33+
def primes(min, max):
34+
if 2 >= min: print 2
35+
primes = [2]
36+
i = 3
37+
while i <= max:
38+
for p in primes:
39+
if i%p == 0 or p*p > i: break
40+
if i%p <> 0:
41+
primes.append(i)
42+
if i >= min: print i
43+
i = i+2
44+
45+
main()

Misc/BLURB.LUTZ

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
Newsgroups: comp.lang.perl,comp.lang.tcl
2+
From: [email protected] (Mark Lutz)
3+
Subject: Python (was Re: Has anyone done a tk addition to perl?)
4+
Organization: XVT Software Inc.
5+
Date: Thu, 14 Oct 1993 17:10:37 GMT
6+
X-Disclaimer: The views expressed in this message are those of an
7+
individual at XVT Software Inc., and do not necessarily
8+
reflect those of the company.
9+
10+
11+
I've gotten a number of requests for information about Python,
12+
since my post here earlier this week. Since this appears to be
13+
of general interest, and since there's no python news group yet,
14+
I'm posting a description here. I'm not the best authority on
15+
the language, but here's my take on it.
16+
17+
[TCL/Perl zealots: this is informational only; I'm not trying to
18+
'convert' anybody, and don't have time for a language war :-)
19+
There is a paper comparing TCL/Perl/Python/Emacs-Lisp, which is
20+
referenced in the comp.lang.misc faq, I beleive.]
21+
22+
23+
What is Python?...
24+
25+
Python is a relatively new very-high-level language developed
26+
in Amsterdam. Python is a simple, procedural language, with
27+
features taken from ABC, Icon, Modula-3, and C/C++.
28+
29+
It's central goal is to provide the best of both worlds:
30+
the dynamic nature of scripting languages like Perl/TCL/REXX,
31+
but also support for general programming found in the more
32+
traditional languages like Icon, C, Modula,...
33+
34+
As such, it can function as a scripting/extension language,
35+
as a rapid prototyping language, and as a serious software
36+
development language. Python is suitable for fast development
37+
of large programs, but also does well at throw-away shell coding.
38+
39+
Python resembles other scripting languages a number of ways:
40+
- dynamic, interpretive, interactive nature
41+
- no explicit compile or link steps needed
42+
- no type declarations (it's dynamically typed)
43+
- high-level operators ('in', concatenation, etc)
44+
- automatic memory allocation/deallocation (no 'pointers')
45+
- high level objects: lists, tuples, strings, associative arrays
46+
- programs can construct and execute program code using strings
47+
- very fast edit/compile/run cycle; no static linking
48+
- well-defined interface to and from C functions and data
49+
- well-defined ways to add C modules to the system and language
50+
51+
Python's features that make it useful for serious programming:
52+
- it's object-oriented; it has a simplified subset of
53+
C++'s 'class' facility, made more useful by python's
54+
dynamic typing; the language is object-oriented from
55+
the ground up (rather than being an add-on, as in C++)
56+
57+
- it supports modules (imported packages, as in Modula-3);
58+
modules replace C's 'include' files and linking, and allow
59+
for multiple-module systems, code sharing, etc.;
60+
61+
- it has a good exception handling system (a 'try' statement,
62+
and a 'raise' statement, with user-defined exceptions);
63+
64+
- it's orthogonal; everything is a first-class object in the
65+
language (functions, modules, classes, class instance methods...)
66+
and can be assigned/passed and used generically;
67+
68+
- it's fairly run-time secure; it does many run-time checks
69+
like index-out-of-bounds, etc., that C usually doesn't;
70+
71+
- it has general data structuring support; Python lists are
72+
heterogeneous, variable length, nestable, support slicing,
73+
concatenation, etc., and come into existance and are reclaimed
74+
automatically; strings and dictionaries are similarly general;
75+
76+
- it's got a symbolic debugger and profiler (written in python,
77+
of course..), and an interactive command-line interface;
78+
as in Lisp, you can enter code and test functions in isolation,
79+
from the interactive command line (even linked C functions);
80+
81+
- it has a large library of built-in modules; it has support
82+
for sockets, regular expressions, posix bindings, etc.
83+
84+
- it supports dynamic loading of C modules on many platforms;
85+
86+
- it has a _readable_ syntax; python code looks like normal
87+
programming languages; tcl and perl can be very unreadable
88+
(IMHO; what was that joke about Perl looking the same after
89+
rot13..); python's syntax is simple, and statement based;
90+
91+
92+
Of course, Python isn't perfect, but it's a good compromise betweem
93+
scripting languages and traditional ones, and so is widely applicable.
94+
'Perfect' languages aren't always useful for real-world tasks (Prolog,
95+
for example), and languages at either extreme are not useful in the other
96+
domain (C is poor for shell coding and prototyping, and awk is useless
97+
for large systems design; Python does both well).
98+
99+
For example, I've used Python successfully for a 4K line expert system
100+
shell project; it would have been at least twice as large in C, and would
101+
have been very difficult in TCL or Perl.
102+
103+
Python uses an indentation-based syntax which may seem unusual at first
104+
to C coders, but after using it I have found it to be _very_ handy, since
105+
there's less to type. [I now forget to type '}' in my C code, and am
106+
busy calculating how much time I wasted typing all those '}', 'END', etc.,
107+
just to pander to 'brain-dead' C/Pascal compilers :-)].
108+
109+
Python's currently at release 0.9.9. It seems suprisingly stable.
110+
The first 'official' 1.0 release is due out by the end of this year.
111+
Python runs on most popular machines/systems (mac, dos, unix, etc.)
112+
It's public domain and distributable, and can be had via ftp. The
113+
distribution includes examples, tutorials, and documentation. The
114+
latest ftp address I have (I got it on a cd-rom):
115+
pub/python/* at ftp.cwi.nl
116+
pub/? at wuarchive.wustl.edu (in america)
117+
118+
There's a python mailing list maintained by the language's creator.
119+
Mail '[email protected]' to get on it.
120+
121+
Mark Lutz
122+

Misc/COPYRIGHT

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum,
2+
Amsterdam, The Netherlands.
3+
4+
All Rights Reserved
5+
6+
Permission to use, copy, modify, and distribute this software and its
7+
documentation for any purpose and without fee is hereby granted,
8+
provided that the above copyright notice appear in all copies and that
9+
both that copyright notice and this permission notice appear in
10+
supporting documentation, and that the names of Stichting Mathematisch
11+
Centrum or CWI not be used in advertising or publicity pertaining to
12+
distribution of the software without specific, written prior permission.
13+
14+
STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
15+
THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
16+
FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
17+
FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
18+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
19+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
20+
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

0 commit comments

Comments
 (0)