Commit Graph

103246 Commits

Author SHA1 Message Date
Miss Islington (bot) ff2a5c0204 Doc: Update pickle.rst (GH-14128) (GH-16015)
* Edits for readability and grammar
(cherry picked from commit 362f5350eb)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
2019-09-12 09:19:33 +01:00
Paul Ganssle b7a310d865 bpo-38096: Clean up the "struct sequence" / "named tuple" docs (GH-15895) (GH-15962) 2019-09-11 19:50:51 -07:00
Miss Islington (bot) 8892a1d685
closes bpo-38124: Fix bounds check in PyState_AddModule. (GH-16007)
The >=, checking whether a module index was in already in the module-by-index list, needed to be strict.

Also, fold nested ifs into one and fix some bad spacing.
(cherry picked from commit 39de95b746)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2019-09-11 17:02:50 -07:00
Miss Islington (bot) bf0c76cdf6 Doc: Fix missing negation. (GH-14640) (GH-15985)
Reported by Hug Capella on docs@.

Automerge-Triggered-By: @matrixise
(cherry picked from commit 1fae844451)

Co-authored-by: Julien Palard <julien@palard.fr>
2019-09-11 19:53:56 +02:00
Miss Islington (bot) e4be7c8ba1 Improve clarity of try-return-finally-return (GH-15677) (GH-15982)
Clarify execution in try-return-finally-return case.
(cherry picked from commit 0cc27417f2)

Co-authored-by: toonarmycaptain <toonarmycaptain@hotmail.com>
2019-09-11 19:42:09 +02:00
Stéphane Wirtel cec68c31e8 [3.7] bpo-38117: Test with OpenSSL 1.1.1d (GH-15983) (GH-15994)
Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit 58ab13479d)

Co-authored-by: Christian Heimes <christian@python.org>


https://bugs.python.org/issue38117



Automerge-Triggered-By: @matrixise
2019-09-11 10:36:06 -07:00
Miss Islington (bot) c62da14776 bpo-37698: Update doc of PyBuffer_ToContiguous (GH-14992) (GH-15998)
https://bugs.python.org/issue37698
(cherry picked from commit 15f5a7527b)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
2019-09-11 19:34:19 +02:00
Miss Islington (bot) 9b46586124
Doc: recursive glob ** follows symlinks to directories (GH-12918)
(cherry picked from commit e24594bfe7)

Co-authored-by: Marc <Marc.Herbert+github@gmail.com>
2019-09-11 10:28:16 -07:00
Miss Islington (bot) c112faff15 bpo-37750: Add doc of PyBuffer_FromContiguous (GH-15988) (GH-15991)
https://bugs.python.org/issue37750

Automerge-Triggered-By: @matrixise
(cherry picked from commit 5a56ce4a0e)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
2019-09-11 19:10:23 +02:00
Miss Islington (bot) d126fbddc9 bpo-37885: venv: Don't produce unbound variable warning on deactivate (GH-15974)
Before, running deactivate from a bash shell configured to treat undefined variables as errors (`set -u`) would produce a warning:

```
$ python3 -m venv test
$ source test/bin/activate
(test) $ deactivate
-bash: $1: unbound variable
```
(cherry picked from commit 5209e586b7)

Co-authored-by: Daniel Abrahamsson <hamsson@gmail.com>
2019-09-11 08:56:27 -07:00
Miss Islington (bot) 195dc142f8 bpo-33187: Document ElementInclude (XInclude) support in ElementTree (GH-8861) (GH-15972)
(cherry picked from commit 97b817eae3)

Co-authored-by: Anjali Bansal <anjali.mca17.du@gmail.com>
2019-09-11 16:36:41 +01:00
Miss Islington (bot) 8a19a91e28
bpo-36634: Fixes activate.bat when existing values contain double quotes (GH-15924)
(cherry picked from commit 574b324bdc)

