stmt and setup can contain multiple statements, see #5896
[python.git] / Doc / license.rst
blob278bb2d84338d2f0e60a7b505534c02b4378987b
1 .. highlightlang:: none
3 .. _history-and-license:
5 *******************
6 History and License
7 *******************
10 History of the software
11 =======================
13 Python was created in the early 1990s by Guido van Rossum at Stichting
14 Mathematisch Centrum (CWI, see http://www.cwi.nl/) in the Netherlands as a
15 successor of a language called ABC.  Guido remains Python's principal author,
16 although it includes many contributions from others.
18 In 1995, Guido continued his work on Python at the Corporation for National
19 Research Initiatives (CNRI, see http://www.cnri.reston.va.us/) in Reston,
20 Virginia where he released several versions of the software.
22 In May 2000, Guido and the Python core development team moved to BeOpen.com to
23 form the BeOpen PythonLabs team.  In October of the same year, the PythonLabs
24 team moved to Digital Creations (now Zope Corporation; see
25 http://www.zope.com/).  In 2001, the Python Software Foundation (PSF, see
26 http://www.python.org/psf/) was formed, a non-profit organization created
27 specifically to own Python-related Intellectual Property.  Zope Corporation is a
28 sponsoring member of the PSF.
30 All Python releases are Open Source (see http://www.opensource.org/ for the Open
31 Source Definition). Historically, most, but not all, Python releases have also
32 been GPL-compatible; the table below summarizes the various releases.
34 +----------------+--------------+-----------+------------+-----------------+
35 | Release        | Derived from | Year      | Owner      | GPL compatible? |
36 +================+==============+===========+============+=================+
37 | 0.9.0 thru 1.2 | n/a          | 1991-1995 | CWI        | yes             |
38 +----------------+--------------+-----------+------------+-----------------+
39 | 1.3 thru 1.5.2 | 1.2          | 1995-1999 | CNRI       | yes             |
40 +----------------+--------------+-----------+------------+-----------------+
41 | 1.6            | 1.5.2        | 2000      | CNRI       | no              |
42 +----------------+--------------+-----------+------------+-----------------+
43 | 2.0            | 1.6          | 2000      | BeOpen.com | no              |
44 +----------------+--------------+-----------+------------+-----------------+
45 | 1.6.1          | 1.6          | 2001      | CNRI       | no              |
46 +----------------+--------------+-----------+------------+-----------------+
47 | 2.1            | 2.0+1.6.1    | 2001      | PSF        | no              |
48 +----------------+--------------+-----------+------------+-----------------+
49 | 2.0.1          | 2.0+1.6.1    | 2001      | PSF        | yes             |
50 +----------------+--------------+-----------+------------+-----------------+
51 | 2.1.1          | 2.1+2.0.1    | 2001      | PSF        | yes             |
52 +----------------+--------------+-----------+------------+-----------------+
53 | 2.2            | 2.1.1        | 2001      | PSF        | yes             |
54 +----------------+--------------+-----------+------------+-----------------+
55 | 2.1.2          | 2.1.1        | 2002      | PSF        | yes             |
56 +----------------+--------------+-----------+------------+-----------------+
57 | 2.1.3          | 2.1.2        | 2002      | PSF        | yes             |
58 +----------------+--------------+-----------+------------+-----------------+
59 | 2.2.1          | 2.2          | 2002      | PSF        | yes             |
60 +----------------+--------------+-----------+------------+-----------------+
61 | 2.2.2          | 2.2.1        | 2002      | PSF        | yes             |
62 +----------------+--------------+-----------+------------+-----------------+
63 | 2.2.3          | 2.2.2        | 2002-2003 | PSF        | yes             |
64 +----------------+--------------+-----------+------------+-----------------+
65 | 2.3            | 2.2.2        | 2002-2003 | PSF        | yes             |
66 +----------------+--------------+-----------+------------+-----------------+
67 | 2.3.1          | 2.3          | 2002-2003 | PSF        | yes             |
68 +----------------+--------------+-----------+------------+-----------------+
69 | 2.3.2          | 2.3.1        | 2003      | PSF        | yes             |
70 +----------------+--------------+-----------+------------+-----------------+
71 | 2.3.3          | 2.3.2        | 2003      | PSF        | yes             |
72 +----------------+--------------+-----------+------------+-----------------+
73 | 2.3.4          | 2.3.3        | 2004      | PSF        | yes             |
74 +----------------+--------------+-----------+------------+-----------------+
75 | 2.3.5          | 2.3.4        | 2005      | PSF        | yes             |
76 +----------------+--------------+-----------+------------+-----------------+
77 | 2.4            | 2.3          | 2004      | PSF        | yes             |
78 +----------------+--------------+-----------+------------+-----------------+
79 | 2.4.1          | 2.4          | 2005      | PSF        | yes             |
80 +----------------+--------------+-----------+------------+-----------------+
81 | 2.4.2          | 2.4.1        | 2005      | PSF        | yes             |
82 +----------------+--------------+-----------+------------+-----------------+
83 | 2.4.3          | 2.4.2        | 2006      | PSF        | yes             |
84 +----------------+--------------+-----------+------------+-----------------+
85 | 2.4.4          | 2.4.3        | 2006      | PSF        | yes             |
86 +----------------+--------------+-----------+------------+-----------------+
87 | 2.5            | 2.4          | 2006      | PSF        | yes             |
88 +----------------+--------------+-----------+------------+-----------------+
89 | 2.5.1          | 2.5          | 2007      | PSF        | yes             |
90 +----------------+--------------+-----------+------------+-----------------+
91 | 2.5.2          | 2.5.1        | 2008      | PSF        | yes             |
92 +----------------+--------------+-----------+------------+-----------------+
93 | 2.5.3          | 2.5.2        | 2008      | PSF        | yes             |
94 +----------------+--------------+-----------+------------+-----------------+
95 | 2.6            | 2.5          | 2008      | PSF        | yes             |
96 +----------------+--------------+-----------+------------+-----------------+
97 | 2.6.1          | 2.6          | 2008      | PSF        | yes             |
98 +----------------+--------------+-----------+------------+-----------------+
100 .. note::
102    GPL-compatible doesn't mean that we're distributing Python under the GPL.  All
103    Python licenses, unlike the GPL, let you distribute a modified version without
104    making your changes open source. The GPL-compatible licenses make it possible to
105    combine Python with other software that is released under the GPL; the others
106    don't.
108 Thanks to the many outside volunteers who have worked under Guido's direction to
109 make these releases possible.
112 Terms and conditions for accessing or otherwise using Python
113 ============================================================
116 .. centered:: PSF LICENSE AGREEMENT FOR PYTHON |release|
118 #. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and
119    the Individual or Organization ("Licensee") accessing and otherwise using Python
120    |release| software in source or binary form and its associated documentation.
122 #. Subject to the terms and conditions of this License Agreement, PSF hereby
123    grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
124    analyze, test, perform and/or display publicly, prepare derivative works,
125    distribute, and otherwise use Python |release| alone or in any derivative
126    version, provided, however, that PSF's License Agreement and PSF's notice of
127    copyright, i.e., "Copyright © 2001-2009 Python Software Foundation; All Rights
128    Reserved" are retained in Python |release| alone or in any derivative version
129    prepared by Licensee.
131 #. In the event Licensee prepares a derivative work that is based on or
132    incorporates Python |release| or any part thereof, and wants to make the
133    derivative work available to others as provided herein, then Licensee hereby
134    agrees to include in any such work a brief summary of the changes made to Python
135    |release|.
137 #. PSF is making Python |release| available to Licensee on an "AS IS" basis.
138    PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED.  BY WAY OF
139    EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR
140    WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE
141    USE OF PYTHON |release| WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
143 #. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON |release|
144    FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF
145    MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON |release|, OR ANY DERIVATIVE
146    THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
148 #. This License Agreement will automatically terminate upon a material breach of
149    its terms and conditions.
151 #. Nothing in this License Agreement shall be deemed to create any relationship
152    of agency, partnership, or joint venture between PSF and Licensee.  This License
153    Agreement does not grant permission to use PSF trademarks or trade name in a
154    trademark sense to endorse or promote products or services of Licensee, or any
155    third party.
157 #. By copying, installing or otherwise using Python |release|, Licensee agrees
158    to be bound by the terms and conditions of this License Agreement.
161 .. centered:: BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0
164 .. centered:: BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1
166 #. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an office at
167    160 Saratoga Avenue, Santa Clara, CA 95051, and the Individual or Organization
168    ("Licensee") accessing and otherwise using this software in source or binary
169    form and its associated documentation ("the Software").
171 #. Subject to the terms and conditions of this BeOpen Python License Agreement,
172    BeOpen hereby grants Licensee a non-exclusive, royalty-free, world-wide license
173    to reproduce, analyze, test, perform and/or display publicly, prepare derivative
174    works, distribute, and otherwise use the Software alone or in any derivative
175    version, provided, however, that the BeOpen Python License is retained in the
176    Software, alone or in any derivative version prepared by Licensee.
178 #. BeOpen is making the Software available to Licensee on an "AS IS" basis.
179    BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED.  BY WAY OF
180    EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND DISCLAIMS ANY REPRESENTATION OR
181    WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE
182    USE OF THE SOFTWARE WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
184 #. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE SOFTWARE FOR
185    ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF USING,
186    MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY DERIVATIVE THEREOF, EVEN IF
187    ADVISED OF THE POSSIBILITY THEREOF.
189 #. This License Agreement will automatically terminate upon a material breach of
190    its terms and conditions.
192 #. This License Agreement shall be governed by and interpreted in all respects
193    by the law of the State of California, excluding conflict of law provisions.
194    Nothing in this License Agreement shall be deemed to create any relationship of
195    agency, partnership, or joint venture between BeOpen and Licensee.  This License
196    Agreement does not grant permission to use BeOpen trademarks or trade names in a
197    trademark sense to endorse or promote products or services of Licensee, or any
198    third party.  As an exception, the "BeOpen Python" logos available at
199    http://www.pythonlabs.com/logos.html may be used according to the permissions
200    granted on that web page.
202 #. By copying, installing or otherwise using the software, Licensee agrees to be
203    bound by the terms and conditions of this License Agreement.
206 .. centered:: CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1
208 #. This LICENSE AGREEMENT is between the Corporation for National Research
209    Initiatives, having an office at 1895 Preston White Drive, Reston, VA 20191
210    ("CNRI"), and the Individual or Organization ("Licensee") accessing and
211    otherwise using Python 1.6.1 software in source or binary form and its
212    associated documentation.
214 #. Subject to the terms and conditions of this License Agreement, CNRI hereby
215    grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
216    analyze, test, perform and/or display publicly, prepare derivative works,
217    distribute, and otherwise use Python 1.6.1 alone or in any derivative version,
218    provided, however, that CNRI's License Agreement and CNRI's notice of copyright,
219    i.e., "Copyright © 1995-2001 Corporation for National Research Initiatives; All
220    Rights Reserved" are retained in Python 1.6.1 alone or in any derivative version
221    prepared by Licensee.  Alternately, in lieu of CNRI's License Agreement,
222    Licensee may substitute the following text (omitting the quotes): "Python 1.6.1
223    is made available subject to the terms and conditions in CNRI's License
224    Agreement.  This Agreement together with Python 1.6.1 may be located on the
225    Internet using the following unique, persistent identifier (known as a handle):
226    1895.22/1013.  This Agreement may also be obtained from a proxy server on the
227    Internet using the following URL: http://hdl.handle.net/1895.22/1013."
229 #. In the event Licensee prepares a derivative work that is based on or
230    incorporates Python 1.6.1 or any part thereof, and wants to make the derivative
231    work available to others as provided herein, then Licensee hereby agrees to
232    include in any such work a brief summary of the changes made to Python 1.6.1.
234 #. CNRI is making Python 1.6.1 available to Licensee on an "AS IS" basis.  CNRI
235    MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED.  BY WAY OF EXAMPLE,
236    BUT NOT LIMITATION, CNRI MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY
237    OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF
238    PYTHON 1.6.1 WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
240 #. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON 1.6.1 FOR
241    ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF
242    MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1, OR ANY DERIVATIVE
243    THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
245 #. This License Agreement will automatically terminate upon a material breach of
246    its terms and conditions.
248 #. This License Agreement shall be governed by the federal intellectual property
249    law of the United States, including without limitation the federal copyright
250    law, and, to the extent such U.S. federal law does not apply, by the law of the
251    Commonwealth of Virginia, excluding Virginia's conflict of law provisions.
252    Notwithstanding the foregoing, with regard to derivative works based on Python
253    1.6.1 that incorporate non-separable material that was previously distributed
254    under the GNU General Public License (GPL), the law of the Commonwealth of
255    Virginia shall govern this License Agreement only as to issues arising under or
256    with respect to Paragraphs 4, 5, and 7 of this License Agreement.  Nothing in
257    this License Agreement shall be deemed to create any relationship of agency,
258    partnership, or joint venture between CNRI and Licensee.  This License Agreement
259    does not grant permission to use CNRI trademarks or trade name in a trademark
260    sense to endorse or promote products or services of Licensee, or any third
261    party.
263 #. By clicking on the "ACCEPT" button where indicated, or by copying, installing
264    or otherwise using Python 1.6.1, Licensee agrees to be bound by the terms and
265    conditions of this License Agreement.
268 .. centered:: ACCEPT
271 .. centered:: CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2
273 Copyright © 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, The
274 Netherlands.  All rights reserved.
276 Permission to use, copy, modify, and distribute this software and its
277 documentation for any purpose and without fee is hereby granted, provided that
278 the above copyright notice appear in all copies and that both that copyright
279 notice and this permission notice appear in supporting documentation, and that
280 the name of Stichting Mathematisch Centrum or CWI not be used in advertising or
281 publicity pertaining to distribution of the software without specific, written
282 prior permission.
284 STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
285 SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
286 EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE FOR ANY SPECIAL, INDIRECT
287 OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
288 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
289 ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
290 SOFTWARE.
293 Licenses and Acknowledgements for Incorporated Software
294 =======================================================
296 This section is an incomplete, but growing list of licenses and acknowledgements
297 for third-party software incorporated in the Python distribution.
300 Mersenne Twister
301 ----------------
303 The :mod:`_random` module includes code based on a download from
304 http://www.math.keio.ac.jp/ matumoto/MT2002/emt19937ar.html. The following are
305 the verbatim comments from the original code::
307    A C-program for MT19937, with initialization improved 2002/1/26.
308    Coded by Takuji Nishimura and Makoto Matsumoto.
310    Before using, initialize the state by using init_genrand(seed)
311    or init_by_array(init_key, key_length).
313    Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura,
314    All rights reserved.
316    Redistribution and use in source and binary forms, with or without
317    modification, are permitted provided that the following conditions
318    are met:
320     1. Redistributions of source code must retain the above copyright
321        notice, this list of conditions and the following disclaimer.
323     2. Redistributions in binary form must reproduce the above copyright
324        notice, this list of conditions and the following disclaimer in the
325        documentation and/or other materials provided with the distribution.
327     3. The names of its contributors may not be used to endorse or promote
328        products derived from this software without specific prior written
329        permission.
331    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
332    "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
333    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
334    A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
335    CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
336    EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
337    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
338    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
339    LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
340    NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
341    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
344    Any feedback is very welcome.
345    http://www.math.keio.ac.jp/matumoto/emt.html
346    email: matumoto@math.keio.ac.jp
349 Sockets
350 -------
352 The :mod:`socket` module uses the functions, :func:`getaddrinfo`, and
353 :func:`getnameinfo`, which are coded in separate source files from the WIDE
354 Project, http://www.wide.ad.jp/. ::
356    Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
357    All rights reserved.
359    Redistribution and use in source and binary forms, with or without
360    modification, are permitted provided that the following conditions
361    are met:
362    1. Redistributions of source code must retain the above copyright
363       notice, this list of conditions and the following disclaimer.
364    2. Redistributions in binary form must reproduce the above copyright
365       notice, this list of conditions and the following disclaimer in the
366       documentation and/or other materials provided with the distribution.
367    3. Neither the name of the project nor the names of its contributors
368       may be used to endorse or promote products derived from this software
369       without specific prior written permission.
371    THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
372    GAI_ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
373    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
374    ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
375    FOR GAI_ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
376    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
377    OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
378    HOWEVER CAUSED AND ON GAI_ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
379    LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN GAI_ANY WAY
380    OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
381    SUCH DAMAGE.
384 Floating point exception control
385 --------------------------------
387 The source for the :mod:`fpectl` module includes the following notice::
389      ---------------------------------------------------------------------
390     /                       Copyright (c) 1996.                           \
391    |          The Regents of the University of California.                 |
392    |                        All rights reserved.                           |
393    |                                                                       |
394    |   Permission to use, copy, modify, and distribute this software for   |
395    |   any purpose without fee is hereby granted, provided that this en-   |
396    |   tire notice is included in all copies of any software which is or   |
397    |   includes  a  copy  or  modification  of  this software and in all   |
398    |   copies of the supporting documentation for such software.           |
399    |                                                                       |
400    |   This  work was produced at the University of California, Lawrence   |
401    |   Livermore National Laboratory under  contract  no.  W-7405-ENG-48   |
402    |   between  the  U.S.  Department  of  Energy and The Regents of the   |
403    |   University of California for the operation of UC LLNL.              |
404    |                                                                       |
405    |                              DISCLAIMER                               |
406    |                                                                       |
407    |   This  software was prepared as an account of work sponsored by an   |
408    |   agency of the United States Government. Neither the United States   |
409    |   Government  nor the University of California nor any of their em-   |
410    |   ployees, makes any warranty, express or implied, or  assumes  any   |
411    |   liability  or  responsibility  for the accuracy, completeness, or   |
412    |   usefulness of any information,  apparatus,  product,  or  process   |
413    |   disclosed,   or  represents  that  its  use  would  not  infringe   |
414    |   privately-owned rights. Reference herein to any specific  commer-   |
415    |   cial  products,  process,  or  service  by trade name, trademark,   |
416    |   manufacturer, or otherwise, does not  necessarily  constitute  or   |
417    |   imply  its endorsement, recommendation, or favoring by the United   |
418    |   States Government or the University of California. The views  and   |
419    |   opinions  of authors expressed herein do not necessarily state or   |
420    |   reflect those of the United States Government or  the  University   |
421    |   of  California,  and shall not be used for advertising or product   |
422     \  endorsement purposes.                                              /
423      ---------------------------------------------------------------------
426 MD5 message digest algorithm
427 ----------------------------
429 The source code for the :mod:`md5` module contains the following notice::
431      Copyright (C) 1999, 2002 Aladdin Enterprises.  All rights reserved.
433      This software is provided 'as-is', without any express or implied
434      warranty.  In no event will the authors be held liable for any damages
435      arising from the use of this software.
437      Permission is granted to anyone to use this software for any purpose,
438      including commercial applications, and to alter it and redistribute it
439      freely, subject to the following restrictions:
441      1. The origin of this software must not be misrepresented; you must not
442         claim that you wrote the original software. If you use this software
443         in a product, an acknowledgment in the product documentation would be
444         appreciated but is not required.
445      2. Altered source versions must be plainly marked as such, and must not be
446         misrepresented as being the original software.
447      3. This notice may not be removed or altered from any source distribution.
449      L. Peter Deutsch
450      ghost@aladdin.com
452      Independent implementation of MD5 (RFC 1321).
454      This code implements the MD5 Algorithm defined in RFC 1321, whose
455      text is available at
456            http://www.ietf.org/rfc/rfc1321.txt
457      The code is derived from the text of the RFC, including the test suite
458      (section A.5) but excluding the rest of Appendix A.  It does not include
459      any code or documentation that is identified in the RFC as being
460      copyrighted.
462      The original and principal author of md5.h is L. Peter Deutsch
463      <ghost@aladdin.com>.  Other authors are noted in the change history
464      that follows (in reverse chronological order):
466      2002-04-13 lpd Removed support for non-ANSI compilers; removed
467            references to Ghostscript; clarified derivation from RFC 1321;
468            now handles byte order either statically or dynamically.
469      1999-11-04 lpd Edited comments slightly for automatic TOC extraction.
470      1999-10-18 lpd Fixed typo in header comment (ansi2knr rather than md5);
471            added conditionalization for C++ compilation from Martin
472            Purschke <purschke@bnl.gov>.
473      1999-05-03 lpd Original version.
476 Asynchronous socket services
477 ----------------------------
479 The :mod:`asynchat` and :mod:`asyncore` modules contain the following notice::
481    Copyright 1996 by Sam Rushing
483                            All Rights Reserved
485    Permission to use, copy, modify, and distribute this software and
486    its documentation for any purpose and without fee is hereby
487    granted, provided that the above copyright notice appear in all
488    copies and that both that copyright notice and this permission
489    notice appear in supporting documentation, and that the name of Sam
490    Rushing not be used in advertising or publicity pertaining to
491    distribution of the software without specific, written prior
492    permission.
494    SAM RUSHING DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
495    INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
496    NO EVENT SHALL SAM RUSHING BE LIABLE FOR ANY SPECIAL, INDIRECT OR
497    CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
498    OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
499    NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
500    CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
503 Cookie management
504 -----------------
506 The :mod:`Cookie` module contains the following notice::
508    Copyright 2000 by Timothy O'Malley <timo@alum.mit.edu>
510                   All Rights Reserved
512    Permission to use, copy, modify, and distribute this software
513    and its documentation for any purpose and without fee is hereby
514    granted, provided that the above copyright notice appear in all
515    copies and that both that copyright notice and this permission
516    notice appear in supporting documentation, and that the name of
517    Timothy O'Malley  not be used in advertising or publicity
518    pertaining to distribution of the software without specific, written
519    prior permission.
521    Timothy O'Malley DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
522    SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
523    AND FITNESS, IN NO EVENT SHALL Timothy O'Malley BE LIABLE FOR
524    ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
525    WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
526    WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
527    ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
528    PERFORMANCE OF THIS SOFTWARE.
531 Profiling
532 ---------
534 The :mod:`profile` and :mod:`pstats` modules contain the following notice::
536    Copyright 1994, by InfoSeek Corporation, all rights reserved.
537    Written by James Roskind
539    Permission to use, copy, modify, and distribute this Python software
540    and its associated documentation for any purpose (subject to the
541    restriction in the following sentence) without fee is hereby granted,
542    provided that the above copyright notice appears in all copies, and
543    that both that copyright notice and this permission notice appear in
544    supporting documentation, and that the name of InfoSeek not be used in
545    advertising or publicity pertaining to distribution of the software
546    without specific, written prior permission.  This permission is
547    explicitly restricted to the copying and modification of the software
548    to remain in Python, compiled Python, or other languages (such as C)
549    wherein the modified or derived code is exclusively imported into a
550    Python module.
552    INFOSEEK CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
553    SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
554    FITNESS. IN NO EVENT SHALL INFOSEEK CORPORATION BE LIABLE FOR ANY
555    SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
556    RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
557    CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
558    CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
561 Execution tracing
562 -----------------
564 The :mod:`trace` module contains the following notice::
566    portions copyright 2001, Autonomous Zones Industries, Inc., all rights...
567    err...  reserved and offered to the public under the terms of the
568    Python 2.2 license.
569    Author: Zooko O'Whielacronx
570    http://zooko.com/
571    mailto:zooko@zooko.com
573    Copyright 2000, Mojam Media, Inc., all rights reserved.
574    Author: Skip Montanaro
576    Copyright 1999, Bioreason, Inc., all rights reserved.
577    Author: Andrew Dalke
579    Copyright 1995-1997, Automatrix, Inc., all rights reserved.
580    Author: Skip Montanaro
582    Copyright 1991-1995, Stichting Mathematisch Centrum, all rights reserved.
585    Permission to use, copy, modify, and distribute this Python software and
586    its associated documentation for any purpose without fee is hereby
587    granted, provided that the above copyright notice appears in all copies,
588    and that both that copyright notice and this permission notice appear in
589    supporting documentation, and that the name of neither Automatrix,
590    Bioreason or Mojam Media be used in advertising or publicity pertaining to
591    distribution of the software without specific, written prior permission.
594 UUencode and UUdecode functions
595 -------------------------------
597 The :mod:`uu` module contains the following notice::
599    Copyright 1994 by Lance Ellinghouse
600    Cathedral City, California Republic, United States of America.
601                           All Rights Reserved
602    Permission to use, copy, modify, and distribute this software and its
603    documentation for any purpose and without fee is hereby granted,
604    provided that the above copyright notice appear in all copies and that
605    both that copyright notice and this permission notice appear in
606    supporting documentation, and that the name of Lance Ellinghouse
607    not be used in advertising or publicity pertaining to distribution
608    of the software without specific, written prior permission.
609    LANCE ELLINGHOUSE DISCLAIMS ALL WARRANTIES WITH REGARD TO
610    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
611    FITNESS, IN NO EVENT SHALL LANCE ELLINGHOUSE CENTRUM BE LIABLE
612    FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
613    WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
614    ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
615    OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
617    Modified by Jack Jansen, CWI, July 1995:
618    - Use binascii module to do the actual line-by-line conversion
619      between ascii and binary. This results in a 1000-fold speedup. The C
620      version is still 5 times faster, though.
621    - Arguments more compliant with python standard
624 XML Remote Procedure Calls
625 --------------------------
627 The :mod:`xmlrpclib` module contains the following notice::
629        The XML-RPC client interface is
631    Copyright (c) 1999-2002 by Secret Labs AB
632    Copyright (c) 1999-2002 by Fredrik Lundh
634    By obtaining, using, and/or copying this software and/or its
635    associated documentation, you agree that you have read, understood,
636    and will comply with the following terms and conditions:
638    Permission to use, copy, modify, and distribute this software and
639    its associated documentation for any purpose and without fee is
640    hereby granted, provided that the above copyright notice appears in
641    all copies, and that both that copyright notice and this permission
642    notice appear in supporting documentation, and that the name of
643    Secret Labs AB or the author not be used in advertising or publicity
644    pertaining to distribution of the software without specific, written
645    prior permission.
647    SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD
648    TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANT-
649    ABILITY AND FITNESS.  IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR
650    BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
651    DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
652    WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
653    ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
654    OF THIS SOFTWARE.
657 test_epoll
658 ----------
660 The :mod:`test_epoll` contains the following notice::
662   Copyright (c) 2001-2006 Twisted Matrix Laboratories.
664   Permission is hereby granted, free of charge, to any person obtaining
665   a copy of this software and associated documentation files (the
666   "Software"), to deal in the Software without restriction, including
667   without limitation the rights to use, copy, modify, merge, publish,
668   distribute, sublicense, and/or sell copies of the Software, and to
669   permit persons to whom the Software is furnished to do so, subject to
670   the following conditions:
672   The above copyright notice and this permission notice shall be
673   included in all copies or substantial portions of the Software.
675   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
676   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
677   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
678   NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
679   LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
680   OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
681   WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
683 Select kqueue
684 -------------
686 The :mod:`select` and contains the following notice for the kqueue interface::
688   Copyright (c) 2000 Doug White, 2006 James Knight, 2007 Christian Heimes
689   All rights reserved.
691   Redistribution and use in source and binary forms, with or without
692   modification, are permitted provided that the following conditions
693   are met:
694   1. Redistributions of source code must retain the above copyright
695      notice, this list of conditions and the following disclaimer.
696   2. Redistributions in binary form must reproduce the above copyright
697      notice, this list of conditions and the following disclaimer in the
698      documentation and/or other materials provided with the distribution.
700   THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
701   ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
702   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
703   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
704   FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
705   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
706   OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
707   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
708   LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
709   OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
710   SUCH DAMAGE.