blob: a64b8cd9ca60063b1b50383f0b5228afc869ebb2 [file] [log] [blame]
Guido van Rossum64773801997-11-26 17:07:02 +00001This is Python release 1.5 beta 1
Guido van Rossumf501b4e1996-10-25 14:32:48 +00002==================================
Guido van Rossumfaf681a1996-06-20 14:32:08 +00003
Guido van Rossum8d7d4ed1996-07-30 21:41:07 +00004What's new in this release?
5---------------------------
Guido van Rossum3ff96dd1996-07-30 18:05:04 +00006
Guido van Rossum66d010a1997-11-26 17:37:31 +00007There's a loooong list of changes since release 1.4 in the file
8Misc/NEWS. Some highlights:
Guido van Rossum33fde571997-05-09 02:40:09 +00009
Guido van Rossum66d010a1997-11-26 17:37:31 +000010 - It's much faster (almost twice for the Lib/test/pystone.py
11 benchmark.)
Guido van Rossumb06df271997-08-05 21:50:20 +000012
Guido van Rossum66d010a1997-11-26 17:37:31 +000013 - There is now an assert statement: ``assert <condition>'' or
14 ``assert <condition>, <errormessage>''. It raises AssertionError if
15 the condition evaluates to false. The default error message is
16 empty; the source text of the assertion statement is printed as part
17 of the traceback.
18
19 - There is now built-in support for importing hierarchical module
20 names (e.g. "import spam.ham.eggs"); ni is declared obsolete. Note
21 that the built-in package support is somewhat simpler (no __ and
22 __domain__) and differs in one crucial aspect: __init__.py is
23 required, and loaded in the package's namespace instead of as a
24 submodule. For more information, see
25 http://grail.cnri.reston.va.us/python/essays/packages.html.
26
27 - The new "re" module (Perl style regular expressions) is here. It
28 is based on Philip Hazel's pcre code; the Python interfaces were put
Guido van Rossumb7f454d1997-12-02 19:44:31 +000029 together by Andrew Kuchling, Tim Peters and Jeffrey Ollie. The
30 regex module is declared obsolete.
Guido van Rossum66d010a1997-11-26 17:37:31 +000031
32 - In support of the re module, a new form of string literals is
33 introduced, "raw strings": e.g. r"\n" is equal to "\\n".
34
35 - All standard exceptions and most exceptions defined in standard
36 extension modules are now classes. Use python -X to revert back to
37 string exceptions. See
38 http://grail.cnri.reston.va.us/python/essays/stdexceptions.html
39 for more info.
40
41 - Comparisons can now raise exceptions (previously, exceptions
42 occuring during comparisons were swept under the rug).
43
44 - New dictionary methods: .clear(), .copy(), .update(), .get(). The
45 first two are obvious; d1.update(d2) is equivalent to the for loop
46 ``for k in d2.keys(): d1[k] = d2[k]''; and d.get(k) returns d[k] if
47 it exists and None (or the optional second argument) if not.
48
49 - There is a new regression test harness, which tests many more
Guido van Rossum82536711997-11-26 21:20:51 +000050 modules. (To run the tests, do "import test.autotest".)
Guido van Rossum66d010a1997-11-26 17:37:31 +000051
52 - The interpreter is much smarter about the initial value for
53 sys.path; you can control it easier using $PYTHONHOME (see the usage
54 message, e.g. try ``python -h''). In most situations, the
55 interpreter can be installed at an arbitrary location without having
56 to recompile.
57
58 - The build process now builds a single library (libpython1.5.a)
59 which contains everything except for the main() entry point. This
60 makes life much easier for applications that embed Python.
61
62 - There is much better support for embedding, including threads,
63 multiple interpreters(!), uninitialization, and access to the global
64 interpreter lock.
65
66 - There is a -O option that removes SET_LINENO instructions, assert
67 statements and code prefixed with ``if __debug__: ...''. (It still
68 only makes a few percent difference, so don't get all worked up
69 about this.)
70
71 - The Grand Renaming is completed: all linker-visible symbols
72 defined by Python now have a "Py" or "_Py" prefix, and the same is
73 true for most macros and typedefs.
74
75If you were an alpha tester, here are the most relevant changes since
761.5a4 (of course all known bugs have been fixed, leaks plugged, and
77some documentation has been added). The full list of changes since
781.5a4 is presented at the end of the Misc/NEWS file.
79
80 - Package directories now *require* the presence of __init__.py (or
81 .pyc/.pyo as applicable). Packages can now contain shared
82 library modules.
Guido van Rossumb06df271997-08-05 21:50:20 +000083
Guido van Rossum64773801997-11-26 17:07:02 +000084 - New module 'fileinput' to iterate over the lines of a list of files.
Guido van Rossumb06df271997-08-05 21:50:20 +000085
Guido van Rossum64773801997-11-26 17:07:02 +000086 - New module 'locale' for localized number formatting and string case
87 sensitivity.
Guido van Rossumb06df271997-08-05 21:50:20 +000088
Guido van Rossum64773801997-11-26 17:07:02 +000089 - New module 'xmllib' to parse XML files.
Guido van Rossumb06df271997-08-05 21:50:20 +000090
Guido van Rossum64773801997-11-26 17:07:02 +000091 - Some more support for Tk extensions (PIL, TIX, BLT, TOGL).
92
93 - Fixed address list parsing in module 'rfc822'.
94
95 - More deployment (and only one fix) for the 're' module.
96
97 - New Python mode for Emacs.
98
99 - OS/2 support.
100
Guido van Rossum64773801997-11-26 17:07:02 +0000101
102If you don't read instructions
103------------------------------
104
105Congratulations on getting this far. :-)
106
107To start building right away (on UNIX): type "./configure" in the
108current directory and when it finishes, type "make". The section
109Build Instructions below is still recommended reading. :-)
Guido van Rossum3ff96dd1996-07-30 18:05:04 +0000110
111
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000112What is Python anyway?
113----------------------
114
115Python is an interpreted object-oriented programming language, and is
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000116often compared to Tcl, Perl, Java or Scheme. To find out more, point
117your browser to http://www.python.org/.
118
119
120A modest plug
121-------------
122
123************************************************************************
124* Without your support, I won't be able to continue to work on Python! *
125************************************************************************
126
127If you use Python, please consider joining the Python Software
128Activity (PSA). See http://www.python.org/psa/.
129
130Organizations that make heavy use of Python are especially encouraged
131to become corporate members!
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000132
133
Guido van Rossumf501b4e1996-10-25 14:32:48 +0000134How do I learn Python?
135----------------------
136
137The official tutorial is still a good place to start (in the Doc
138directory as tut.tex; and http://www.python.org/doc/tut/tut.html).
139Aaron Watters wrote a second tutorial, that may be more accessible for
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000140some: http://www.wcmh.com/uworld/archives/95/tutorial/005.html. Both
141tutorials (as well as most other sources) assume that you already know
142how to program -- if you'd like to write "Python for Dummies", I know
143a publisher who would like to talk to you...
Guido van Rossumf501b4e1996-10-25 14:32:48 +0000144
Guido van Rossum8d90f9d1997-05-22 20:13:25 +0000145There are now also several books on Python. While these are still
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000146based on Python 1.3 or 1.4, the information in them is still 99%
147correct. The first two books, both first published in October 1996
148and both including a CD-ROM, form excellent companions to each other:
Guido van Rossumf501b4e1996-10-25 14:32:48 +0000149
150 Internet Programming with Python
151 by Aaron Watters, Guido van Rossum, and James Ahlstrom
152 MIS Press/Henry Holt publishers
153 ISBN: 1-55851-484-8
154
155 Programming Python
156 by Mark Lutz
157 O'Reilly & Associates
158 ISBN: 1-56592-197-6
159
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000160If you can read German, try:
Guido van Rossum8d90f9d1997-05-22 20:13:25 +0000161
162 Das Python-Buch
163 by Martin von Loewis and Nils Fischbeck
164 Addison-Wesley-Longman, 1997
165 ISBN: 3-8273-1110-1
166
Guido van Rossumf501b4e1996-10-25 14:32:48 +0000167
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000168Copyright issues
169----------------
170
171Python is COPYRIGHTED but free to use for all. See the full copyright
Guido van Rossum64773801997-11-26 17:07:02 +0000172notice at the end of this file and in the file Misc/COPYRIGHT.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000173
174The Python distribution is *not* affected by the GNU Public Licence
175(GPL). There are interfaces to some GNU code but these are entirely
Guido van Rossum64773801997-11-26 17:07:02 +0000176optional and no GNU code is distributed with Python.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000177
Guido van Rossum627b2d71993-12-24 10:39:16 +0000178
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000179Build instructions
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000180==================
Guido van Rossum627b2d71993-12-24 10:39:16 +0000181
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000182Before you can build Python, you must first configure it.
183Fortunately, the configuration and build process has been streamlined
184for most Unix installations, so all you have to do is type a few
185commands, optionally edit one file, and sit back. There are some
186platforms where things are not quite as smooth; see the platform
187specific notes below. If you want to build for multiple platforms
188sharing the same source tree, see the section on VPATH below.
Guido van Rossum627b2d71993-12-24 10:39:16 +0000189
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000190You start by running the script "./configure", which figures out your
191system configuration and creates several Makefiles. (It takes a
192minute or two -- please be patient!) When it's done, you are ready to
193run make. You may want to pass options to the configure script -- see
194the section below on configuration options and variables.
195
196To build Python, you normally type "make" in the toplevel directory.
197This will recursively run make in each of the subdirectories Parser,
198Objects, Python and Modules, creating a library file in each one. The
199executable of the interpreter is built in the Modules subdirectory and
200moved up here when it is built. If you want or need to, you can also
201chdir into each subdirectory in turn and run make there manually (do
202the Modules subdirectory last!).
203
204Once you have built an interpreter, see the subsections below on
205testing, configuring additional modules, and installation. If you run
206in trouble, see the next section.
Guido van Rossum627b2d71993-12-24 10:39:16 +0000207
Guido van Rossum0a516c91994-09-12 10:58:40 +0000208
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000209Troubleshooting
210---------------
Guido van Rossum627b2d71993-12-24 10:39:16 +0000211
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000212See also the platform specific notes in the next section.
213
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000214If recursive makes fail, try invoking make as "make MAKE=make".
215
Guido van Rossum49523691997-08-15 18:30:14 +0000216If you run into other trouble, see section 3 of the FAQ
217(http://grail.cnri.reston.va.us/cgi-bin/faqw.py or
218http://www.python.org/doc/FAQ.html) for hints on what can go wrong,
219and how to fix it.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000220
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000221If you rerun the configure script with different options, remove all
222object files by running "make clean" before rebuilding. Believe it or
223not, "make clean" sometimes helps to clean up other inexplicable
224problems as well. Try it before sending in a bug report!
225
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000226If the configure script fails or doesn't seem to find things that
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000227should be there, inspect the config.log file. When you fix a
228configure problem, be sure to remove config.cache!
229
230If you get a warning for every file about the -Olimit option being no
231longer supported, you can ignore it. There's no foolproof way to know
232whether this option is needed; all I can do is test whether it is
233accepted without error. On some systems, e.g. older SGI compilers, it
234is essential for performance (specifically when compiling ceval.c,
235which has more basic blocks than the default limit of 1000). If the
236warning bothers you, edit the Makefile to remove "-Olimit 1500" from
237the OPT variable.
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000238
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000239
240Platform specific notes
241-----------------------
242
Guido van Rossum0447a321995-10-08 01:22:33 +0000243(Some of these may no longer apply. If you find you can build Python
244on these platforms without the special directions mentioned here, let
245me know so I can remove them!)
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000246
Guido van Rossumc0be2f51997-10-08 05:05:28 +000024764-bit platforms: The modules audioop, imageop and rgbimg don't work.
248 Don't try to enable them in the Modules/Setup file. They
249 contain code that is quite wordsize sensitive. (If you have a
250 fix, let me know!)
251
Guido van Rossum4462e931997-01-22 21:00:32 +0000252Solaris: When using Sun's C compiler with threads, at least on Solaris
253 2.5.1, you need to add the "-mt" compiler option (the simplest
254 way is probably to specify the compiler with this option as
255 the "CC" environment variable when running the configure
256 script).
257
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000258Linux: On Linux version 1.x, once you've built Python, use it to run
259 the regen script in the Lib/linux1 directory. Apparently
260 the files as distributed don't match the system headers on
261 some Linux versions. (The "h2py" command refers to
262 Tools/scripts/h2py.py.) The modules distributed for Linux 2.x
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000263 should be okay. Shared library support now works by default
Guido van Rossum4462e931997-01-22 21:00:32 +0000264 on ELF-based x86 Linux systems. (Note: when you change the
265 status of a module from static to shared, you must remove its
266 .o file or do a "make clean".)
267
Fred Drake61280911997-12-08 14:10:40 +0000268 Under RedHat Linux 5.0, if upgraded from a previous version,
269 remove the LinuxThreads packages. This is needed because
270 LinuxThreads conflicts with the new thread support provided by
271 glibc. Before running Python's configure script, use the
272 following commands as root (version numbers may differ; these
273 are from a stock 4.2 install):
274
275 % rpm -qa | grep ^linuxthread
276 linuxthreads-0.5-1
277 linuxthreads-devel-0.5-1
278 % rpm -e linuxthreads linuxthreads-devel
279
280 While Python only needs this to be done to allow thread
281 support to be included, the conflicts these packages create
282 with the new glibc may cause other packages which use threads
283 to fail as well, so their removal is a good idea regardless of
284 how you configure python.
285
286 Also under RedHat Linux 5.0, the crypt module now needs the
287 -lcrypt option. Uncomment this flag in Modules/Setup, or
288 comment out the crypt module in the same file.
289
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000290DEC Unix: When enabling threads, use --with-dec-threads, not
Guido van Rossum4462e931997-01-22 21:00:32 +0000291 --with-thread.
Guido van Rossum8eca2c21996-02-14 18:37:46 +0000292
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000293AIX: A complete overhaul of the shared library support is now in
Guido van Rossumcbfcb171997-10-20 22:57:00 +0000294 place. See Misc/AIX-NOTES for some notes on how it's done.
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000295
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000296 WARNING! In some versions of AIX, you get errors about
Guido van Rossuma3b4b611996-07-21 02:48:16 +0000297 Invalid Indent when running the Python test set. This appears
298 to be a bug in the AIX compiler. Rebuild Parser/tokenizer.c
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000299 using OPT="" or OPT=-g, or use gcc. According to the latest
300 reports, it seems this compiler bug is still present in 4.2.1.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000301
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000302Minix: When using ack, use "CC=cc AR=aal RANLIB=: ./configure"!
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000303
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000304SCO: 1) Everything works much better if you add -U__STDC__ to the
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000305 defs. This is because all the SCO header files are broken.
Guido van Rossum64773801997-11-26 17:07:02 +0000306 Anything that isn't mentioned in the C standard is
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000307 conditionally excluded when __STDC__ is defined.
308
309 2) Due to the U.S. export restrictions, SCO broke the crypt
310 stuff out into a separate library, libcrypt_i.a so the LIBS
311 needed be set to:
312
313 LIBS=' -lsocket -lcrypt_i'
314
Guido van Rossuma3b4b611996-07-21 02:48:16 +0000315 3) According to at least one report, the above apply only to
316 SCO 3 -- Python builds out of the box on SCO 5.
317
Guido van Rossum64773801997-11-26 17:07:02 +0000318SunOS 4.x: When using the standard "cc" compiler, certain modules may
319
320 not be compilable because they use non-K&R syntax. You should
321 be able to get a basic Python interpreter by commenting out
322 such modules in the Modules/Setup file, but I really recommend
323 using gcc.
324
325 When using the SunPro C compiler, you may want to use the
326 '-Xa' option instead of '-Xc', to enable some needed non-ANSI
327 Sunisms.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000328
Guido van Rossumcc55c2d1996-10-21 15:14:27 +0000329NeXT: To build fat binaries, use the --with-next-archs switch
330 described below.
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000331
Guido van Rossumb7f454d1997-12-02 19:44:31 +0000332QNX: Chris Herborth (chrish@qnx.com) writes:
333 configure works best if you use GNU bash; a port is available on
334 ftp.qnx.com in /usr/free. I used the following process to build,
335 test and install Python 1.5 under QNX:
336
337 1) SHELL=/usr/local/bin/bash CC=cc CFLAGS=-5 -O RANLIB=: \
338 bash ./configure --verbose --without-gcc --with-libm=""
339
340 2) copy Modules/Setup.in to Modules/Setup; edit Modules/Setup to
341 activate everything that makes sense for your system... tested
342 here at QNX with the following modules:
343
344 regex reop pcre posix signal readline array cmath math strop
345 struct time operator _locale fcntl pwd grp crypt select socket
346 errno termios audioop imageop rgbimg md5 timing rotor syslog
347 new gdbm soundex binascii parser cStringIO cPickle zlib
348
349 3) SHELL=/usr/local/bin/bash make SHELL=/usr/local/bin/bash
350
351 4) SHELL=/usr/local/bin/bash make SHELL=/usr/local/bin/bash test
352
353 The socket, strftime and possibly gdbm tests might fail in the
354 test harness; going through them by hand shows that they work.
355 A good exercise for the reader: make these work "out of the box".
356
357 5) SHELL=/usr/local/bin/bash make SHELL=/usr/local/bin/bash install
358
359 If you get SIGSEGVs while running Python (I haven't yet, but I've
360 only run small programs and the test cases), you're probably running
361 out of stack; the default 32k could be a little tight. To increase
362 the stack size, edit the Makefile in the Modules directory to read:
Guido van Rossum40d63581997-08-14 19:45:30 +0000363 LDFLAGS = -N 48k
364
Guido van Rossum1bf0bf41997-08-20 23:50:51 +0000365Cray T3E: Konrad Hinsen writes:
366 1) Don't use gcc. It compiles Python/graminit.c into something that
367 the Cray assembler doesn't like. Cray's cc seems to work fine.
368 2) Uncomment modules md5 (won't compile) and audioop (will crash
369 the interpreter during the test suite).
370 If you run the test suite, two tests will fail (rotate and binascii),
371 but these are not the modules you'd expect to need on a Cray.
372
Guido van Rossum0078aaf1997-08-21 03:05:11 +0000373SGI: SGI's standard "make" utility (/bin/make or /usr/bin/make)
374 does not check whether a command actually changed the file it
375 is supposed to build. This means that whenever you say "make"
376 it will redo the link step. The remedy is to use SGI's much
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000377 smarter "smake " utility (/usr/sbin/smake), or GNU make. If
378 you set the first line of the Makefile to #!/usr/sbin/smake
379 smake will be invoked by make (likewise for GNU make).
Guido van Rossum0078aaf1997-08-21 03:05:11 +0000380
Guido van Rossum64773801997-11-26 17:07:02 +0000381OS/2: If you are running Warp3 or Warp4 and have IBM's VisualAge C/C++
382 compiler installed, just change into the pc\os2vacpp directory
383 and type NMAKE. Threading and sockets are supported by default
384 in the resulting binaries of PYTHON15.DLL and PYTHON.EXE.
385
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000386
387Configuring additional built-in modules
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000388---------------------------------------
Guido van Rossum19e0c261995-01-17 16:36:34 +0000389
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000390You can configure the interpreter to contain fewer or more built-in
391modules by editing the file Modules/Setup. This file is initially
392copied (when the toplevel Makefile makes Modules/Makefile for the
393first time) from Setup.in; if it does not exist yet, make a copy
394yourself. Never edit Setup.in -- always edit Setup. Read the
395comments in the file for information on what kind of edits you can
396make. When you have edited Setup, Makefile and config.c in Modules
397will automatically be rebuilt the next time you run make in the
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000398toplevel directory. (When working inside the Modules directory, use
399"make Makefile; make".)
Guido van Rossum627b2d71993-12-24 10:39:16 +0000400
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000401The default collection of modules should build on any Unix system, but
402many optional modules should work on all modern Unices (e.g. try dbm,
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000403nis, termios, timing, syslog, curses, new, soundex, parser). Often
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000404the quickest way to determine whether a particular module works or not
405is to see if it will build: enable it in Setup, then if you get
406compilation or link errors, disable it -- you're missing support.
407
408On SGI IRIX, there are modules that interface to many SGI specific
409system libraries, e.g. the GL library and the audio hardware.
410
411For SunOS and Solaris, enable module "sunaudiodev" to support the
412audio device.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000413
Guido van Rossum4462e931997-01-22 21:00:32 +0000414In addition to the file Setup, you can also edit the file Setup.local.
415(the makesetup script processes both). You may find it more
416convenient to edit Setup.local and leave Setup alone. Then, when
417installing a new Python version, you can copy your old Setup.local
418file.
419
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000420
421Setting the optimization/debugging options
422------------------------------------------
423
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000424If you want or need to change the optimization/debugging options for
425the C compiler, assign to the OPT variable on the toplevel make
426command; e.g. "make OPT=-g" will build a debugging version of Python
427on most platforms. The default is OPT=-O; a value for OPT in the
428environment when the configure script is run overrides this default
429(likewise for CC; and the initial value for LIBS is used as the base
430set of libraries to link with).
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000431
432
433Testing
434-------
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000435
436To test the interpreter that you have just built, type "make test".
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000437This runs the test set twice (once with no compiled files, once with
438the compiled files left by the previous test run). The test set
439produces some output. You can generally ignore the messages about
440skipped tests due to an optional feature that can't be imported (if
441you want to test those modules, edit Modules/Setup to configure them).
442If a messages is printed about a failed test or a traceback or core
443dump is produced, something's wrong. On some systems, test_strftime
444fails due to a non-standard implementation of strftime() in the C
445library. This can be ignored (or you can complain to your vendor).
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000446
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000447IMPORTANT: If the tests fail and you decide to mail a bug report,
448*don't* include the output of "make test". It is useless. Run the
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000449test that fails manually, as follows:
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000450
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000451 python ../Lib/test/test_whatever.py
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000452
453(substituting the top of the source tree for .. if you built in a
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000454different directory). This runs the test in verbose mode.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000455
456
457Installing
458----------
459
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000460To install the Python binary, library modules, shared library modules
461(see below), include files, configuration files, and the manual page,
Guido van Rossum64773801997-11-26 17:07:02 +0000462just type
463
464 make install
465
466This will install all platform-independent files in subdirectories the
467directory given with the --prefix option to configure or the 'prefix'
468Make variable (default /usr/local), and all binary and other
469platform-specific files in subdirectories if the directory given by
470--exec-prefix or the 'exec_prefix' Make variable (defaults to the
471--prefix directory).
472
473All subdirectories created will have Python's version number in their
474name, e.g. the library modules are installed in
475"/usr/local/lib/python1.5/" by default. The Python binary is
476installed as "python1.5" and a hard link named "python" is created.
477The only file not installed with a version number in its name is the
478manual page, installed as "/usr/local/man/man1/python.1" by default.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000479
Guido van Rossum49523691997-08-15 18:30:14 +0000480If you have a previous installation of a pre-1.5 Python that you don't
Guido van Rossum64773801997-11-26 17:07:02 +0000481want to replace yet, use
482
483 make altinstall
484
485This installs the same set of files as "make install" except it
486doesn't create the hard link to "python1.5" named "python" and it
487doesn't install the manual page at all.
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000488
489The only thing you may have to install manually is the Python mode for
490Emacs. (But then again, more recent versions of Emacs may already
491have it!) This is the file Misc/python-mode.el; follow the
492instructions that came with Emacs for installation of site specific
493files.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000494
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000495
496Configuration options and variables
497-----------------------------------
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000498
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000499Some special cases are handled by passing options to the configure
500script.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000501
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000502WARNING: if you rerun the configure script with different options, you
503must run "make clean" before rebuilding. Exceptions to this rule:
504after changing --prefix or --exec-prefix, all you need to do is remove
Guido van Rossumb06df271997-08-05 21:50:20 +0000505Modules/getpath.o.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000506
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000507--with(out)-gcc: The configure script uses gcc (the GNU C compiler) if
508 it finds it. If you don't want this, or if this compiler is
509 installed but broken on your platform, pass the option
510 --without-gcc. You can also pass "CC=cc" (or whatever the
511 name of the proper C compiler is) in the environment, but the
512 advantage of using --without-gcc is that this option is
513 remembered by the config.status script for its --recheck
514 option.
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000515
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000516--prefix, --exec-prefix: If you want to install the binaries and the
517 Python library somewhere else than in /usr/local/{bin,lib},
518 you can pass the option --prefix=DIRECTORY; the interpreter
519 binary will be installed as DIRECTORY/bin/python and the
520 library files as DIRECTORY/lib/python/*. If you pass
521 --exec-prefix=DIRECTORY (as well) this overrides the
522 installation prefix for architecture-dependent files (like the
523 interpreter binary). Note that --prefix=DIRECTORY also
524 affects the default module search path (sys.path), when
525 Modules/config.c is compiled. Passing make the option
526 prefix=DIRECTORY (and/or exec_prefix=DIRECTORY) overrides the
527 prefix set at configuration time; this may be more convenient
528 than re-running the configure script if you change your mind
529 about the install prefix...
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000530
Guido van Rossumb06df271997-08-05 21:50:20 +0000531--with-readline: This option is no longer supported. To use GNU
532 readline, enable module "readline" in the Modules/Setup file.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000533
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000534--with-thread: On most Unix systems, you can now use multiple threads.
Guido van Rossum4462e931997-01-22 21:00:32 +0000535 To enable this, pass --with-thread. (--with-threads is an
536 alias.) If the library required for threads lives in a
Guido van Rossum8d90f9d1997-05-22 20:13:25 +0000537 peculiar place, you can use --with-thread=DIRECTORY. NOTE:
538 you must also enable the thread module by uncommenting it in
539 the Modules/Setup file. (Threads aren't enabled automatically
540 because there are run-time penalties when support for them is
541 compiled in even if you don't use them.) IMPORTANT: run "make
542 clean" after changing (either enabling or disabling) this
543 option! Note: for DEC Unix use --with-dec-threads instead.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000544
545--with-sgi-dl: On SGI IRIX 4, dynamic loading of extension modules is
546 supported by the "dl" library by Jack Jansen, which is
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000547 ftp'able from ftp://ftp.cwi.nl/pub/dynload/dl-1.6.tar.Z.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000548 This is enabled (after you've ftp'ed and compiled the dl
549 library!) by passing --with-sgi-dl=DIRECTORY where DIRECTORY
550 is the absolute pathname of the dl library. (Don't bother on
551 IRIX 5, it already has dynamic linking using SunOS style
552 shared libraries.) Support for this feature is deprecated.
553
554--with-dl-dld: Dynamic loading of modules is rumoured to be supported
555 on some other systems: VAX (Ultrix), Sun3 (SunOS 3.4), Sequent
556 Symmetry (Dynix), and Atari ST. This is done using a
557 combination of the GNU dynamic loading package
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000558 (ftp://ftp.cwi.nl/pub/dynload/dl-dld-1.1.tar.Z) and an
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000559 emulation of the SGI dl library mentioned above (the emulation
560 can be found at
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000561 ftp://ftp.cwi.nl/pub/dynload/dld-3.2.3.tar.Z). To
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000562 enable this, ftp and compile both libraries, then call the
563 configure passing it the option
564 --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY where DL_DIRECTORY is
565 the absolute pathname of the dl emulation library and
566 DLD_DIRECTORY is the absolute pathname of the GNU dld library.
567 (Don't bother on SunOS 4 or 5, they already have dynamic
568 linking using shared libraries.) Support for this feature is
569 deprecated.
570
571--with-libm, --with-libc: It is possible to specify alternative
572 versions for the Math library (default -lm) and the C library
573 (default the empty string) using the options
574 --with-libm=STRING and --with-libc=STRING, respectively. E.g.
575 if your system requires that you pass -lc_s to the C compiler
576 to use the shared C library, you can pass --with-libc=-lc_s.
577 These libraries are passed after all other libraries, the C
578 library last.
Guido van Rossum3ff96dd1996-07-30 18:05:04 +0000579
580--with-next-archs='arch1 arch2': Under NEXTSTEP, this will build
581 all compiled binaries with the architectures listed. Includes
582 correctly setting the target architecture specific resource
Guido van Rossumcc55c2d1996-10-21 15:14:27 +0000583 directory. (This option is not supported on other platforms.)
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000584
Guido van Rossumd02ba451996-07-31 17:36:01 +0000585--with-libs='libs': Add 'libs' to the LIBS that the python
586 linked against.
587
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000588
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000589Building for multiple architectures (using the VPATH feature)
590-------------------------------------------------------------
591
592If your file system is shared between multiple architectures, it
593usually is not necessary to make copies of the sources for each
594architecture you want to support. If the make program supports the
595VPATH feature, you can create an empty build directory for each
596architecture, and in each directory run the configure script (on the
597appropriate machine with the appropriate options). This creates the
598necessary subdirectories and the Makefiles therein. The Makefiles
599contain a line VPATH=... which points to directory containing the
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000600actual sources. (On SGI systems, use "smake -J1" instead of "make" if
601you use VPATH -- don't try gnumake.)
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000602
603For example, the following is all you need to build a minimal Python
604in /usr/tmp/python (assuming ~guido/src/python is the toplevel
605directory and you want to build in /usr/tmp/python):
606
607 $ mkdir /usr/tmp/python
608 $ cd /usr/tmp/python
609 $ ~guido/src/python/configure
610 [...]
611 $ make
612 [...]
613 $
614
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000615Note that Modules/Makefile copies the original Setup file to the build
616directory if it finds no Setup file there. This means that you can
617edit the Setup file for each architecture independently. For this
618reason, subsequent changes to the original Setup file are not tracked
619automatically, as they might overwrite local changes. To force a copy
620of a changed original Setup file, delete the target Setup file. (The
621makesetup script supports multiple input files, so if you want to be
622fancy you can change the rules to create an empty Setup.local if it
623doesn't exist and run it with arguments $(srcdir)/Setup Setup.local;
624however this assumes that you only need to add modules.)
625
626
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000627Building on non-UNIX systems
628----------------------------
629
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000630Building Python for a PC is now a piece of cake!
Guido van Rossum8d7d4ed1996-07-30 21:41:07 +0000631
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000632Enter the directory "PC" and read the file "readme.txt". Most popular
633non-Unix PC platforms and compilers are supported (Unix ports to the
634PC such as Linux, FreeBSD or Solaris-x86 of course use the standard
635Unix build instructions).
636
637For the Mac, a separate source distribution will be made available,
638for use with the CodeWarrior compiler. If you are interested in Mac
639development, join the PythonMac Special Interest Group
640(http://www.python.org/sigs/pythonmac-sig/, or send email to
641pythonmac-sig-request@python.org).
642
643Of course, there are also binary distributions available for these
644platforms -- see http://www.python.org/python/.
645
646To port Python to a new non-UNIX system, you will have to fake the
647effect of running the configure script manually (for Mac and PC, this
648has already been done for you). A good start is to copy the file
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000649config.h.in to config.h and edit the latter to reflect the actual
650configuration of your system. Most symbols must simply be defined as
6511 only if the corresponding feature is present and can be left alone
652otherwise; however RETSIGTYPE must always be defined, either as int or
653as void, and the *_t type symbols must be defined as some variant of
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000654int if they need to be defined at all.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000655
656
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000657
658Miscellaneous issues
659====================
660
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000661Documentation
662-------------
663
664All documentation is provided in the subdirectory Doc in the form of
665LaTeX files. In order of importance for new users: Tutorial (tut),
666Library Reference (lib), Language Reference (ref), Extending (ext).
667Especially the Library Reference is of immense value since much of
668Python's power (including the built-in data types and functions!) is
669described here.
670
Guido van Rossumdfcf35d1996-08-26 17:52:09 +0000671To print the documentation from the LaTeX files, chdir into the Doc
672subdirectory, type "make" (let's hope you have LaTeX installed!), and
673send the four resulting PostScript files (tut.ps, lib.ps, ref.ps, and
674ext.ps) to the printer. See the README file there. If you don't have
675LaTeX, you can ftp the PostScript files from the ftp archives (see
676below).
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000677
Guido van Rossumdfcf35d1996-08-26 17:52:09 +0000678All documentation is also available on-line via the Python web site
679(http://www.python.org/, see below). It can also be downloaded
680separately from the ftp archives (see below) in Emacs INFO, HTML or
Guido van Rossum49523691997-08-15 18:30:14 +0000681PostScript form -- see the web site or the FAQ
682(http://grail.cnri.reston.va.us/cgi-bin/faqw.py or
683http://www.python.org/doc/FAQ.html) for more info.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000684
685
686Emacs mode
687----------
688
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000689There's an excellent Emacs editing mode for Python code; see the file
690Misc/python-mode.el. Originally written by the famous Tim Peters, it
691is now maintained by the equally famous Barry Warsaw
692<bwarsaw@cnri.reston.va.us>. The latest version is online at
693ftp://ftp.python.org/pub/emacs/python-mode.el. As you might expect of
694Barry (and even if you don't know what the heck I'm talking about :-),
695a configuration file for his cc-mode.el which selects the style used
696throughout most Python C source files is also provided; see the file
697Misc/ccpy-style.el.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000698
699
Guido van Rossum8d7d4ed1996-07-30 21:41:07 +0000700Web site
701--------
702
703Python's own web site has URL http://www.python.org/. Come visit us!
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000704There are a number of mirrors, listed on the home page -- try a mirror
705that's close you you.
Guido van Rossum8d7d4ed1996-07-30 21:41:07 +0000706
707
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000708Ftp site
709--------
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000710
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000711Python's own ftp site is ftp://ftp.python.org/pub/python/. There are
Guido van Rossum49523691997-08-15 18:30:14 +0000712numerous mirrors; see http://www.python.org/python/Mirrors.html for a
713list of mirror sites.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000714
715
716Newsgroup and mailing list
717--------------------------
718
Guido van Rossumdfcf35d1996-08-26 17:52:09 +0000719There are a newsgroup and a mailing list devoted to Python. The
720newsgroup, comp.lang.python, contains exactly the same messages as the
721mailing list (though not always in the same order, due to the
722mysterious nature of the Usenet news distribution algorithm). To
723subscribe to the mailing list, send mail containing your real name and
724e-mail address to "python-list-request@cwi.nl". Use the same address
725if you want to unsibscribed. (A real person reads these messages, so
726no LISTPROC or Majordomo commands, please, and please be patient --
727normal turn-around time is about one working day.)
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000728
Guido van Rossumdfcf35d1996-08-26 17:52:09 +0000729The Python web site contains a search form that lets you search the
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000730newsgroup archives (and the web site itself). Click on the "search"
Guido van Rossumdfcf35d1996-08-26 17:52:09 +0000731link in the banner menu on any page of http://www.python.org/.
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000732
733
734Bug reports
735-----------
736
Guido van Rossumdfcf35d1996-08-26 17:52:09 +0000737Bugs are best reported to the comp.lang.python newsgroup or the Python
Guido van Rossumcc55c2d1996-10-21 15:14:27 +0000738mailing list -- see the section "Newsgroup and mailing list" above.
Guido van Rossumdfcf35d1996-08-26 17:52:09 +0000739Before posting, check the newsgroup archives (see above) to see if
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000740your bug has already been reported! If you don't want to go public,
Guido van Rossum64773801997-11-26 17:07:02 +0000741send them to me: <guido@python.org>.
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000742
743
744Questions
745---------
746
Guido van Rossum49523691997-08-15 18:30:14 +0000747For help, if you can't find it in the manuals or on the web site, it's
748best to post to the comp.lang.python or the Python mailing list (see
749above). If you specifically don't want to involve the newsgroup or
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000750mailing list, send questions to <python-help@python.org> (a group of
751volunteers which does *not* include me). Because of my work and email
752volume, I'm often be slow in answering questions sent to me directly;
753I prefer to answer questions posted to the newsgroup.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000754
755
756The Tk interface
757----------------
758
759Tk (the user interface component of John Ousterhout's Tcl language) is
760also usable from Python. Since this requires that you first build and
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000761install Tcl/Tk, the Tk interface is not enabled by default. Python
762supports all Tcl/Tk versions from version 7.5/4.1 through 8.0 (and it
763is expected that it will also work with newer versions). Tcl/Tk
Guido van Rossum64773801997-11-26 17:07:02 +00007647.4/4.0 is no longer supported. 8.0 or any later non-alpha non-beta
765release is recommended.
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000766
Guido van Rossum64773801997-11-26 17:07:02 +0000767See http://sunscript.sun.com/ for more info on Tcl/Tk, including the
768on-line manual pages.
769
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000770
771To enable the Python/Tk interface, once you've built and installed
Guido van Rossum64773801997-11-26 17:07:02 +0000772Tcl/Tk, load the file Modules/Setup in your favorite text editor and
773search for the string "_tkinter". Then follow the instructions found
774there. If you have installed Tcl/Tk or X11 in unusual places, you
775will have to edit the first line to fix or add -I and -L options.
776(Also see the general instructions at the top of that file.)
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000777
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000778There is little documentation on how to use Tkinter; however most of
779the Tk manual pages apply quite straightforwardly. Begin with
780fetching the "Tk Lifesaver" document,
781e.g. ftp://ftp.python.org/pub/python/doc/tkinter-doc.tar.gz (a gzipped
782tar file containing a PostScript file) or the on-line version
783http://www.python.org/doc/life-preserver/index.html. Reading the
784Tkinter.py source will reveal most details on how Tkinter calls are
785translated into Tcl code.
786
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000787A more recent introduction to Tkinter programming, by Fredrik Lundh,
788is at http://www.pythonware.com/library/tkinter/introduction/index.htm.
789
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000790There are demos in the Demo/tkinter directory, in the subdirectories
791guido, matt and www (the matt and guido subdirectories have been
792overhauled to use more recent Tkinter coding conventions).
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000793
794Note that there's a Python module called "Tkinter" (capital T) which
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000795lives in Lib/tkinter/Tkinter.py, and a C module called "_tkinter"
796(lower case t and leading underscore) which lives in
797Modules/_tkinter.c. Demos and normal Tk applications only import the
798Python Tkinter module -- only the latter uses the C _tkinter module
799directly. In order to find the C _tkinter module, it must be compiled
800and linked into the Python interpreter -- the _tkinter line in the
801Setup file does this. In order to find the Python Tkinter module,
802sys.path must be set correctly -- the TKPATH assignment in the Setup
803file takes care of this, but only if you install Python properly
804("make install libinstall"). (You can also use dynamic loading for
805the C _tkinter module, in which case you must manually fix up sys.path
806or set $PYTHONPATH for the Python Tkinter module.)
Guido van Rossum84c8c7f1995-08-28 02:44:24 +0000807
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000808
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000809Distribution structure
810----------------------
811
812Most subdirectories have their own README file. Most files have
813comments.
814
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000815Demo/ Demonstration scripts, modules and programs
816Doc/ Documentation (LaTeX sources)
817Grammar/ Input for the parser generator
818Include/ Public header files
819Lib/ Python library modules
820Makefile.in Source from which config.status creates Makefile
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000821Misc/ Miscellaneous useful files
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000822Modules/ Implementation of most built-in modules
823Objects/ Implementation of most built-in object types
Guido van Rossum64773801997-11-26 17:07:02 +0000824PC/ PC porting files (DOS, Windows, OS/2)
825PCbuild/ Directory where you should build for Windows NT/95
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000826Parser/ The parser and tokenizer and their input handling
827Python/ The "compiler" and interpreter
828README The file you're reading now
829Tools/ Some useful programs written in Python
830acconfig.h Additional input for the autoheader program
831config.h.in Source from which config.status creates config.h
832configure Configuration shell script (GNU autoconf output)
833configure.in Configuration specification (GNU autoconf input)
834install-sh Shell script used to install files
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000835
836The following files will (may) be created in the toplevel directory by
837the configuration and build processes:
838
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000839Makefile Build rules
840config.cache cache of configuration variables
841config.h Configuration header
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000842config.log Log from last configure run
843config.status Status from last run of configure script
844libpython1.5.a The library archive
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000845python The executable interpreter
846tags, TAGS Tags files for vi and Emacs
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000847
848
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000849Author's address
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000850================
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000851
852Guido van Rossum
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000853CNRI
8541895 Preston White Drive
Guido van Rossum8d7d4ed1996-07-30 21:41:07 +0000855Reston, VA 20191
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000856USA
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000857
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000858E-mail: guido@cnri.reston.va.us or guido@python.org
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000859
860
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000861
862Copyright notice
863================
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000864
865The Python source is copyrighted, but you can freely use and copy it
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000866as long as you don't change or remove the copyright notice:
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000867
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000868----------------------------------------------------------------------
Guido van Rossumaf5b83e1995-01-04 19:02:35 +0000869Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
870The Netherlands.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000871
872 All Rights Reserved
873
Guido van Rossumc561e5d1994-08-23 13:52:46 +0000874Permission to use, copy, modify, and distribute this software and its
875documentation for any purpose and without fee is hereby granted,
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000876provided that the above copyright notice appear in all copies and that
Guido van Rossumc561e5d1994-08-23 13:52:46 +0000877both that copyright notice and this permission notice appear in
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000878supporting documentation, and that the names of Stichting Mathematisch
Guido van Rossumf501b4e1996-10-25 14:32:48 +0000879Centrum or CWI or Corporation for National Research Initiatives or
880CNRI not be used in advertising or publicity pertaining to
881distribution of the software without specific, written prior
882permission.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000883
Guido van Rossumf501b4e1996-10-25 14:32:48 +0000884While CWI is the initial source for this software, a modified version
885is made available by the Corporation for National Research Initiatives
886(CNRI) at the Internet address ftp://ftp.python.org.
887
888STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
889REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
890MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
891CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
892DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
893PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
894TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
895PERFORMANCE OF THIS SOFTWARE.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000896----------------------------------------------------------------------
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000897
898
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000899--Guido van Rossum (home page: http://www.python.org/~guido/)