1.. highlightlang:: none
2
3.. _history-and-license:
4
5*******************
6History and License
7*******************
8
9
10History of the software
11=======================
12
13Python was created in the early 1990s by Guido van Rossum at Stichting
14Mathematisch Centrum (CWI, see https://www.cwi.nl/) in the Netherlands as a
15successor of a language called ABC.  Guido remains Python's principal author,
16although it includes many contributions from others.
17
18In 1995, Guido continued his work on Python at the Corporation for National
19Research Initiatives (CNRI, see https://www.cnri.reston.va.us/) in Reston,
20Virginia where he released several versions of the software.
21
22In May 2000, Guido and the Python core development team moved to BeOpen.com to
23form the BeOpen PythonLabs team.  In October of the same year, the PythonLabs
24team moved to Digital Creations (now Zope Corporation; see
25https://www.zope.org/).  In 2001, the Python Software Foundation (PSF, see
26https://www.python.org/psf/) was formed, a non-profit organization created
27specifically to own Python-related Intellectual Property.  Zope Corporation is a
28sponsoring member of the PSF.
29
30All Python releases are Open Source (see https://opensource.org/ for the Open
31Source Definition). Historically, most, but not all, Python releases have also
32been GPL-compatible; the table below summarizes the various releases.
33
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.1.2          | 2.1.1        | 2002       | PSF        | yes             |
54+----------------+--------------+------------+------------+-----------------+
55| 2.1.3          | 2.1.2        | 2002       | PSF        | yes             |
56+----------------+--------------+------------+------------+-----------------+
57| 2.2 and above  | 2.1.1        | 2001-now   | PSF        | yes             |
58+----------------+--------------+------------+------------+-----------------+
59
60.. note::
61
62   GPL-compatible doesn't mean that we're distributing Python under the GPL.  All
63   Python licenses, unlike the GPL, let you distribute a modified version without
64   making your changes open source. The GPL-compatible licenses make it possible to
65   combine Python with other software that is released under the GPL; the others
66   don't.
67
68Thanks to the many outside volunteers who have worked under Guido's direction to
69make these releases possible.
70
71
72Terms and conditions for accessing or otherwise using Python
73============================================================
74
75
76PSF LICENSE AGREEMENT FOR PYTHON |release|
77------------------------------------------
78
79.. parsed-literal::
80
81   1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and
82      the Individual or Organization ("Licensee") accessing and otherwise using Python
83      |release| software in source or binary form and its associated documentation.
84
85   2. Subject to the terms and conditions of this License Agreement, PSF hereby
86      grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
87      analyze, test, perform and/or display publicly, prepare derivative works,
88      distribute, and otherwise use Python |release| alone or in any derivative
89      version, provided, however, that PSF's License Agreement and PSF's notice of
90      copyright, i.e., "Copyright © 2001-2021 Python Software Foundation; All Rights
91      Reserved" are retained in Python |release| alone or in any derivative version
92      prepared by Licensee.
93
94   3. In the event Licensee prepares a derivative work that is based on or
95      incorporates Python |release| or any part thereof, and wants to make the
96      derivative work available to others as provided herein, then Licensee hereby
97      agrees to include in any such work a brief summary of the changes made to Python
98      |release|.
99
100   4. PSF is making Python |release| available to Licensee on an "AS IS" basis.
101      PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED.  BY WAY OF
102      EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR
103      WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE
104      USE OF PYTHON |release| WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
105
106   5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON |release|
107      FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF
108      MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON |release|, OR ANY DERIVATIVE
109      THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
110
111   6. This License Agreement will automatically terminate upon a material breach of
112      its terms and conditions.
113
114   7. Nothing in this License Agreement shall be deemed to create any relationship
115      of agency, partnership, or joint venture between PSF and Licensee.  This License
116      Agreement does not grant permission to use PSF trademarks or trade name in a
117      trademark sense to endorse or promote products or services of Licensee, or any
118      third party.
119
120   8. By copying, installing or otherwise using Python |release|, Licensee agrees
121      to be bound by the terms and conditions of this License Agreement.
122
123
124BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0
125-------------------------------------------
126
127BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1
128
129.. parsed-literal::
130
131   1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an office at
132      160 Saratoga Avenue, Santa Clara, CA 95051, and the Individual or Organization
133      ("Licensee") accessing and otherwise using this software in source or binary
134      form and its associated documentation ("the Software").
135
136   2. Subject to the terms and conditions of this BeOpen Python License Agreement,
137      BeOpen hereby grants Licensee a non-exclusive, royalty-free, world-wide license
138      to reproduce, analyze, test, perform and/or display publicly, prepare derivative
139      works, distribute, and otherwise use the Software alone or in any derivative
140      version, provided, however, that the BeOpen Python License is retained in the
141      Software, alone or in any derivative version prepared by Licensee.
142
143   3. BeOpen is making the Software available to Licensee on an "AS IS" basis.
144      BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED.  BY WAY OF
145      EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND DISCLAIMS ANY REPRESENTATION OR
146      WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE
147      USE OF THE SOFTWARE WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
148
149   4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE SOFTWARE FOR
150      ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF USING,
151      MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY DERIVATIVE THEREOF, EVEN IF
152      ADVISED OF THE POSSIBILITY THEREOF.
153
154   5. This License Agreement will automatically terminate upon a material breach of
155      its terms and conditions.
156
157   6. This License Agreement shall be governed by and interpreted in all respects
158      by the law of the State of California, excluding conflict of law provisions.
159      Nothing in this License Agreement shall be deemed to create any relationship of
160      agency, partnership, or joint venture between BeOpen and Licensee.  This License
161      Agreement does not grant permission to use BeOpen trademarks or trade names in a
162      trademark sense to endorse or promote products or services of Licensee, or any
163      third party.  As an exception, the "BeOpen Python" logos available at
164      http://www.pythonlabs.com/logos.html may be used according to the permissions
165      granted on that web page.
166
167   7. By copying, installing or otherwise using the software, Licensee agrees to be
168      bound by the terms and conditions of this License Agreement.
169
170
171CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1
172---------------------------------------
173
174.. parsed-literal::
175
176   1. This LICENSE AGREEMENT is between the Corporation for National Research
177      Initiatives, having an office at 1895 Preston White Drive, Reston, VA 20191
178      ("CNRI"), and the Individual or Organization ("Licensee") accessing and
179      otherwise using Python 1.6.1 software in source or binary form and its
180      associated documentation.
181
182   2. Subject to the terms and conditions of this License Agreement, CNRI hereby
183      grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
184      analyze, test, perform and/or display publicly, prepare derivative works,
185      distribute, and otherwise use Python 1.6.1 alone or in any derivative version,
186      provided, however, that CNRI's License Agreement and CNRI's notice of copyright,
187      i.e., "Copyright © 1995-2001 Corporation for National Research Initiatives; All
188      Rights Reserved" are retained in Python 1.6.1 alone or in any derivative version
189      prepared by Licensee.  Alternately, in lieu of CNRI's License Agreement,
190      Licensee may substitute the following text (omitting the quotes): "Python 1.6.1
191      is made available subject to the terms and conditions in CNRI's License
192      Agreement.  This Agreement together with Python 1.6.1 may be located on the
193      Internet using the following unique, persistent identifier (known as a handle):
194      1895.22/1013.  This Agreement may also be obtained from a proxy server on the
195      Internet using the following URL: http://hdl.handle.net/1895.22/1013."
196
197   3. In the event Licensee prepares a derivative work that is based on or
198      incorporates Python 1.6.1 or any part thereof, and wants to make the derivative
199      work available to others as provided herein, then Licensee hereby agrees to
200      include in any such work a brief summary of the changes made to Python 1.6.1.
201
202   4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS" basis.  CNRI
203      MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED.  BY WAY OF EXAMPLE,
204      BUT NOT LIMITATION, CNRI MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY
205      OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF
206      PYTHON 1.6.1 WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
207
208   5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON 1.6.1 FOR
209      ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF
210      MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1, OR ANY DERIVATIVE
211      THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
212
213   6. This License Agreement will automatically terminate upon a material breach of
214      its terms and conditions.
215
216   7. This License Agreement shall be governed by the federal intellectual property
217      law of the United States, including without limitation the federal copyright
218      law, and, to the extent such U.S. federal law does not apply, by the law of the
219      Commonwealth of Virginia, excluding Virginia's conflict of law provisions.
220      Notwithstanding the foregoing, with regard to derivative works based on Python
221      1.6.1 that incorporate non-separable material that was previously distributed
222      under the GNU General Public License (GPL), the law of the Commonwealth of
223      Virginia shall govern this License Agreement only as to issues arising under or
224      with respect to Paragraphs 4, 5, and 7 of this License Agreement.  Nothing in
225      this License Agreement shall be deemed to create any relationship of agency,
226      partnership, or joint venture between CNRI and Licensee.  This License Agreement
227      does not grant permission to use CNRI trademarks or trade name in a trademark
228      sense to endorse or promote products or services of Licensee, or any third
229      party.
230
231   8. By clicking on the "ACCEPT" button where indicated, or by copying, installing
232      or otherwise using Python 1.6.1, Licensee agrees to be bound by the terms and
233      conditions of this License Agreement.
234
235
236CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2
237--------------------------------------------------
238
239.. parsed-literal::
240
241   Copyright © 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, The
242   Netherlands.  All rights reserved.
243
244   Permission to use, copy, modify, and distribute this software and its
245   documentation for any purpose and without fee is hereby granted, provided that
246   the above copyright notice appear in all copies and that both that copyright
247   notice and this permission notice appear in supporting documentation, and that
248   the name of Stichting Mathematisch Centrum or CWI not be used in advertising or
249   publicity pertaining to distribution of the software without specific, written
250   prior permission.
251
252   STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
253   SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
254   EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE FOR ANY SPECIAL, INDIRECT
255   OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
256   DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
257   ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
258   SOFTWARE.
259
260
261Licenses and Acknowledgements for Incorporated Software
262=======================================================
263
264This section is an incomplete, but growing list of licenses and acknowledgements
265for third-party software incorporated in the Python distribution.
266
267
268Mersenne Twister
269----------------
270
271The :mod:`_random` module includes code based on a download from
272http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/emt19937ar.html. The following are
273the verbatim comments from the original code::
274
275   A C-program for MT19937, with initialization improved 2002/1/26.
276   Coded by Takuji Nishimura and Makoto Matsumoto.
277
278   Before using, initialize the state by using init_genrand(seed)
279   or init_by_array(init_key, key_length).
280
281   Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura,
282   All rights reserved.
283
284   Redistribution and use in source and binary forms, with or without
285   modification, are permitted provided that the following conditions
286   are met:
287
288    1. Redistributions of source code must retain the above copyright
289       notice, this list of conditions and the following disclaimer.
290
291    2. Redistributions in binary form must reproduce the above copyright
292       notice, this list of conditions and the following disclaimer in the
293       documentation and/or other materials provided with the distribution.
294
295    3. The names of its contributors may not be used to endorse or promote
296       products derived from this software without specific prior written
297       permission.
298
299   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
300   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
301   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
302   A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
303   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
304   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
305   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
306   PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
307   LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
308   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
309   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
310
311
312   Any feedback is very welcome.
313   http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html
314   email: m-mat @ math.sci.hiroshima-u.ac.jp (remove space)
315
316
317Sockets
318-------
319
320The :mod:`socket` module uses the functions, :func:`getaddrinfo`, and
321:func:`getnameinfo`, which are coded in separate source files from the WIDE
322Project, http://www.wide.ad.jp/. ::
323
324   Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
325   All rights reserved.
326
327   Redistribution and use in source and binary forms, with or without
328   modification, are permitted provided that the following conditions
329   are met:
330   1. Redistributions of source code must retain the above copyright
331      notice, this list of conditions and the following disclaimer.
332   2. Redistributions in binary form must reproduce the above copyright
333      notice, this list of conditions and the following disclaimer in the
334      documentation and/or other materials provided with the distribution.
335   3. Neither the name of the project nor the names of its contributors
336      may be used to endorse or promote products derived from this software
337      without specific prior written permission.
338
339   THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
340   ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
341   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
342   ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
343   FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
344   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
345   OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
346   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
347   LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
348   OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
349   SUCH DAMAGE.
350
351
352Asynchronous socket services
353----------------------------
354
355The :mod:`asynchat` and :mod:`asyncore` modules contain the following notice::
356
357   Copyright 1996 by Sam Rushing
358
359                           All Rights Reserved
360
361   Permission to use, copy, modify, and distribute this software and
362   its documentation for any purpose and without fee is hereby
363   granted, provided that the above copyright notice appear in all
364   copies and that both that copyright notice and this permission
365   notice appear in supporting documentation, and that the name of Sam
366   Rushing not be used in advertising or publicity pertaining to
367   distribution of the software without specific, written prior
368   permission.
369
370   SAM RUSHING DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
371   INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
372   NO EVENT SHALL SAM RUSHING BE LIABLE FOR ANY SPECIAL, INDIRECT OR
373   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
374   OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
375   NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
376   CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
377
378
379Cookie management
380-----------------
381
382The :mod:`http.cookies` module contains the following notice::
383
384   Copyright 2000 by Timothy O'Malley <timo@alum.mit.edu>
385
386                  All Rights Reserved
387
388   Permission to use, copy, modify, and distribute this software
389   and its documentation for any purpose and without fee is hereby
390   granted, provided that the above copyright notice appear in all
391   copies and that both that copyright notice and this permission
392   notice appear in supporting documentation, and that the name of
393   Timothy O'Malley  not be used in advertising or publicity
394   pertaining to distribution of the software without specific, written
395   prior permission.
396
397   Timothy O'Malley DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
398   SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
399   AND FITNESS, IN NO EVENT SHALL Timothy O'Malley BE LIABLE FOR
400   ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
401   WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
402   WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
403   ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
404   PERFORMANCE OF THIS SOFTWARE.
405
406
407Execution tracing
408-----------------
409
410The :mod:`trace` module contains the following notice::
411
412   portions copyright 2001, Autonomous Zones Industries, Inc., all rights...
413   err...  reserved and offered to the public under the terms of the
414   Python 2.2 license.
415   Author: Zooko O'Whielacronx
416   http://zooko.com/
417   mailto:zooko@zooko.com
418
419   Copyright 2000, Mojam Media, Inc., all rights reserved.
420   Author: Skip Montanaro
421
422   Copyright 1999, Bioreason, Inc., all rights reserved.
423   Author: Andrew Dalke
424
425   Copyright 1995-1997, Automatrix, Inc., all rights reserved.
426   Author: Skip Montanaro
427
428   Copyright 1991-1995, Stichting Mathematisch Centrum, all rights reserved.
429
430
431   Permission to use, copy, modify, and distribute this Python software and
432   its associated documentation for any purpose without fee is hereby
433   granted, provided that the above copyright notice appears in all copies,
434   and that both that copyright notice and this permission notice appear in
435   supporting documentation, and that the name of neither Automatrix,
436   Bioreason or Mojam Media be used in advertising or publicity pertaining to
437   distribution of the software without specific, written prior permission.
438
439
440UUencode and UUdecode functions
441-------------------------------
442
443The :mod:`uu` module contains the following notice::
444
445   Copyright 1994 by Lance Ellinghouse
446   Cathedral City, California Republic, United States of America.
447                          All Rights Reserved
448   Permission to use, copy, modify, and distribute this software and its
449   documentation for any purpose and without fee is hereby granted,
450   provided that the above copyright notice appear in all copies and that
451   both that copyright notice and this permission notice appear in
452   supporting documentation, and that the name of Lance Ellinghouse
453   not be used in advertising or publicity pertaining to distribution
454   of the software without specific, written prior permission.
455   LANCE ELLINGHOUSE DISCLAIMS ALL WARRANTIES WITH REGARD TO
456   THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
457   FITNESS, IN NO EVENT SHALL LANCE ELLINGHOUSE CENTRUM BE LIABLE
458   FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
459   WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
460   ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
461   OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
462
463   Modified by Jack Jansen, CWI, July 1995:
464   - Use binascii module to do the actual line-by-line conversion
465     between ascii and binary. This results in a 1000-fold speedup. The C
466     version is still 5 times faster, though.
467   - Arguments more compliant with Python standard
468
469
470XML Remote Procedure Calls
471--------------------------
472
473The :mod:`xmlrpc.client` module contains the following notice::
474
475       The XML-RPC client interface is
476
477   Copyright (c) 1999-2002 by Secret Labs AB
478   Copyright (c) 1999-2002 by Fredrik Lundh
479
480   By obtaining, using, and/or copying this software and/or its
481   associated documentation, you agree that you have read, understood,
482   and will comply with the following terms and conditions:
483
484   Permission to use, copy, modify, and distribute this software and
485   its associated documentation for any purpose and without fee is
486   hereby granted, provided that the above copyright notice appears in
487   all copies, and that both that copyright notice and this permission
488   notice appear in supporting documentation, and that the name of
489   Secret Labs AB or the author not be used in advertising or publicity
490   pertaining to distribution of the software without specific, written
491   prior permission.
492
493   SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD
494   TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANT-
495   ABILITY AND FITNESS.  IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR
496   BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
497   DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
498   WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
499   ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
500   OF THIS SOFTWARE.
501
502
503test_epoll
504----------
505
506The :mod:`test_epoll` module contains the following notice::
507
508  Copyright (c) 2001-2006 Twisted Matrix Laboratories.
509
510  Permission is hereby granted, free of charge, to any person obtaining
511  a copy of this software and associated documentation files (the
512  "Software"), to deal in the Software without restriction, including
513  without limitation the rights to use, copy, modify, merge, publish,
514  distribute, sublicense, and/or sell copies of the Software, and to
515  permit persons to whom the Software is furnished to do so, subject to
516  the following conditions:
517
518  The above copyright notice and this permission notice shall be
519  included in all copies or substantial portions of the Software.
520
521  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
522  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
523  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
524  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
525  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
526  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
527  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
528
529Select kqueue
530-------------
531
532The :mod:`select` module contains the following notice for the kqueue
533interface::
534
535  Copyright (c) 2000 Doug White, 2006 James Knight, 2007 Christian Heimes
536  All rights reserved.
537
538  Redistribution and use in source and binary forms, with or without
539  modification, are permitted provided that the following conditions
540  are met:
541  1. Redistributions of source code must retain the above copyright
542     notice, this list of conditions and the following disclaimer.
543  2. Redistributions in binary form must reproduce the above copyright
544     notice, this list of conditions and the following disclaimer in the
545     documentation and/or other materials provided with the distribution.
546
547  THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
548  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
549  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
550  ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
551  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
552  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
553  OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
554  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
555  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
556  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
557  SUCH DAMAGE.
558
559
560SipHash24
561---------
562
563The file :file:`Python/pyhash.c` contains Marek Majkowski' implementation of
564Dan Bernstein's SipHash24 algorithm. It contains the following note::
565
566  <MIT License>
567  Copyright (c) 2013  Marek Majkowski <marek@popcount.org>
568
569  Permission is hereby granted, free of charge, to any person obtaining a copy
570  of this software and associated documentation files (the "Software"), to deal
571  in the Software without restriction, including without limitation the rights
572  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
573  copies of the Software, and to permit persons to whom the Software is
574  furnished to do so, subject to the following conditions:
575
576  The above copyright notice and this permission notice shall be included in
577  all copies or substantial portions of the Software.
578  </MIT License>
579
580  Original location:
581     https://github.com/majek/csiphash/
582
583  Solution inspired by code from:
584     Samuel Neves (supercop/crypto_auth/siphash24/little)
585     djb (supercop/crypto_auth/siphash24/little2)
586     Jean-Philippe Aumasson (https://131002.net/siphash/siphash24.c)
587
588
589strtod and dtoa
590---------------
591
592The file :file:`Python/dtoa.c`, which supplies C functions dtoa and
593strtod for conversion of C doubles to and from strings, is derived
594from the file of the same name by David M. Gay, currently available
595from http://www.netlib.org/fp/.  The original file, as retrieved on
596March 16, 2009, contains the following copyright and licensing
597notice::
598
599   /****************************************************************
600    *
601    * The author of this software is David M. Gay.
602    *
603    * Copyright (c) 1991, 2000, 2001 by Lucent Technologies.
604    *
605    * Permission to use, copy, modify, and distribute this software for any
606    * purpose without fee is hereby granted, provided that this entire notice
607    * is included in all copies of any software which is or includes a copy
608    * or modification of this software and in all copies of the supporting
609    * documentation for such software.
610    *
611    * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
612    * WARRANTY.  IN PARTICULAR, NEITHER THE AUTHOR NOR LUCENT MAKES ANY
613    * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
614    * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
615    *
616    ***************************************************************/
617
618
619OpenSSL
620-------
621
622The modules :mod:`hashlib`, :mod:`posix`, :mod:`ssl`, :mod:`crypt` use
623the OpenSSL library for added performance if made available by the
624operating system. Additionally, the Windows and Mac OS X installers for
625Python may include a copy of the OpenSSL libraries, so we include a copy
626of the OpenSSL license here::
627
628
629  LICENSE ISSUES
630  ==============
631
632  The OpenSSL toolkit stays under a dual license, i.e. both the conditions of
633  the OpenSSL License and the original SSLeay license apply to the toolkit.
634  See below for the actual license texts. Actually both licenses are BSD-style
635  Open Source licenses. In case of any license issues related to OpenSSL
636  please contact openssl-core@openssl.org.
637
638  OpenSSL License
639  ---------------
640
641    /* ====================================================================
642     * Copyright (c) 1998-2008 The OpenSSL Project.  All rights reserved.
643     *
644     * Redistribution and use in source and binary forms, with or without
645     * modification, are permitted provided that the following conditions
646     * are met:
647     *
648     * 1. Redistributions of source code must retain the above copyright
649     *    notice, this list of conditions and the following disclaimer.
650     *
651     * 2. Redistributions in binary form must reproduce the above copyright
652     *    notice, this list of conditions and the following disclaimer in
653     *    the documentation and/or other materials provided with the
654     *    distribution.
655     *
656     * 3. All advertising materials mentioning features or use of this
657     *    software must display the following acknowledgment:
658     *    "This product includes software developed by the OpenSSL Project
659     *    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
660     *
661     * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
662     *    endorse or promote products derived from this software without
663     *    prior written permission. For written permission, please contact
664     *    openssl-core@openssl.org.
665     *
666     * 5. Products derived from this software may not be called "OpenSSL"
667     *    nor may "OpenSSL" appear in their names without prior written
668     *    permission of the OpenSSL Project.
669     *
670     * 6. Redistributions of any form whatsoever must retain the following
671     *    acknowledgment:
672     *    "This product includes software developed by the OpenSSL Project
673     *    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
674     *
675     * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
676     * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
677     * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
678     * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
679     * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
680     * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
681     * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
682     * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
683     * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
684     * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
685     * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
686     * OF THE POSSIBILITY OF SUCH DAMAGE.
687     * ====================================================================
688     *
689     * This product includes cryptographic software written by Eric Young
690     * (eay@cryptsoft.com).  This product includes software written by Tim
691     * Hudson (tjh@cryptsoft.com).
692     *
693     */
694
695 Original SSLeay License
696 -----------------------
697
698    /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
699     * All rights reserved.
700     *
701     * This package is an SSL implementation written
702     * by Eric Young (eay@cryptsoft.com).
703     * The implementation was written so as to conform with Netscapes SSL.
704     *
705     * This library is free for commercial and non-commercial use as long as
706     * the following conditions are aheared to.  The following conditions
707     * apply to all code found in this distribution, be it the RC4, RSA,
708     * lhash, DES, etc., code; not just the SSL code.  The SSL documentation
709     * included with this distribution is covered by the same copyright terms
710     * except that the holder is Tim Hudson (tjh@cryptsoft.com).
711     *
712     * Copyright remains Eric Young's, and as such any Copyright notices in
713     * the code are not to be removed.
714     * If this package is used in a product, Eric Young should be given attribution
715     * as the author of the parts of the library used.
716     * This can be in the form of a textual message at program startup or
717     * in documentation (online or textual) provided with the package.
718     *
719     * Redistribution and use in source and binary forms, with or without
720     * modification, are permitted provided that the following conditions
721     * are met:
722     * 1. Redistributions of source code must retain the copyright
723     *    notice, this list of conditions and the following disclaimer.
724     * 2. Redistributions in binary form must reproduce the above copyright
725     *    notice, this list of conditions and the following disclaimer in the
726     *    documentation and/or other materials provided with the distribution.
727     * 3. All advertising materials mentioning features or use of this software
728     *    must display the following acknowledgement:
729     *    "This product includes cryptographic software written by
730     *     Eric Young (eay@cryptsoft.com)"
731     *    The word 'cryptographic' can be left out if the rouines from the library
732     *    being used are not cryptographic related :-).
733     * 4. If you include any Windows specific code (or a derivative thereof) from
734     *    the apps directory (application code) you must include an acknowledgement:
735     *    "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
736     *
737     * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
738     * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
739     * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
740     * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
741     * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
742     * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
743     * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
744     * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
745     * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
746     * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
747     * SUCH DAMAGE.
748     *
749     * The licence and distribution terms for any publically available version or
750     * derivative of this code cannot be changed.  i.e. this code cannot simply be
751     * copied and put under another distribution licence
752     * [including the GNU Public Licence.]
753     */
754
755
756expat
757-----
758
759The :mod:`pyexpat` extension is built using an included copy of the expat
760sources unless the build is configured ``--with-system-expat``::
761
762  Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd
763                                 and Clark Cooper
764
765  Permission is hereby granted, free of charge, to any person obtaining
766  a copy of this software and associated documentation files (the
767  "Software"), to deal in the Software without restriction, including
768  without limitation the rights to use, copy, modify, merge, publish,
769  distribute, sublicense, and/or sell copies of the Software, and to
770  permit persons to whom the Software is furnished to do so, subject to
771  the following conditions:
772
773  The above copyright notice and this permission notice shall be included
774  in all copies or substantial portions of the Software.
775
776  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
777  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
778  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
779  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
780  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
781  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
782  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
783
784
785libffi
786------
787
788The :mod:`_ctypes` extension is built using an included copy of the libffi
789sources unless the build is configured ``--with-system-libffi``::
790
791   Copyright (c) 1996-2008  Red Hat, Inc and others.
792
793   Permission is hereby granted, free of charge, to any person obtaining
794   a copy of this software and associated documentation files (the
795   ``Software''), to deal in the Software without restriction, including
796   without limitation the rights to use, copy, modify, merge, publish,
797   distribute, sublicense, and/or sell copies of the Software, and to
798   permit persons to whom the Software is furnished to do so, subject to
799   the following conditions:
800
801   The above copyright notice and this permission notice shall be included
802   in all copies or substantial portions of the Software.
803
804   THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND,
805   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
806   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
807   NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
808   HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
809   WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
810   OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
811   DEALINGS IN THE SOFTWARE.
812
813
814zlib
815----
816
817The :mod:`zlib` extension is built using an included copy of the zlib
818sources if the zlib version found on the system is too old to be
819used for the build::
820
821  Copyright (C) 1995-2011 Jean-loup Gailly and Mark Adler
822
823  This software is provided 'as-is', without any express or implied
824  warranty.  In no event will the authors be held liable for any damages
825  arising from the use of this software.
826
827  Permission is granted to anyone to use this software for any purpose,
828  including commercial applications, and to alter it and redistribute it
829  freely, subject to the following restrictions:
830
831  1. The origin of this software must not be misrepresented; you must not
832     claim that you wrote the original software. If you use this software
833     in a product, an acknowledgment in the product documentation would be
834     appreciated but is not required.
835
836  2. Altered source versions must be plainly marked as such, and must not be
837     misrepresented as being the original software.
838
839  3. This notice may not be removed or altered from any source distribution.
840
841  Jean-loup Gailly        Mark Adler
842  jloup@gzip.org          madler@alumni.caltech.edu
843
844
845cfuhash
846-------
847
848The implementation of the hash table used by the :mod:`tracemalloc` is based
849on the cfuhash project::
850
851   Copyright (c) 2005 Don Owens
852   All rights reserved.
853
854   This code is released under the BSD license:
855
856   Redistribution and use in source and binary forms, with or without
857   modification, are permitted provided that the following conditions
858   are met:
859
860     * Redistributions of source code must retain the above copyright
861       notice, this list of conditions and the following disclaimer.
862
863     * Redistributions in binary form must reproduce the above
864       copyright notice, this list of conditions and the following
865       disclaimer in the documentation and/or other materials provided
866       with the distribution.
867
868     * Neither the name of the author nor the names of its
869       contributors may be used to endorse or promote products derived
870       from this software without specific prior written permission.
871
872   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
873   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
874   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
875   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
876   COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
877   INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
878   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
879   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
880   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
881   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
882   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
883   OF THE POSSIBILITY OF SUCH DAMAGE.
884
885
886libmpdec
887--------
888
889The :mod:`_decimal` module is built using an included copy of the libmpdec
890library unless the build is configured ``--with-system-libmpdec``::
891
892   Copyright (c) 2008-2016 Stefan Krah. All rights reserved.
893
894   Redistribution and use in source and binary forms, with or without
895   modification, are permitted provided that the following conditions
896   are met:
897
898   1. Redistributions of source code must retain the above copyright
899      notice, this list of conditions and the following disclaimer.
900
901   2. Redistributions in binary form must reproduce the above copyright
902      notice, this list of conditions and the following disclaimer in the
903      documentation and/or other materials provided with the distribution.
904
905   THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND
906   ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
907   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
908   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
909   FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
910   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
911   OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
912   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
913   LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
914   OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
915   SUCH DAMAGE.
916