Co-authored-by: Steve Dower <steve.dower@python.org>
2019-09-11 08:23:07 -07:00
Zachary Ware e58e18dfcd
[3.7] Turn off AppVeyor CI (GH-15929) (GH-15943)
(cherry picked from commit 6f55b0394b)
2019-09-11 15:39:52 +01:00
Miss Islington (bot) c211939948 bpo-36919: make test_source_encoding.test_issue2301 implementation-independent (GH-13639) (GH-15953)
* bpo-36919: make test_issue2301 implementation-independent
(cherry picked from commit b6643dcfc2)

Co-authored-by: Pavel Koneski <pavel.koneski@gmail.com>
2019-09-11 15:36:36 +01:00
Miss Islington (bot) 4c2fa5c474 bpo-33459: Fix "tuple displays" term in Expressions.rst (GH-6760) (GH-15939)
https://bugs.python.org/issue33459

Automerge-Triggered-By: @matrixise
(cherry picked from commit dc26997109)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2019-09-11 15:37:49 +02:00
Miss Islington (bot) 0fd8c0560b bpo-35649: update http client example (GH-11441) (GH-15931)
(cherry picked from commit 62cf698142)

Co-authored-by: Ashwin Ramaswami <aramaswamis@gmail.com>
2019-09-11 15:13:55 +02:00
Miss Islington (bot) f3480ad088
[3.8] bpo-37409: fix relative import with no parent (GH-14956) (GH-15913)
Relative imports use resolve_name to get the absolute target name,
which first seeks the current module's absolute package name from the globals:
If __package__ (and __spec__.parent) are missing then
import uses __name__, truncating the last segment if
the module is a submodule rather than a package __init__.py
(which it guesses from whether __path__ is defined).

The __name__ attempt should fail if there is no parent package (top level modules),
if __name__ is '__main__' (-m entry points), or both (scripts).
That is, if both __name__ has no subcomponents and the module does not seem
to be a package __init__ module then import should fail..
(cherry picked from commit 92420b3e67)

Co-authored-by: Ben Lewis <benjimin@users.noreply.github.com>
(cherry picked from commit 0a6693a469)

Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com>
2019-09-11 05:50:14 -07:00
Vinay Sajip aca878ecf1
[3.7] bpo-35168: Make shlex.punctuation_chars read-only (GH-11631) (GH-15926)
(cherry picked from commit 972cf5c06a)

Co-authored-by: Alex <a.v.shkop@gmail.com>
2019-09-11 13:39:08 +01:00
Miss Islington (bot) 99f0e81f43
bpo-20504 : in cgi.py, fix bug when a multipart/form-data request has… (GH-10638)
* bpo-20504 : in cgi.py, fix bug when a multipart/form-data request has no content-length header

* Add Misc/NEWS.d/next file.

* Add rst formatting for NEWS.d/next file

* Reaplce assert by self.assertEqual
(cherry picked from commit 2d7cacacc3)

Co-authored-by: Pierre Quentel <pierre.quentel@gmail.com>
2019-09-11 05:22:38 -07:00
Miss Islington (bot) 0553369b98
bpo-35066: Make trailing percent test more portable. (GH-15907)
Different libc implementations have different behavior when presented with trailing % in strftime strings. To make test_strftime_trailing_percent more portable, compare the output of datetime.strftime directly to that of time.strftime rather than hardcoding.
(cherry picked from commit f2173ae38f)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2019-09-11 04:51:01 -07:00
Miss Islington (bot) d378fdb10a
bpo-25810: Clarify eval() docs, it does not keywords (GH-15173)
(cherry picked from commit 7a0023e8d1)

Co-authored-by: smokephil <smokephil@gmail.com>
2019-09-11 03:55:29 -07:00
Miss Islington (bot) 3cd147bf59
bpo-37585: Add clarification regarding comparing dict.values() (GH-14954)
(cherry picked from commit 6472ece5a0)

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
2019-09-11 03:45:54 -07:00
Miss Islington (bot) 9210b5826f
bpo-16438: Doc: confusing text regarding numeric precedence corrected (GH-10521)
(cherry picked from commit 4576b5431b)

