历史和许可证

该软件的历史

Python 由荷兰数学和计算机科学研究学会(CWI,见 https://www.cwi.nl/ )的 Guido van Rossum 于 1990 年代初设计,作为一门叫做 ABC 的语言的替代品。尽管 Python 包含了许多来自其他人的贡献,Guido 仍是其主要作者。

1995 年,Guido 在弗吉尼亚州的国家创新研究公司(CNRI,见 https://www.cnri.reston.va.us/ )继续他在 Python 上的工作,并在那里发布了该软件的多个版本。

2000 年五月,Guido 和 Python 核心开发团队转到 BeOpen.com 并组建了 BeOpen PythonLabs 团队。 同年十月,PythonLabs 团队转到 Digital Creations (现为 Zope 公司;见 https://www.zope.org/)。 2001 年,Python 软件基金会 (PSF,见 https://www.python.org/psf/) 成立,这是一个专为拥有 Python 相关知识产权而创建的非营利组织。 Zope 公司现在是 Python 软件基金会的赞助成员。

所有的 Python 版本都是开源的(有关开源的定义参阅 https://opensource.org/ )。历史上,绝大多数 Python 版本是 GPL 兼容的;下表总结了各个版本情况。

发布版本

源自

年份

所有者

GPL 兼容?

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.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 兼容并不意味着 Python 在 GPL 下发布。与 GPL 不同,所有 Python 许可证都允许您分发修改后的版本,而无需开源所做的更改。GPL 兼容的许可证使得 Python 可以与其它在 GPL 下发布的软件结合使用;但其它的许可证则不行。

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

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

Python 软件和文档的使用许可均基于 PSF 许可协议

从 Python 3.8.6 开始,文档中的示例、操作指导和其他代码采用的是 PSF 许可协议和 零条款 BSD 许可 的双重使用许可。

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

用于 PYTHON 3.12.0 的 PSF 许可协议

  1. 1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and
  2. the Individual or Organization ("Licensee") accessing and otherwise using Python
  3. 3.12.0 software in source or binary form and its associated documentation.
  4. 2. Subject to the terms and conditions of this License Agreement, PSF hereby
  5. grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
  6. analyze, test, perform and/or display publicly, prepare derivative works,
  7. distribute, and otherwise use Python 3.12.0 alone or in any derivative
  8. version, provided, however, that PSF's License Agreement and PSF's notice of
  9. copyright, i.e., "Copyright © 2001-2023 Python Software Foundation; All Rights
  10. Reserved" are retained in Python 3.12.0 alone or in any derivative version
  11. prepared by Licensee.
  12. 3. In the event Licensee prepares a derivative work that is based on or
  13. incorporates Python 3.12.0 or any part thereof, and wants to make the
  14. derivative work available to others as provided herein, then Licensee hereby
  15. agrees to include in any such work a brief summary of the changes made to Python
  16. 3.12.0.
  17. 4. PSF is making Python 3.12.0 available to Licensee on an "AS IS" basis.
  18. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF
  19. EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR
  20. WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE
  21. USE OF PYTHON 3.12.0 WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
  22. 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON 3.12.0
  23. FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF
  24. MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 3.12.0, OR ANY DERIVATIVE
  25. THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
  26. 6. This License Agreement will automatically terminate upon a material breach of
  27. its terms and conditions.
  28. 7. Nothing in this License Agreement shall be deemed to create any relationship
  29. of agency, partnership, or joint venture between PSF and Licensee. This License
  30. Agreement does not grant permission to use PSF trademarks or trade name in a
  31. trademark sense to endorse or promote products or services of Licensee, or any
  32. third party.
  33. 8. By copying, installing or otherwise using Python 3.12.0, Licensee agrees
  34. 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. 2. Subject to the terms and conditions of this BeOpen Python License Agreement,
  6. BeOpen hereby grants Licensee a non-exclusive, royalty-free, world-wide license
  7. to reproduce, analyze, test, perform and/or display publicly, prepare derivative
  8. works, distribute, and otherwise use the Software alone or in any derivative
  9. version, provided, however, that the BeOpen Python License is retained in the
  10. Software, alone or in any derivative version prepared by Licensee.
  11. 3. BeOpen is making the Software available to Licensee on an "AS IS" basis.
  12. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF
  13. EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND DISCLAIMS ANY REPRESENTATION OR
  14. WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE
  15. USE OF THE SOFTWARE WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
  16. 4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE SOFTWARE FOR
  17. ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF USING,
  18. MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY DERIVATIVE THEREOF, EVEN IF
  19. ADVISED OF THE POSSIBILITY THEREOF.
  20. 5. This License Agreement will automatically terminate upon a material breach of
  21. its terms and conditions.
  22. 6. This License Agreement shall be governed by and interpreted in all respects
  23. by the law of the State of California, excluding conflict of law provisions.
  24. Nothing in this License Agreement shall be deemed to create any relationship of
  25. agency, partnership, or joint venture between BeOpen and Licensee. This License
  26. Agreement does not grant permission to use BeOpen trademarks or trade names in a
  27. trademark sense to endorse or promote products or services of Licensee, or any
  28. third party. As an exception, the "BeOpen Python" logos available at
  29. http://www.pythonlabs.com/logos.html may be used according to the permissions
  30. granted on that web page.
  31. 7. By copying, installing or otherwise using the software, Licensee agrees to be
  32. 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. 2. Subject to the terms and conditions of this License Agreement, CNRI hereby
  7. grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
  8. analyze, test, perform and/or display publicly, prepare derivative works,
  9. distribute, and otherwise use Python 1.6.1 alone or in any derivative version,
  10. provided, however, that CNRI's License Agreement and CNRI's notice of copyright,
  11. i.e., "Copyright © 1995-2001 Corporation for National Research Initiatives; All
  12. Rights Reserved" are retained in Python 1.6.1 alone or in any derivative version
  13. prepared by Licensee. Alternately, in lieu of CNRI's License Agreement,
  14. Licensee may substitute the following text (omitting the quotes): "Python 1.6.1
  15. is made available subject to the terms and conditions in CNRI's License
  16. Agreement. This Agreement together with Python 1.6.1 may be located on the
  17. internet using the following unique, persistent identifier (known as a handle):
  18. 1895.22/1013. This Agreement may also be obtained from a proxy server on the
  19. internet using the following URL: http://hdl.handle.net/1895.22/1013."
  20. 3. In the event Licensee prepares a derivative work that is based on or
  21. incorporates Python 1.6.1 or any part thereof, and wants to make the derivative
  22. work available to others as provided herein, then Licensee hereby agrees to
  23. include in any such work a brief summary of the changes made to Python 1.6.1.
  24. 4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS" basis. CNRI
  25. MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE,
  26. BUT NOT LIMITATION, CNRI MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY
  27. OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF
  28. PYTHON 1.6.1 WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
  29. 5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON 1.6.1 FOR
  30. ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF
  31. MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1, OR ANY DERIVATIVE
  32. THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
  33. 6. This License Agreement will automatically terminate upon a material breach of
  34. its terms and conditions.
  35. 7. This License Agreement shall be governed by the federal intellectual property
  36. law of the United States, including without limitation the federal copyright
  37. law, and, to the extent such U.S. federal law does not apply, by the law of the
  38. Commonwealth of Virginia, excluding Virginia's conflict of law provisions.
  39. Notwithstanding the foregoing, with regard to derivative works based on Python
  40. 1.6.1 that incorporate non-separable material that was previously distributed
  41. under the GNU General Public License (GPL), the law of the Commonwealth of
  42. Virginia shall govern this License Agreement only as to issues arising under or
  43. with respect to Paragraphs 4, 5, and 7 of this License Agreement. Nothing in
  44. this License Agreement shall be deemed to create any relationship of agency,
  45. partnership, or joint venture between CNRI and Licensee. This License Agreement
  46. does not grant permission to use CNRI trademarks or trade name in a trademark
  47. sense to endorse or promote products or services of Licensee, or any third
  48. party.
  49. 8. By clicking on the "ACCEPT" button where indicated, or by copying, installing
  50. or otherwise using Python 1.6.1, Licensee agrees to be bound by the terms and
  51. 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. Permission to use, copy, modify, and distribute this software and its
  4. documentation for any purpose and without fee is hereby granted, provided that
  5. the above copyright notice appear in all copies and that both that copyright
  6. notice and this permission notice appear in supporting documentation, and that
  7. the name of Stichting Mathematisch Centrum or CWI not be used in advertising or
  8. publicity pertaining to distribution of the software without specific, written
  9. prior permission.
  10. STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
  11. SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  12. EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE FOR ANY SPECIAL, INDIRECT
  13. OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  14. DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
  15. ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  16. SOFTWARE.

ZERO-CLAUSE BSD LICENSE FOR CODE IN THE PYTHON 3.12.0 DOCUMENTATION

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

异步套接字服务

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

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

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

  1. Copyright 2000 by Timothy O'Malley <timo@alum.mit.edu>
  2. All Rights Reserved
  3. Permission to use, copy, modify, and distribute this software
  4. and its documentation for any purpose and without fee is hereby
  5. granted, provided that the above copyright notice appear in all
  6. copies and that both that copyright notice and this permission
  7. notice appear in supporting documentation, and that the name of
  8. Timothy O'Malley not be used in advertising or publicity
  9. pertaining to distribution of the software without specific, written
  10. prior permission.
  11. Timothy O'Malley DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
  12. SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  13. AND FITNESS, IN NO EVENT SHALL Timothy O'Malley BE LIABLE FOR
  14. ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  15. WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  16. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
  17. ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  18. 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. Copyright 2000, Mojam Media, Inc., all rights reserved.
  8. Author: Skip Montanaro
  9. Copyright 1999, Bioreason, Inc., all rights reserved.
  10. Author: Andrew Dalke
  11. Copyright 1995-1997, Automatrix, Inc., all rights reserved.
  12. Author: Skip Montanaro
  13. Copyright 1991-1995, Stichting Mathematisch Centrum, all rights reserved.
  14. Permission to use, copy, modify, and distribute this Python software and
  15. its associated documentation for any purpose without fee is hereby
  16. granted, provided that the above copyright notice appears in all copies,
  17. and that both that copyright notice and this permission notice appear in
  18. supporting documentation, and that the name of neither Automatrix,
  19. Bioreason or Mojam Media be used in advertising or publicity pertaining to
  20. 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. Modified by Jack Jansen, CWI, July 1995:
  19. - Use binascii module to do the actual line-by-line conversion
  20. between ascii and binary. This results in a 1000-fold speedup. The C
  21. version is still 5 times faster, though.
  22. - Arguments more compliant with Python standard

XML 远程过程调用

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

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

test_epoll

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

  1. Copyright (c) 2001-2006 Twisted Matrix Laboratories.
  2. Permission is hereby granted, free of charge, to any person obtaining
  3. a copy of this software and associated documentation files (the
  4. "Software"), to deal in the Software without restriction, including
  5. without limitation the rights to use, copy, modify, merge, publish,
  6. distribute, sublicense, and/or sell copies of the Software, and to
  7. permit persons to whom the Software is furnished to do so, subject to
  8. the following conditions:
  9. The above copyright notice and this permission notice shall be
  10. included in all copies or substantial portions of the Software.
  11. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  12. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  13. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  14. NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  15. LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  16. OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  17. 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. 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, this list of conditions and the following disclaimer.
  8. 2. Redistributions in binary form must reproduce the above copyright
  9. notice, this list of conditions and the following disclaimer in the
  10. documentation and/or other materials provided with the distribution.
  11. THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  12. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  13. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  14. ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  15. FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  16. DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  17. OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  18. HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  19. LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  20. OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. SUCH DAMAGE.

SipHash24

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

  1. <MIT License>
  2. Copyright (c) 2013 Marek Majkowski <marek@popcount.org>
  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. The above copyright notice and this permission notice shall be included in
  10. all copies or substantial portions of the Software.
  11. </MIT License>
  12. Original location:
  13. https://github.com/majek/csiphash/
  14. Solution inspired by code from:
  15. Samuel Neves (supercop/crypto_auth/siphash24/little)
  16. djb (supercop/crypto_auth/siphash24/little2)
  17. 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. *
  3. * The author of this software is David M. Gay.
  4. *
  5. * Copyright (c) 1991, 2000, 2001 by Lucent Technologies.
  6. *
  7. * Permission to use, copy, modify, and distribute this software for any
  8. * purpose without fee is hereby granted, provided that this entire notice
  9. * is included in all copies of any software which is or includes a copy
  10. * or modification of this software and in all copies of the supporting
  11. * documentation for such software.
  12. *
  13. * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
  14. * WARRANTY. IN PARTICULAR, NEITHER THE AUTHOR NOR LUCENT MAKES ANY
  15. * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
  16. * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
  17. *
  18. ***************************************************************/

OpenSSL

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

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

zlib

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

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

cfuhash

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

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

audioop

audioop 模块使用 SoX 项目的 g771.c 文件中的代码为基础:

  1. Programming the AdLib/Sound Blaster
  2. FM Music Chips
  3. Version 2.0 (24 Feb 1992)
  4. Copyright (c) 1991, 1992 by Jeffrey S. Lee
  5. jlee@smylex.uucp
  6. Warranty and Copyright Policy
  7. This document is provided on an "as-is" basis, and its author makes
  8. no warranty or representation, express or implied, with respect to
  9. its quality performance or fitness for a particular purpose. In no
  10. event will the author of this document be liable for direct, indirect,
  11. special, incidental, or consequential damages arising out of the use
  12. or inability to use the information contained within. Use of this
  13. document is at your own risk.
  14. This file may be used and copied freely so long as the applicable
  15. copyright notices are retained, and no modifications are made to the
  16. text of the document. No money shall be charged for its distribution
  17. beyond reasonable shipping, handling and duplication costs, nor shall
  18. proprietary changes be made to this document so that it cannot be
  19. distributed freely. This document may not be included in published
  20. material or commercial packages without the written consent of its
  21. author.