Commit Graph

20498 Commits

Author SHA1 Message Date
Benjamin Peterson 362ede2232
[2.7] Minor C API documentation improvements. (GH-17699)
(cherry picked from commit 5c7ed7550e)

Co-authored-by: William Ayd <william.ayd@icloud.com>
2019-12-24 22:34:38 -06:00
Miss Islington (bot) 864207181d
document threading.Lock.locked() (GH-17427)
(cherry picked from commit fdafa1d0ed)

Co-authored-by: idomic <michael.ido@gmail.com>
2019-12-01 12:12:09 -08:00
Miss Skeleton (bot) 7356e10820
bpo-38557: Improve documentation for list and tuple C API. (GH-16925)
(cherry picked from commit d898d20e8c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2019-10-26 13:04:13 -07:00
Miss Skeleton (bot) 9978a9553b
Fix Zope URL (GH-16880)
(cherry picked from commit dfe726b1ac)

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
2019-10-22 02:48:33 -07:00
Miss Islington (bot) 6c4f841d8c
Update doc switcher list for 3.8.0 (GH-16809)
(cherry picked from commit 3f36043db2)

Co-authored-by: Ned Deily <nad@python.org>
2019-10-19 10:52:07 -07:00
Ashley Whetter dedb99acdb bpo-32758: Warn that ast.parse() and ast.literal_eval() can segfault the interpreter (GH-5960) (GH-16565)
(cherry picked from commit 7a7f100eb3)

Co-authored-by: Brett Cannon <brettcannon@users.noreply.github.com>
2019-10-18 11:00:22 +03:00
Ashley Whetter 8eb27cc354 bpo-32758: Warn that compile() can crash when compiling to an AST object (GH-6043) (GH-16566)
(cherry picked from commit f7a6ff6fca)

Co-authored-by: Brett Cannon <brettcannon@users.noreply.github.com>
2019-10-18 11:00:03 +03:00
Miss Islington (bot) bef8d9acda Doc: 3.8 is now stable. (GH-16790) (GH-16794)
(cherry picked from commit 4504b4500d)

Co-authored-by: Julien Palard <julien@palard.fr>
2019-10-14 18:22:18 -04:00
Benjamin Peterson 0bd59d6552
[2.7] bpo-31036: Allow sphinx and blurb to be found automatically (GH-16638)
Rather than requiring the path to blurb and/or sphinx-build to be specified to the make rule, enhance the Doc/Makefile to look for each first in a virtual environment created by make venv and, if not found, look on the normal process PATH. This allows the Doc/Makefile to take advantage of an installed spinx-build or blurb and, thus, do the right thing most of the time. Also, make the directory for the venv be configurable and document the `make venv` target..
(cherry picked from commit 590665c399)

Co-authored-by: Ned Deily <nad@python.org>
2019-10-07 20:57:05 -07:00
Miss Islington (bot) e78d79c15c
bpo-35036: Remove empty log line in the suspicious.py tool (GH-10024)
Previous to commit ee171a2 the logline was working because of self.info() (now
deprecated) defaults to an empty message.
(cherry picked from commit c3f52a59ce)

Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
2019-10-07 20:43:53 -07:00
Miss Islington (bot) d9b321692b
bpo-31589 : Build PDF using xelatex for better UTF8 support. (GH-3940)
Also addresses doc build failures documented in bpo-32200.
(cherry picked from commit 7324b5ce8e)

Co-authored-by: Julien Palard <julien@palard.fr>
2019-10-07 20:42:51 -07:00
Benjamin Peterson c9a195ec0b
[2.7] Stop using deprecated logging API in Sphinx suspicious checker (GH-16635)
(cherry picked from commit ee171a26c1)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2019-10-07 20:37:45 -07:00
Miss Islington (bot) c47c8ba296 bpo-37904: Edition on python tutorial - section 4 (GH-16169) (GH-16236)
A little change on first paragraph of python tutorial to be more clearly

https://bugs.python.org/issue37904

Automerge-Triggered-By: @ericvsmith
(cherry picked from commit b57481318e)

Co-authored-by: Diego Alberto Barriga Martínez <diegobarriga@protonmail.com>
2019-09-18 06:36:57 -04:00
Benjamin Peterson 58d61efd4c
[2.7] bpo-36502: Update link to UAX GH-44, the Unicode doc on the UCD. (GH-15808)
The link we have points to the version from Unicode 6.0.0, dated 2010.
There have been numerous updates to it since then:
  https://www.unicode.org/reports/tr44/GH-Modifications

Change the link to one that points to the current version. Also, use HTTPS..
(cherry picked from commit 64c6ac74e2)

Co-authored-by: Greg Price <gnprice@gmail.com>
2019-09-09 10:09:58 -07:00
Serhiy Storchaka 2fb6921ab2
[2.7] bpo-34410: Fix a crash in the tee iterator when re-enter it. (GH-15625) (GH-15740)
RuntimeError is now raised in this case.
(cherry picked from commit 526a01467b)
2019-09-09 12:38:05 +03:00
Miss Islington (bot) 98b11e1160
bpo-37823: Fix open() link in telnetlib doc (GH-15281)
Fixed wrong link to Telnet.open() method in telnetlib documentation.
(cherry picked from commit e0b6117e27)

Co-authored-by: Michael Anckaert <michael.anckaert@sinax.be>
2019-08-21 04:52:05 -07:00
David H 35f9bccd81 [2.7] bpo-37730: Fix usage of NotImplemented instead of NotImplementedError in docs. (GH-15062). (GH-15133)
(cherry picked from commit ed5e8e06cb)

Co-authored-by: David H <dheiberg@mozilla.com>
2019-08-05 12:19:26 +03:00
Miss Islington (bot) 46c2eff5ad bpo-34369: make kqueue.control() docs better reflect that timeout is positional-only (GH-9499)
(cherry picked from commit 79042ac434)

Co-authored-by: Tal Einat <taleinat@gmail.com>
2019-07-11 17:17:08 +03:00
Miss Islington (bot) 0517375c44
Document default parameter of .seek() in the signature. (GH-14691)
(cherry picked from commit 2a3d4d9c53)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2019-07-10 19:49:59 -07:00
Miss Islington (bot) 00bf4d64ec
bpo-37513: Change ValueError to TypeError in an example in ctypes doc (GH-14615)
(cherry picked from commit f6cdd3ff68)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
2019-07-07 08:59:14 -07:00
Miss Islington (bot) dd3862e167 bpo-37487: Fix PyList_GetItem index description. (GH-14623) (GH-14626)
0 is a legal index.
(cherry picked from commit f8709e804d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-07-06 17:55:41 -04:00
Miss Islington (bot) 55270d09c2
bpo-37149: Replace dead link for online Tkinter reference (GH-14616)
Also fix a name misspelling.
(cherry picked from commit 45bc61b971)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-07-06 00:04:53 -07:00
Miss Islington (bot) bc60c47169
[2.7] bpo-30754: Document textwrap.dedent blank line behavior. (GH-14469) (GH-14475)
* Added documentation for textwrap.dedent behavior.
(cherry picked from commit eb97b9211e)


Co-authored-by: tmblweed <tmblweed@users.noreply.github.com>


https://bugs.python.org/issue30754
2019-06-29 21:41:55 -07:00
Alex Gaynor eb8b55927b [2.7] Update link in colorsys docs to be https (GH-14062) (GH-14110) 2019-06-17 18:41:44 -07:00
Zackery Spytz 2bfc2dc214 [2.7] bpo-37170: Fix the cast on error in PyLong_AsUnsignedLongLongMask() (GH-13860) (GH-13898)
(cherry picked from commit dc2476500d)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2019-06-07 18:22:56 +02:00
Anthony Sottile 20093b3adf Update outdated reference to Mercurial (GH-12857) 2019-06-04 20:19:36 -04:00
Miss Islington (bot) 49832e60c8
Doc: Python 3.9 in sidebar and version switcher. (GH-13824)
(cherry picked from commit 59e7bbcaa4)

Co-authored-by: Julien Palard <julien@palard.fr>
2019-06-04 16:21:08 -07:00
Hai Shi 103b8d9f91 [2.7] bpo-33071: remove outdated PyPI docs (GH-13087) (GH-13584)
Patch by Kojo Idrissa.
(cherry picked from commit 1b4abcf302)

Co-authored-by: Kojo Idrissa <kojoidrissa@users.noreply.github.com>


https://bugs.python.org/issue33071
2019-05-29 10:05:26 -07:00
Julien Palard 8ab24b2ebc [2.7] bpo-24712: Doc: Make sidebar sticky using browser support. (GH-13179)
Patch by Mike Taylor.
2019-05-08 09:32:07 -04:00
Miss Islington (bot) 3e5c4a7c80
closes bpo-35329: Change 'Package' to 'package' in accordance with PEP8. (GH-13008)
(cherry picked from commit ee0309f3d8)

Co-authored-by: Utkarsh Gupta <guptautkarsh2102@gmail.com>
2019-04-29 19:25:35 -07:00
Inada Naoki 4e8e8aabc6
bpo-30134: fix BytesWarning doc, docstring and message (GH-12739) 2019-04-09 21:49:49 +09:00
Inada Naoki 87ed1beb3e
bpo-30134: add BytesWarning in warnings.rst (GH-12738) 2019-04-09 16:00:51 +09:00
cocoatomo d012d64b6a bpo-30134: add an explanation of BytesWarning (GH-1249) 2019-04-09 14:43:11 +09:00
Miss Islington (bot) 6cbb4c0795
bpo-33832: Add "magic method" glossary entry (GH-7630)
(cherry picked from commit f760610bdd)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2019-03-26 18:26:14 -07:00
Miss Islington (bot) 5a3316931c
[2.7] bpo-34203: FAQ: improve wording of paragraph about 2.x vs. 3.x (GH-9821) (GH-12568)
(cherry picked from commit 6cd658b1a5)


Co-authored-by: Tal Einat <taleinat+github@gmail.com>


https://bugs.python.org/issue34203
2019-03-26 14:17:16 -07:00
Miss Islington (bot) bd96393cda
bpo-34085: Improve wording on classmethod/staticmethod (GH-8228)
* bpo-34085: Improve wording on classmethod/staticmethod

* Address comments from Éric

* Address comments from Éric
(cherry picked from commit 548cb6060a)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2019-03-25 15:58:40 -07:00
Julien Palard 07b8018d75
[2.7] bpo-35564: add master_doc='contents' to conf.py (GH-12462)
(cherry picked from commit fc8284e220)

Co-authored-by: Jean-François B <jfbu@free.fr>
2019-03-20 10:40:59 +01:00
Julien Palard 869652b426
[2.7] bpo-35605: Fix documentation build for sphinx<1.6 (GH-12413)
(cherry picked from commit dfc8fc15fa989acba3c372572e52bbcb5ab38a37)
2019-03-18 19:11:30 +01:00
Steve Dower e37ef41289
bpo-36216: Add check for characters in netloc that normalize to separators (GH-12201) 2019-03-07 09:08:45 -08:00
Miss Islington (bot) 68041e0f6b
Fix the documentation for set.copy() (GH-12176)
Remove 's' mention as there's no argument.
(cherry picked from commit e942e7b5c9)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2019-03-06 21:29:48 -08:00
Stéphane Wirtel 84772e0ab4 [2.7] bpo-36019: Use pythontest.net in urllib network tests (GH-11941) (GH-12177)
Use test_support.TEST_HTTP_URL (pythontest.net) instead of http://www.example.com/.
2019-03-05 15:18:58 +01:00
Miss Islington (bot) a588343390
Document the surprising sideeffect PyErr_Print(). (GH-12081)
Did you know an API documented as printing the pending traceback would sometimes exit the process?

You do now.
(cherry picked from commit 4173772031)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2019-02-27 15:45:57 -08:00
Ned Deily 60ef9b05de
Update FAQ to point to Infrastructure Team website. (GH-12079) 2019-02-27 17:43:13 -05:00
Alan Grgic c7be55208b bpo-36089: Fix formatting/spelling on SimpleHTTPServer docs. (GH-11995) 2019-02-23 07:16:09 +02:00
Miss Islington (bot) 6ee41793d2 bpo-35584: Clarify role of caret in a class class (GH-11946) (GH-11948)
https://bugs.python.org/issue35584
(cherry picked from commit 3bacf61265)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2019-02-19 12:26:11 -08:00
Stéphane Wirtel c611db4942 [2.7] bpo-35126: Fix a mistake in FAQ about converting number to string (GH-11911)
https://bugs.python.org/issue35126
2019-02-19 01:26:02 -08:00
stratakis 2149a9ad7a [2.7] bpo-32947: Fixes for TLS 1.3 and OpenSSL 1.1.1 (GH-8761) (GH-11876)
Backport of TLS 1.3 related fixes from 3.7.

Misc fixes and workarounds for compatibility with OpenSSL 1.1.1 from git
master and TLS 1.3 support. With OpenSSL 1.1.1, Python negotiates TLS 1.3 by
default. Some test cases only apply to TLS 1.2.

OpenSSL 1.1.1 has added a new option OP_ENABLE_MIDDLEBOX_COMPAT for TLS
1.3. The feature is enabled by default for maximum compatibility with
broken middle boxes. Users should be able to disable the hack and CPython's test suite needs
it to verify default options

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 2a4ee8aa01)
2019-02-15 18:27:44 +01:00
stratakis b8eaec697a [2.7] bpo-28043: improved default settings for SSLContext (GH-10608)
The options OP_NO_COMPRESSION, OP_CIPHER_SERVER_PREFERENCE,
OP_SINGLE_DH_USE, OP_SINGLE_ECDH_USE, OP_NO_SSLv2 (except
for PROTOCOL_SSLv2), and OP_NO_SSLv3 (except for PROTOCOL_SSLv3)
are set by default. The initial cipher suite list contains only
HIGH ciphers, no NULL ciphers and MD5 ciphers (except for PROTOCOL_SSLv2).

(cherry picked from commit 358cfd426c)
2019-02-15 15:24:11 +01:00
stratakis c49f63c176 [2.7] bpo-33570: TLS 1.3 ciphers for OpenSSL 1.1.1 (GH-6976) (GH-8760) (GH-10607)
Change TLS 1.3 cipher suite settings for compatibility with OpenSSL
1.1.1-pre6 and newer. OpenSSL 1.1.1 will have TLS 1.3 cipers enabled by
default.

Also update multissltests to test with latest OpenSSL.

Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit 3e630c541b)
Co-authored-by: Christian Heimes <christian@python.org>
2019-02-15 14:17:12 +01:00
Miss Islington (bot) 2f1a317d5f
Doc sidebar: 3.6 has moved to security-fix mode. (GH-11810)
(cherry picked from commit 9db56fb8fa)

Co-authored-by: Julien Palard <julien@palard.fr>
2019-02-10 13:43:52 -08:00