Co-authored-by: Anjali <anjali30malik@gmail.com>
2019-09-11 03:41:28 -07:00
Miss Islington (bot) 5fe153c21d
bpo-37424: Avoid a hang in subprocess.run timeout output capture (GH-14490)
Fixes a possible hang when using a timeout on subprocess.run() while
capturing output. If the child process spawned its own children or otherwise
connected its stdout or stderr handles with another process, we could hang
after the timeout was reached and our child was killed when attempting to read
final output from the pipes.
(cherry picked from commit 580d2782f7)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2019-09-11 03:05:58 -07:00
Miss Islington (bot) 2a8560ae99 bpo-38034: Fix typo in logging.handlers.rst (GH-15708) (GH-15894)
(cherry picked from commit efd5741ae9)

Co-authored-by: wwuck <301402+wwuck@users.noreply.github.com>
2019-09-11 07:56:50 +01:00
Miss Islington (bot) e0a1561f93
bpo-37574: Mention helper functions for find_spec documentation (GH-14739)
(cherry picked from commit 9cbb97b29e)

Co-authored-by: jdkandersson <51036209+jdkandersson@users.noreply.github.com>
2019-09-10 10:16:03 -07:00
Steve Dower 6a494e77fc
bpo-38089: Move Azure Pipelines to latest VM versions and make macOS tests optional (GH-15851) 2019-09-10 18:06:38 +01:00
Miss Islington (bot) 14514b6e71
Docs: Small tweaks to c-api/introGH-Include_Files (GH-14698)
(cherry picked from commit b6dafe5139)

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
2019-09-10 09:40:32 -07:00
Miss Islington (bot) 075a441fa0
Correct info about "f.read(size)". (GH13852)
In text mode, the "size" parameter indicates the number of characters, not bytes.
(cherry picked from commit faff81c05f)

Co-authored-by: William Andrea <william.j.andrea@gmail.com>
2019-09-10 09:02:40 -07:00
Victor Stinner 494b61aeec
[3.7] bpo-37531: Enhance regrtest multiprocess timeout (GH-15345) (GH-15874)
bpo-37531: Enhance regrtest multiprocess timeout (GH-15345)

* Write a message when killing a worker process
* Put a timeout on the second popen.communicate() call
  (after killing the process)
* Put a timeout on popen.wait() call
* Catch popen.kill() and popen.wait() exceptions

(cherry picked from commit de2d9eed8b)
2019-09-10 17:54:40 +02:00
Miss Islington (bot) 816825e192 bpo-33602: Doc: Remove set and queue references from Data Types (GH-7055) (GH-15876)
(cherry picked from commit 912108891d)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2019-09-10 17:43:11 +02:00
Miss Islington (bot) 756eb849d7 bpo-37913: document that __length_hint__ can return NotImplemented (GH-15383)
(cherry picked from commit ed99bb9ca6)

Co-authored-by: Steve Dower <steve.dower@python.org>
2019-09-10 15:57:16 +01:00
Miss Islington (bot) 9f54feabee
Fix subprocess docstring typo (GH-15812)
(cherry picked from commit 182e1d1f84)

Co-authored-by: Matthias <xmatthias@outlook.com>
2019-09-10 07:48:22 -07:00
Steve Dower aa3b629a09
bpo-37913: document that __length_hint__ can return NotImplemented (GH-15383) 2019-09-10 15:41:58 +01:00
Miss Islington (bot) 4fbe0ee548 Fix calling order of PyEval_InitThreads. (GH-5833)
As described in Doc/c-api/init.rst, PyEval_InitThreads() cannot be called
before Py_Initialize() function.
(cherry picked from commit 9e61066355)

Co-authored-by: Kenta Murata <mrkn@users.noreply.github.com>
2019-09-10 15:37:34 +01:00
Steve Dower 0fccd4ab5b
bpo-38088: Fixes distutils not finding vcruntime140.dll with only v142 toolset installed (GH-15849) 2019-09-10 15:18:02 +01:00
Steve Dower 0d7e6a6d2d
bpo-38087: Fix case sensitivity in test_pathlib and test_ntpath (GH-15850) 2019-09-10 15:17:42 +01:00
Miss Islington (bot) d94b762ce8
closes bpo-25461: Update os.walk() docstring to match the online docs. (GH-11836)
(cherry picked from commit 734f1202a5)

