历史和许可证

该软件的历史

Python 是在 1990 年代初由 Guido van Rossum 在荷兰的 Stichting Mathematisch Centrum (CWI,见 https://www.cwi.nl) 作为一门名为 ABC 的语言的后继者创造的。 Guido 仍然是 Python 的主要作者,尽管它也包括了许多来自其他人的贡献。

在 1995 年,Guido 在弗吉尼亚州 Reston 市的 Corporation for National Research Initiatives (CNRI,见 https://www.cnri.reston.va.us) 继续他对 Python 的工作,他在那里发布了该软件的多个版本。

在 2000 年 5 月,Guido 和 Python 核心开发团队移至 BeOpen.com 组建了 BeOpen PythonLabs 团队。 同年 10 月,PythonLabs 团队移至 Digital Creations,后改名为 Zope Corporation。 在 2001 年,Python Software Foundation (PSF,见 https://www.python.org/psf/) 成立,这是一个专门为持有与 Python 相关的知识产权而创立的非营利组织。 Zope Corporation 是 PSF 的一个赞助成员。

所有 Python 发布版都是开源的 (有关开源的定义见 https://opensource.org)。 在历史上,大多数但并非全部 Python 发布版还是 GPL 兼容的;下表总结了各个版本的情况。

发布版本 源自 年份 所有者 GPL 兼容? (1)
0.9.0 至 1.2 n/a 1991-1995 CWI
1.3 至 1.5.2 1.2 1995-1999 CNRI
1.6 1.5.2 2000 CNRI
2.0 1.6 2000 BeOpen.com
1.6.1 1.6 2001 CNRI 是 (2)
2.1 2.0+1.6.1 2001 PSF
2.0.1 2.0+1.6.1 2001 PSF
2.1.1 2.1+2.0.1 2001 PSF
2.1.2 2.1.1 2002 PSF
2.1.3 2.1.2 2002 PSF
2.2 及更高 2.1.1 2001 至今 PSF

备注

  • GPL 兼容并不意味着我们是基于 GPL 发布 Python。 与 GPL 不同,所有 Python 许可证都允许你分发经修改的版本而无需开源你所做的修改。 GPL 兼容的许可证使得 Python 可以与其他基于 GPL 发布的软件结合使用;其他许可证则不可以。

  • 按照 Richard Stallman 的说法,1.6.1 不是 GPL 兼容的,因为它的许可证包含特定的法律条款。 但是按照 CNRI 的说法,Stallman 的律师已告诉 CNRI 的律师 1.6.1 与 GPL "并非不兼容"。

感谢众多在 Guido 指导下工作的外部志愿者,使得这些发布成为可能。

获取或以其他方式使用 Python 的条款和条件

Python 软件和文档的使用许可均为 Python Software Foundation License Version 2。

从 Python 3.8.6 开始,文档中的示例、操作指导和其他代码均采用 PSF License Version 2 和 Zero-Clause BSD license 双重使用许可。

某些包含在 Python 中的软件基于不同的许可。这些许可会与相应许可之下的代码一同列出。有关这些许可的不完整列表请参阅 收录软件的许可与鸣谢

PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2

  1. 1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and
  2. the Individual or Organization ("Licensee") accessing and otherwise using this
  3. software ("Python") in source or binary form and its associated documentation.
  4.  
  5. 2. Subject to the terms and conditions of this License Agreement, PSF hereby
  6. grants Licensee a nonexclusive, royalty-free, worldwide license to reproduce,
  7. analyze, test, perform and/or display publicly, prepare derivative works,
  8. distribute, and otherwise use Python alone or in any derivative
  9. version, provided, however, that PSF's License Agreement and PSF's notice of
  10. copyright, i.e., "Copyright © 2001-2024 Python Software Foundation; All Rights
  11. Reserved" are retained in Python alone or in any derivative version
  12. prepared by Licensee.
  13.  
  14. 3. In the event Licensee prepares a derivative work that is based on or
  15. incorporates Python or any part thereof, and wants to make the
  16. derivative work available to others as provided herein, then Licensee hereby
  17. agrees to include in any such work a brief summary of the changes made to Python.
  18.  
  19. 4. PSF is making Python available to Licensee on an "AS IS" basis.
  20. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF
  21. EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR
  22. WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE
  23. USE OF PYTHON WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
  24.  
  25. 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
  26. FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF
  27. MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, OR ANY DERIVATIVE
  28. THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
  29.  
  30. 6. This License Agreement will automatically terminate upon a material breach of
  31. its terms and conditions.
  32.  
  33. 7. Nothing in this License Agreement shall be deemed to create any relationship
  34. of agency, partnership, or joint venture between PSF and Licensee. This License
  35. Agreement does not grant permission to use PSF trademarks or trade name in a
  36. trademark sense to endorse or promote products or services of Licensee, or any
  37. third party.
  38.  
  39. 8. By copying, installing or otherwise using Python, Licensee agrees
  40. to be bound by the terms and conditions of this License Agreement.

用于 PYTHON 2.0 的 BEOPEN.COM 许可协议

BEOPEN PYTHON 开源许可协议第 1 版

  1. 1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an office at
  2. 160 Saratoga Avenue, Santa Clara, CA 95051, and the Individual or Organization
  3. ("Licensee") accessing and otherwise using this software in source or binary
  4. form and its associated documentation ("the Software").
  5.  
  6. 2. Subject to the terms and conditions of this BeOpen Python License Agreement,
  7. BeOpen hereby grants Licensee a nonexclusive, royalty-free, worldwide license
  8. to reproduce, analyze, test, perform and/or display publicly, prepare derivative
  9. works, distribute, and otherwise use the Software alone or in any derivative
  10. version, provided, however, that the BeOpen Python License is retained in the
  11. Software, alone or in any derivative version prepared by Licensee.
  12.  
  13. 3. BeOpen is making the Software available to Licensee on an "AS IS" basis.
  14. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF
  15. EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND DISCLAIMS ANY REPRESENTATION OR
  16. WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE
  17. USE OF THE SOFTWARE WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
  18.  
  19. 4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE SOFTWARE FOR
  20. ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF USING,
  21. MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY DERIVATIVE THEREOF, EVEN IF
  22. ADVISED OF THE POSSIBILITY THEREOF.
  23.  
  24. 5. This License Agreement will automatically terminate upon a material breach of
  25. its terms and conditions.
  26.  
  27. 6. This License Agreement shall be governed by and interpreted in all respects
  28. by the law of the State of California, excluding conflict of law provisions.
  29. Nothing in this License Agreement shall be deemed to create any relationship of
  30. agency, partnership, or joint venture between BeOpen and Licensee. This License
  31. Agreement does not grant permission to use BeOpen trademarks or trade names in a
  32. trademark sense to endorse or promote products or services of Licensee, or any
  33. third party. As an exception, the "BeOpen Python" logos available at
  34. http://www.pythonlabs.com/logos.html may be used according to the permissions
  35. granted on that web page.
  36.  
  37. 7. By copying, installing or otherwise using the software, Licensee agrees to be
  38. bound by the terms and conditions of this License Agreement.

用于 PYTHON 1.6.1 的 CNRI 许可协议

  1. 1. This LICENSE AGREEMENT is between the Corporation for National Research
  2. Initiatives, having an office at 1895 Preston White Drive, Reston, VA 20191
  3. ("CNRI"), and the Individual or Organization ("Licensee") accessing and
  4. otherwise using Python 1.6.1 software in source or binary form and its
  5. associated documentation.
  6.  
  7. 2. Subject to the terms and conditions of this License Agreement, CNRI hereby
  8. grants Licensee a nonexclusive, royalty-free, worldwide license to reproduce,
  9. analyze, test, perform and/or display publicly, prepare derivative works,
  10. distribute, and otherwise use Python 1.6.1 alone or in any derivative version,
  11. provided, however, that CNRI's License Agreement and CNRI's notice of copyright,
  12. i.e., "Copyright © 1995-2001 Corporation for National Research Initiatives; All
  13. Rights Reserved" are retained in Python 1.6.1 alone or in any derivative version
  14. prepared by Licensee. Alternately, in lieu of CNRI's License Agreement,
  15. Licensee may substitute the following text (omitting the quotes): "Python 1.6.1
  16. is made available subject to the terms and conditions in CNRI's License
  17. Agreement. This Agreement together with Python 1.6.1 may be located on the
  18. internet using the following unique, persistent identifier (known as a handle):
  19. 1895.22/1013. This Agreement may also be obtained from a proxy server on the
  20. internet using the following URL: http://hdl.handle.net/1895.22/1013".
  21.  
  22. 3. In the event Licensee prepares a derivative work that is based on or
  23. incorporates Python 1.6.1 or any part thereof, and wants to make the derivative
  24. work available to others as provided herein, then Licensee hereby agrees to
  25. include in any such work a brief summary of the changes made to Python 1.6.1.
  26.  
  27. 4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS" basis. CNRI
  28. MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE,
  29. BUT NOT LIMITATION, CNRI MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY
  30. OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF
  31. PYTHON 1.6.1 WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
  32.  
  33. 5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON 1.6.1 FOR
  34. ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF
  35. MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1, OR ANY DERIVATIVE
  36. THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
  37.  
  38. 6. This License Agreement will automatically terminate upon a material breach of
  39. its terms and conditions.
  40.  
  41. 7. This License Agreement shall be governed by the federal intellectual property
  42. law of the United States, including without limitation the federal copyright
  43. law, and, to the extent such U.S. federal law does not apply, by the law of the
  44. Commonwealth of Virginia, excluding Virginia's conflict of law provisions.
  45. Notwithstanding the foregoing, with regard to derivative works based on Python
  46. 1.6.1 that incorporate non-separable material that was previously distributed
  47. under the GNU General Public License (GPL), the law of the Commonwealth of
  48. Virginia shall govern this License Agreement only as to issues arising under or
  49. with respect to Paragraphs 4, 5, and 7 of this License Agreement. Nothing in
  50. this License Agreement shall be deemed to create any relationship of agency,
  51. partnership, or joint venture between CNRI and Licensee. This License Agreement
  52. does not grant permission to use CNRI trademarks or trade name in a trademark
  53. sense to endorse or promote products or services of Licensee, or any third
  54. party.
  55.  
  56. 8. By clicking on the "ACCEPT" button where indicated, or by copying, installing
  57. or otherwise using Python 1.6.1, Licensee agrees to be bound by the terms and
  58. conditions of this License Agreement.

用于 PYTHON 0.9.0 至 1.2 的 CWI 许可协议

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

ZERO-CLAUSE BSD LICENSE FOR CODE IN THE PYTHON DOCUMENTATION

  1. Permission to use, copy, modify, and/or distribute this software for any
  2. purpose with or without fee is hereby granted.
  3.  
  4. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  5. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  6. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  7. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  8. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  9. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  10. PERFORMANCE OF THIS SOFTWARE.

收录软件的许可与鸣谢

本节是Python发行版中收录的第三方软件的许可和致谢清单,该清单是不完整且不断增长的。

Mersenne Twister

作为 random 模块下层的 _random C 扩展包括基于从 http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/emt19937ar.html 下载的代码。 以下是原始代码的完整注释:

  1. A C-program for MT19937, with initialization improved 2002/1/26.
  2. Coded by Takuji Nishimura and Makoto Matsumoto.
  3.  
  4. Before using, initialize the state by using init_genrand(seed)
  5. or init_by_array(init_key, key_length).
  6.  
  7. Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura,
  8. All rights reserved.
  9.  
  10. Redistribution and use in source and binary forms, with or without
  11. modification, are permitted provided that the following conditions
  12. are met:
  13.  
  14. 1. Redistributions of source code must retain the above copyright
  15. notice, this list of conditions and the following disclaimer.
  16.  
  17. 2. Redistributions in binary form must reproduce the above copyright
  18. notice, this list of conditions and the following disclaimer in the
  19. documentation and/or other materials provided with the distribution.
  20.  
  21. 3. The names of its contributors may not be used to endorse or promote
  22. products derived from this software without specific prior written
  23. permission.
  24.  
  25. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  26. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  27. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  28. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  29. CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  30. EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  31. PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  32. PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  33. LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  34. NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  35. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  36.  
  37.  
  38. Any feedback is very welcome.
  39. http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html
  40. email: m-mat @ math.sci.hiroshima-u.ac.jp (remove space)

套接字

socket 使用了 getaddrinfo()getnameinfo() WIDE 项目的不同源文件中: https://www.wide.ad.jp/

  1. Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
  2. All rights reserved.
  3.  
  4. Redistribution and use in source and binary forms, with or without
  5. modification, are permitted provided that the following conditions
  6. are met:
  7. 1. Redistributions of source code must retain the above copyright
  8. notice, this list of conditions and the following disclaimer.
  9. 2. Redistributions in binary form must reproduce the above copyright
  10. notice, this list of conditions and the following disclaimer in the
  11. documentation and/or other materials provided with the distribution.
  12. 3. Neither the name of the project nor the names of its contributors
  13. may be used to endorse or promote products derived from this software
  14. without specific prior written permission.
  15.  
  16. THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS "AS IS" AND
  17. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  18. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  19. ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
  20. FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  21. DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  22. OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  23. HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  24. LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  25. OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  26. SUCH DAMAGE.

异步套接字服务

test.support.asynchattest.support.asyncore 模块包含以下说明。:

  1. Copyright 1996 by Sam Rushing
  2.  
  3. All Rights Reserved
  4.  
  5. Permission to use, copy, modify, and distribute this software and
  6. its documentation for any purpose and without fee is hereby
  7. granted, provided that the above copyright notice appear in all
  8. copies and that both that copyright notice and this permission
  9. notice appear in supporting documentation, and that the name of Sam
  10. Rushing not be used in advertising or publicity pertaining to
  11. distribution of the software without specific, written prior
  12. permission.
  13.  
  14. SAM RUSHING DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  15. INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
  16. NO EVENT SHALL SAM RUSHING BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  17. CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  18. OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
  19. NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  20. CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Cookie 管理

http.cookies 模块包含以下声明:

  1. Copyright 2000 by Timothy O'Malley <timo@alum.mit.edu>
  2.  
  3. All Rights Reserved
  4.  
  5. Permission to use, copy, modify, and distribute this software
  6. and its documentation for any purpose and without fee is hereby
  7. granted, provided that the above copyright notice appear in all
  8. copies and that both that copyright notice and this permission
  9. notice appear in supporting documentation, and that the name of
  10. Timothy O'Malley not be used in advertising or publicity
  11. pertaining to distribution of the software without specific, written
  12. prior permission.
  13.  
  14. Timothy O'Malley DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
  15. SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  16. AND FITNESS, IN NO EVENT SHALL Timothy O'Malley BE LIABLE FOR
  17. ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  18. WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  19. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
  20. ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  21. PERFORMANCE OF THIS SOFTWARE.

执行追踪

trace 模块包含以下声明:

  1. portions copyright 2001, Autonomous Zones Industries, Inc., all rights...
  2. err... reserved and offered to the public under the terms of the
  3. Python 2.2 license.
  4. Author: Zooko O'Whielacronx
  5. http://zooko.com/
  6. mailto:zooko@zooko.com
  7.  
  8. Copyright 2000, Mojam Media, Inc., all rights reserved.
  9. Author: Skip Montanaro
  10.  
  11. Copyright 1999, Bioreason, Inc., all rights reserved.
  12. Author: Andrew Dalke
  13.  
  14. Copyright 1995-1997, Automatrix, Inc., all rights reserved.
  15. Author: Skip Montanaro
  16.  
  17. Copyright 1991-1995, Stichting Mathematisch Centrum, all rights reserved.
  18.  
  19.  
  20. Permission to use, copy, modify, and distribute this Python software and
  21. its associated documentation for any purpose without fee is hereby
  22. granted, provided that the above copyright notice appears in all copies,
  23. and that both that copyright notice and this permission notice appear in
  24. supporting documentation, and that the name of neither Automatrix,
  25. Bioreason or Mojam Media be used in advertising or publicity pertaining to
  26. distribution of the software without specific, written prior permission.

UUencode 与 UUdecode 函数

uu 编解码器包含以下声明:

  1. Copyright 1994 by Lance Ellinghouse
  2. Cathedral City, California Republic, United States of America.
  3. All Rights Reserved
  4. Permission to use, copy, modify, and distribute this software and its
  5. documentation for any purpose and without fee is hereby granted,
  6. provided that the above copyright notice appear in all copies and that
  7. both that copyright notice and this permission notice appear in
  8. supporting documentation, and that the name of Lance Ellinghouse
  9. not be used in advertising or publicity pertaining to distribution
  10. of the software without specific, written prior permission.
  11. LANCE ELLINGHOUSE DISCLAIMS ALL WARRANTIES WITH REGARD TO
  12. THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  13. FITNESS, IN NO EVENT SHALL LANCE ELLINGHOUSE CENTRUM BE LIABLE
  14. FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  15. WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  16. ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
  17. OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  18.  
  19. Modified by Jack Jansen, CWI, July 1995:
  20. - Use binascii module to do the actual line-by-line conversion
  21. between ascii and binary. This results in a 1000-fold speedup. The C
  22. version is still 5 times faster, though.
  23. - Arguments more compliant with Python standard

XML 远程过程调用

xmlrpc.client 模块包含以下声明:

  1. The XML-RPC client interface is
  2.  
  3. Copyright (c) 1999-2002 by Secret Labs AB
  4. Copyright (c) 1999-2002 by Fredrik Lundh
  5.  
  6. By obtaining, using, and/or copying this software and/or its
  7. associated documentation, you agree that you have read, understood,
  8. and will comply with the following terms and conditions:
  9.  
  10. Permission to use, copy, modify, and distribute this software and
  11. its associated documentation for any purpose and without fee is
  12. hereby granted, provided that the above copyright notice appears in
  13. all copies, and that both that copyright notice and this permission
  14. notice appear in supporting documentation, and that the name of
  15. Secret Labs AB or the author not be used in advertising or publicity
  16. pertaining to distribution of the software without specific, written
  17. prior permission.
  18.  
  19. SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD
  20. TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR
  21. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
  22. DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  23. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
  24. ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
  25. OF THIS SOFTWARE.

test_epoll

test.test_epoll 模块包含以下说明:

  1. Copyright (c) 2001-2006 Twisted Matrix Laboratories.
  2.  
  3. Permission is hereby granted, free of charge, to any person obtaining
  4. a copy of this software and associated documentation files (the
  5. "Software"), to deal in the Software without restriction, including
  6. without limitation the rights to use, copy, modify, merge, publish,
  7. distribute, sublicense, and/or sell copies of the Software, and to
  8. permit persons to whom the Software is furnished to do so, subject to
  9. the following conditions:
  10.  
  11. The above copyright notice and this permission notice shall be
  12. included in all copies or substantial portions of the Software.
  13.  
  14. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  15. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  16. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  17. NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  18. LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  19. OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  20. WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Select kqueue

select 模块关于 kqueue 的接口包含以下声明:

  1. Copyright (c) 2000 Doug White, 2006 James Knight, 2007 Christian Heimes
  2. All rights reserved.
  3.  
  4. Redistribution and use in source and binary forms, with or without
  5. modification, are permitted provided that the following conditions
  6. are met:
  7. 1. Redistributions of source code must retain the above copyright
  8. notice, this list of conditions and the following disclaimer.
  9. 2. Redistributions in binary form must reproduce the above copyright
  10. notice, this list of conditions and the following disclaimer in the
  11. documentation and/or other materials provided with the distribution.
  12.  
  13. THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND
  14. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  15. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  16. ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  17. FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  18. DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  19. OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  20. HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  21. LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  22. OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. SUCH DAMAGE.

SipHash24

Python/pyhash.c 文件包含 Marek Majkowski' 对 Dan Bernstein 的SipHash24 算法的实现。它包含以下声明:

  1. <MIT License>
  2. Copyright (c) 2013 Marek Majkowski <marek@popcount.org>
  3.  
  4. Permission is hereby granted, free of charge, to any person obtaining a copy
  5. of this software and associated documentation files (the "Software"), to deal
  6. in the Software without restriction, including without limitation the rights
  7. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8. copies of the Software, and to permit persons to whom the Software is
  9. furnished to do so, subject to the following conditions:
  10.  
  11. The above copyright notice and this permission notice shall be included in
  12. all copies or substantial portions of the Software.
  13. </MIT License>
  14.  
  15. Original location:
  16. https://github.com/majek/csiphash/
  17.  
  18. Solution inspired by code from:
  19. Samuel Neves (supercop/crypto_auth/siphash24/little)
  20. djb (supercop/crypto_auth/siphash24/little2)
  21. Jean-Philippe Aumasson (https://131002.net/siphash/siphash24.c)

strtod 和 dtoa

Python/dtoa.c 文件提供了 C 函数 dtoa 和 strtod,用于 C 双精度数值和字符串之间的转换,它派生自由 David M. Gay 编写的同名文件。 目前该文件可在 https://web.archive.org/web/20220517033456/http://www.netlib.org/fp/dtoa.c 访问。 在 2009 年 3 月 16 日 检索到的原始文件包含以下版权和许可声明:

  1. /***************************************************************
  2. * The author of this software is David M. Gay. Copyright (c) 1991, 2000, 2001 by Lucent Technologies. Permission to use, copy, modify, and distribute this software for any
  3. purpose without fee is hereby granted, provided that this entire notice
  4. is included in all copies of any software which is or includes a copy
  5. or modification of this software and in all copies of the supporting
  6. documentation for such software. THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
  7. WARRANTY. IN PARTICULAR, NEITHER THE AUTHOR NOR LUCENT MAKES ANY
  8. REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
  9. * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE. **************************************************************/

OpenSSL

如果操作系统有支持则 hashlib, posixssl 会使用 OpenSSL 库来提升性能。 此外,Python 的 Windows 和 macOS 安装程序可能会包括 OpenSSL 库的副本,所以我们也在此包括一份 OpenSSL 许可证的副本。 对于 OpenSSL 3.0 发布版,及其后续衍生版本,均使用 Apache License v2:

  1. Apache License
  2. Version 2.0, January 2004
  3. https://www.apache.org/licenses/
  4.  
  5. TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
  6.  
  7. 1. Definitions.
  8.  
  9. "License" shall mean the terms and conditions for use, reproduction,
  10. and distribution as defined by Sections 1 through 9 of this document.
  11.  
  12. "Licensor" shall mean the copyright owner or entity authorized by
  13. the copyright owner that is granting the License.
  14.  
  15. "Legal Entity" shall mean the union of the acting entity and all
  16. other entities that control, are controlled by, or are under common
  17. control with that entity. For the purposes of this definition,
  18. "control" means (i) the power, direct or indirect, to cause the
  19. direction or management of such entity, whether by contract or
  20. otherwise, or (ii) ownership of fifty percent (50%) or more of the
  21. outstanding shares, or (iii) beneficial ownership of such entity.
  22.  
  23. "You" (or "Your") shall mean an individual or Legal Entity
  24. exercising permissions granted by this License.
  25.  
  26. "Source" form shall mean the preferred form for making modifications,
  27. including but not limited to software source code, documentation
  28. source, and configuration files.
  29.  
  30. "Object" form shall mean any form resulting from mechanical
  31. transformation or translation of a Source form, including but
  32. not limited to compiled object code, generated documentation,
  33. and conversions to other media types.
  34.  
  35. "Work" shall mean the work of authorship, whether in Source or
  36. Object form, made available under the License, as indicated by a
  37. copyright notice that is included in or attached to the work
  38. (an example is provided in the Appendix below).
  39.  
  40. "Derivative Works" shall mean any work, whether in Source or Object
  41. form, that is based on (or derived from) the Work and for which the
  42. editorial revisions, annotations, elaborations, or other modifications
  43. represent, as a whole, an original work of authorship. For the purposes
  44. of this License, Derivative Works shall not include works that remain
  45. separable from, or merely link (or bind by name) to the interfaces of,
  46. the Work and Derivative Works thereof.
  47.  
  48. "Contribution" shall mean any work of authorship, including
  49. the original version of the Work and any modifications or additions
  50. to that Work or Derivative Works thereof, that is intentionally
  51. submitted to Licensor for inclusion in the Work by the copyright owner
  52. or by an individual or Legal Entity authorized to submit on behalf of
  53. the copyright owner. For the purposes of this definition, "submitted"
  54. means any form of electronic, verbal, or written communication sent
  55. to the Licensor or its representatives, including but not limited to
  56. communication on electronic mailing lists, source code control systems,
  57. and issue tracking systems that are managed by, or on behalf of, the
  58. Licensor for the purpose of discussing and improving the Work, but
  59. excluding communication that is conspicuously marked or otherwise
  60. designated in writing by the copyright owner as "Not a Contribution."
  61.  
  62. "Contributor" shall mean Licensor and any individual or Legal Entity
  63. on behalf of whom a Contribution has been received by Licensor and
  64. subsequently incorporated within the Work.
  65.  
  66. 2. Grant of Copyright License. Subject to the terms and conditions of
  67. this License, each Contributor hereby grants to You a perpetual,
  68. worldwide, nonexclusive, no-charge, royalty-free, irrevocable
  69. copyright license to reproduce, prepare Derivative Works of,
  70. publicly display, publicly perform, sublicense, and distribute the
  71. Work and such Derivative Works in Source or Object form.
  72.  
  73. 3. Grant of Patent License. Subject to the terms and conditions of
  74. this License, each Contributor hereby grants to You a perpetual,
  75. worldwide, nonexclusive, no-charge, royalty-free, irrevocable
  76. (except as stated in this section) patent license to make, have made,
  77. use, offer to sell, sell, import, and otherwise transfer the Work,
  78. where such license applies only to those patent claims licensable
  79. by such Contributor that are necessarily infringed by their
  80. Contribution(s) alone or by combination of their Contribution(s)
  81. with the Work to which such Contribution(s) was submitted. If You
  82. institute patent litigation against any entity (including a
  83. cross-claim or counterclaim in a lawsuit) alleging that the Work
  84. or a Contribution incorporated within the Work constitutes direct
  85. or contributory patent infringement, then any patent licenses
  86. granted to You under this License for that Work shall terminate
  87. as of the date such litigation is filed.
  88.  
  89. 4. Redistribution. You may reproduce and distribute copies of the
  90. Work or Derivative Works thereof in any medium, with or without
  91. modifications, and in Source or Object form, provided that You
  92. meet the following conditions:
  93.  
  94. (a) You must give any other recipients of the Work or
  95. Derivative Works a copy of this License; and
  96.  
  97. (b) You must cause any modified files to carry prominent notices
  98. stating that You changed the files; and
  99.  
  100. (c) You must retain, in the Source form of any Derivative Works
  101. that You distribute, all copyright, patent, trademark, and
  102. attribution notices from the Source form of the Work,
  103. excluding those notices that do not pertain to any part of
  104. the Derivative Works; and
  105.  
  106. (d) If the Work includes a "NOTICE" text file as part of its
  107. distribution, then any Derivative Works that You distribute must
  108. include a readable copy of the attribution notices contained
  109. within such NOTICE file, excluding those notices that do not
  110. pertain to any part of the Derivative Works, in at least one
  111. of the following places: within a NOTICE text file distributed
  112. as part of the Derivative Works; within the Source form or
  113. documentation, if provided along with the Derivative Works; or,
  114. within a display generated by the Derivative Works, if and
  115. wherever such third-party notices normally appear. The contents
  116. of the NOTICE file are for informational purposes only and
  117. do not modify the License. You may add Your own attribution
  118. notices within Derivative Works that You distribute, alongside
  119. or as an addendum to the NOTICE text from the Work, provided
  120. that such additional attribution notices cannot be construed
  121. as modifying the License.
  122.  
  123. You may add Your own copyright statement to Your modifications and
  124. may provide additional or different license terms and conditions
  125. for use, reproduction, or distribution of Your modifications, or
  126. for any such Derivative Works as a whole, provided Your use,
  127. reproduction, and distribution of the Work otherwise complies with
  128. the conditions stated in this License.
  129.  
  130. 5. Submission of Contributions. Unless You explicitly state otherwise,
  131. any Contribution intentionally submitted for inclusion in the Work
  132. by You to the Licensor shall be under the terms and conditions of
  133. this License, without any additional terms or conditions.
  134. Notwithstanding the above, nothing herein shall supersede or modify
  135. the terms of any separate license agreement you may have executed
  136. with Licensor regarding such Contributions.
  137.  
  138. 6. Trademarks. This License does not grant permission to use the trade
  139. names, trademarks, service marks, or product names of the Licensor,
  140. except as required for reasonable and customary use in describing the
  141. origin of the Work and reproducing the content of the NOTICE file.
  142.  
  143. 7. Disclaimer of Warranty. Unless required by applicable law or
  144. agreed to in writing, Licensor provides the Work (and each
  145. Contributor provides its Contributions) on an "AS IS" BASIS,
  146. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
  147. implied, including, without limitation, any warranties or conditions
  148. of TITLE, NONINFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
  149. PARTICULAR PURPOSE. You are solely responsible for determining the
  150. appropriateness of using or redistributing the Work and assume any
  151. risks associated with Your exercise of permissions under this License.
  152.  
  153. 8. Limitation of Liability. In no event and under no legal theory,
  154. whether in tort (including negligence), contract, or otherwise,
  155. unless required by applicable law (such as deliberate and grossly
  156. negligent acts) or agreed to in writing, shall any Contributor be
  157. liable to You for damages, including any direct, indirect, special,
  158. incidental, or consequential damages of any character arising as a
  159. result of this License or out of the use or inability to use the
  160. Work (including but not limited to damages for loss of goodwill,
  161. work stoppage, computer failure or malfunction, or any and all
  162. other commercial damages or losses), even if such Contributor
  163. has been advised of the possibility of such damages.
  164.  
  165. 9. Accepting Warranty or Additional Liability. While redistributing
  166. the Work or Derivative Works thereof, You may choose to offer,
  167. and charge a fee for, acceptance of support, warranty, indemnity,
  168. or other liability obligations and/or rights consistent with this
  169. License. However, in accepting such obligations, You may act only
  170. on Your own behalf and on Your sole responsibility, not on behalf
  171. of any other Contributor, and only if You agree to indemnify,
  172. defend, and hold each Contributor harmless for any liability
  173. incurred by, or claims asserted against, such Contributor by reason
  174. of your accepting any such warranty or additional liability.
  175.  
  176. END OF TERMS AND CONDITIONS

expat

pyexpat 扩展是使用所包括的 expat 源副本来构建的,除非配置了 --with-system-expat:

  1. Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd
  2. and Clark Cooper
  3.  
  4. Permission is hereby granted, free of charge, to any person obtaining
  5. a copy of this software and associated documentation files (the
  6. "Software"), to deal in the Software without restriction, including
  7. without limitation the rights to use, copy, modify, merge, publish,
  8. distribute, sublicense, and/or sell copies of the Software, and to
  9. permit persons to whom the Software is furnished to do so, subject to
  10. the following conditions:
  11.  
  12. The above copyright notice and this permission notice shall be included
  13. in all copies or substantial portions of the Software.
  14.  
  15. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  16. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  17. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  18. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  19. CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  20. TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  21. SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

libffi

作为 ctypes 模块下层的 _ctypes C 扩展是使用包括了 libffi 源的副本构建的,除非构建时配置了 --with-system-libffi:

  1. Copyright (c) 1996-2008 Red Hat, Inc and others.
  2.  
  3. Permission is hereby granted, free of charge, to any person obtaining
  4. a copy of this software and associated documentation files (the
  5. "Software"), to deal in the Software without restriction, including
  6. without limitation the rights to use, copy, modify, merge, publish,
  7. distribute, sublicense, and/or sell copies of the Software, and to
  8. permit persons to whom the Software is furnished to do so, subject to
  9. the following conditions:
  10.  
  11. The above copyright notice and this permission notice shall be included
  12. in all copies or substantial portions of the Software.
  13.  
  14. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  15. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  16. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  17. NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  18. HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  19. WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  20. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  21. DEALINGS IN THE SOFTWARE.

zlib

如果系统上找到的zlib版本太旧而无法用于构建,则使用包含 zlib源代码的拷贝来构建 zlib 扩展:

  1. Copyright (C) 1995-2011 Jean-loup Gailly and Mark Adler
  2.  
  3. This software is provided 'as-is', without any express or implied
  4. warranty. In no event will the authors be held liable for any damages
  5. arising from the use of this software.
  6.  
  7. Permission is granted to anyone to use this software for any purpose,
  8. including commercial applications, and to alter it and redistribute it
  9. freely, subject to the following restrictions:
  10.  
  11. 1. The origin of this software must not be misrepresented; you must not
  12. claim that you wrote the original software. If you use this software
  13. in a product, an acknowledgment in the product documentation would be
  14. appreciated but is not required.
  15.  
  16. 2. Altered source versions must be plainly marked as such, and must not be
  17. misrepresented as being the original software.
  18.  
  19. 3. This notice may not be removed or altered from any source distribution.
  20.  
  21. Jean-loup Gailly Mark Adler
  22. jloup@gzip.org madler@alumni.caltech.edu

cfuhash

tracemalloc 使用的哈希表的实现基于 cfuhash项目:

  1. Copyright (c) 2005 Don Owens
  2. All rights reserved.
  3.  
  4. This code is released under the BSD license:
  5.  
  6. Redistribution and use in source and binary forms, with or without
  7. modification, are permitted provided that the following conditions
  8. are met:
  9.  
  10. Redistributions of source code must retain the above copyright
  11. notice, this list of conditions and the following disclaimer.
  12. Redistributions in binary form must reproduce the above
  13. copyright notice, this list of conditions and the following
  14. disclaimer in the documentation and/or other materials provided
  15. with the distribution.
  16.  
  17. * Neither the name of the author nor the names of its
  18. contributors may be used to endorse or promote products derived
  19. from this software without specific prior written permission.
  20.  
  21. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  22. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  23. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  24. FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  25. COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  26. INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  27. (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  28. SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  29. HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  30. STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  31. ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
  32. OF THE POSSIBILITY OF SUCH DAMAGE.

libmpdec

作为 decimal 模块下层的 _decimal C 扩展是使用包括了 libmpdec 库的副本构建的,除非构建时配置了 --with-system-libmpdec:

  1. Copyright (c) 2008-2020 Stefan Krah. All rights reserved.
  2.  
  3. Redistribution and use in source and binary forms, with or without
  4. modification, are permitted provided that the following conditions
  5. are met:
  6.  
  7. 1. Redistributions of source code must retain the above copyright
  8. notice, this list of conditions and the following disclaimer.
  9.  
  10. 2. Redistributions in binary form must reproduce the above copyright
  11. notice, this list of conditions and the following disclaimer in the
  12. documentation and/or other materials provided with the distribution.
  13.  
  14. THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND
  15. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  16. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  17. ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  18. FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  19. DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  20. OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  21. HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  22. LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  23. OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  24. SUCH DAMAGE.

W3C C14N 测试套件

test 包中的 C14N 2.0 测试集 (Lib/test/xmltestdata/c14n-20/) 提取自 W3C 网站 https://www.w3.org/TR/xml-c14n2-testcases/ 并根据 3 条款版 BSD 许可证发行:

  1. Copyright (c) 2013 W3C(R) (MIT, ERCIM, Keio, Beihang),
  2. All Rights Reserved.
  3.  
  4. Redistribution and use in source and binary forms, with or without
  5. modification, are permitted provided that the following conditions
  6. are met:
  7.  
  8. * Redistributions of works must retain the original copyright notice,
  9. this list of conditions and the following disclaimer.
  10. Redistributions in binary form must reproduce the original copyright
  11. notice, this list of conditions and the following disclaimer in the
  12. documentation and/or other materials provided with the distribution.
  13. Neither the name of the W3C nor the names of its contributors may be
  14. used to endorse or promote products derived from this work without
  15. specific prior written permission.
  16.  
  17. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  18. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  19. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  20. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  21. OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  22. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  23. LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  24. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  25. THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  27. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

mimalloc

MIT 许可证:

  1. Copyright (c) 2018-2021 Microsoft Corporation, Daan Leijen
  2.  
  3. Permission is hereby granted, free of charge, to any person obtaining a copy
  4. of this software and associated documentation files (the "Software"), to deal
  5. in the Software without restriction, including without limitation the rights
  6. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7. copies of the Software, and to permit persons to whom the Software is
  8. furnished to do so, subject to the following conditions:
  9.  
  10. The above copyright notice and this permission notice shall be included in all
  11. copies or substantial portions of the Software.
  12.  
  13. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  14. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  15. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  16. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  17. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  18. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  19. SOFTWARE.

asyncio

asyncio 模块的某些部分来自 uvloop 0.16 [https://github.com/MagicStack/uvloop/tree/v0.16.0],它是基于 MIT 许可证发行的:

  1. Copyright (c) 2015-2021 MagicStack Inc. http://magic.io
  2.  
  3. Permission is hereby granted, free of charge, to any person obtaining
  4. a copy of this software and associated documentation files (the
  5. "Software"), to deal in the Software without restriction, including
  6. without limitation the rights to use, copy, modify, merge, publish,
  7. distribute, sublicense, and/or sell copies of the Software, and to
  8. permit persons to whom the Software is furnished to do so, subject to
  9. the following conditions:
  10.  
  11. The above copyright notice and this permission notice shall be
  12. included in all copies or substantial portions of the Software.
  13.  
  14. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  15. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  16. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  17. NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  18. LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  19. OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  20. WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Global Unbounded Sequences (GUS)

文件 Python/qsbr.c 改编自 subr_smr.c [https://github.com/freebsd/freebsd-src/blob/main/sys/kern/subr_smr.c] 中 FreeBSD 的 "Global Unbounded Sequences" 安全内存回收方案。 该文件是基于 2 条款 BSD 许可证分发的:

  1. Copyright (c) 2019,2020 Jeffrey Roberson <jeff@FreeBSD.org>
  2.  
  3. Redistribution and use in source and binary forms, with or without
  4. modification, are permitted provided that the following conditions
  5. are met:
  6. 1. Redistributions of source code must retain the above copyright
  7. notice unmodified, this list of conditions, and the following
  8. disclaimer.
  9. 2. Redistributions in binary form must reproduce the above copyright
  10. notice, this list of conditions and the following disclaimer in the
  11. documentation and/or other materials provided with the distribution.
  12.  
  13. THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
  14. IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  15. OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  16. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  17. INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  18. NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  19. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  20. THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  21. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  22. THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.