Co-authored-by: Bernt Røskar Brenna <bernt.brenna@gmail.com>
2019-09-10 06:34:03 -07:00
Miss Islington (bot) 122bbf7f8a bpo-21018: added missing documentation about escaping characters for configparser (GH-6137) (GH-15845)
Document how $ and % can be escaped in configparser.
(cherry picked from commit 9a94093189)

Co-authored-by: Arun Persaud <arun@nubati.net>
2019-09-10 15:32:42 +02:00
Michael Felt 61f34f9f63 bpo-34720: Fix test_importlib.test_bad_traverse for AIX (GH-14238) 2019-09-10 14:30:18 +01:00
Miss Islington (bot) 9cbf43adfe
Fix typo in dict object comment (GH-15814)
(cherry picked from commit 359143c686)

Co-authored-by: dalgarno <32097481+dalgarno@users.noreply.github.com>
2019-09-10 03:15:43 -07:00
Steve Dower b4fb2c29f3
bpo-35941: Fix performance regression in SSL certificate code (GH-12610)
Accumulate certificates in a set instead of doing a costly list contain
operation. A Windows cert store can easily contain over hundred
certificates. The old code would result in way over 5,000 comparison
operations

Signed-off-by: Christian Heimes <christian@python.org>
2019-09-10 01:46:40 -07:00
Miss Islington (bot) 64947dc81a
bpo-38077: IDLE no longer adds 'argv' to the user namespace (GH-15818)
This only happened when initializing the subprocess to run a module.
This recent bug only affected 3.7.4 and 3.8.0b2 to 3.8.0b4.
(cherry picked from commit c59295a1ca)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-09-09 20:33:24 -07:00
Victor Stinner 23669330b7
bpo-38006: Avoid closure in weakref.WeakValueDictionary (GH-15641) (GH-15789)
weakref.WeakValueDictionary defines a local remove() function used as
callback for weak references. This function was created with a
closure.  Modify the implementation to avoid the closure.

(cherry picked from commit a2af05a0d3)
2019-09-10 00:31:20 +02:00
Zachary Ware 12228ce41d
[3.7] bpo-34293: Fix PDF documentation paper size (GH-8585) (GH-15817)
The "A4" pdfs were previously the wrong size due to a change in the options in Sphinx 1.5.

See also sphinx-doc/sphinxGH-5235.
(cherry picked from commit b5381f6697)

Authored-by: Jean-François B <jfbu@free.fr>
2019-09-09 23:11:34 +01:00
Miss Islington (bot) 0a86da87da
bpo-36502: Update link to UAX GH-44, the Unicode doc on the UCD. (GH-15301)
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 11:40:03 -07:00
Miss Islington (bot) 328cfde754
bpo-37649: Fix exec_prefix check (GH-14897)
(cherry picked from commit 09090d04ef)

Co-authored-by: Orivej Desh <orivej@gmx.fr>
2019-09-09 11:12:00 -07:00
Miss Islington (bot) 15d263e95c
Fix punctuation in `os.execvpe` docstring. (GH-15051)
(cherry picked from commit fb6807b043)

Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
2019-09-09 10:46:13 -07:00
Miss Islington (bot) b4591ad33a
bpo-35803: Document and test dir=PathLike for tempfile (GH-11644)
Co-Authored-By: Ammar Askar <ammar_askar@hotmail.com>
(cherry picked from commit 370138ba9c)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
2019-09-09 10:33:18 -07:00
Miss Islington (bot) b7bf632d4e
bpo-38059: Using sys.exit() over exit() in inspect.py (GH-15666)
Constants added by the site module like exit() "should not be used in programs"
(cherry picked from commit e3c59a7527)

Co-authored-by: Alan Yee <alanyee@users.noreply.github.com>
2019-09-09 08:19:13 -07:00