summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-6135: Fix subprocess.check_output doc to mention changes in 3.6 ↵Miss Islington (bot)2018-02-071-0/+3
| | | | | | | | (GH-5564) (GH-5573) Fixes the documentation for `subprocess.check_output()` not mentioning that the encoding and errors parameters were added in 3.6. (cherry picked from commit fc1ce810f1da593648b4d19e7d582a235ec1dd37) Co-authored-by: Brice Gros <brice-gros@users.noreply.github.com>
* bpo-32777: Fix _Py_set_inheritable async-safety in subprocess (GH-5560) ↵Miss Islington (bot)2018-02-064-7/+26
| | | | | | | | | | | | (GH-5563) Fix a rare but potential pre-exec child process deadlock in subprocess on POSIX systems when marking file descriptors inheritable on exec in the child process. This bug appears to have been introduced in 3.4 with the inheritable file descriptors support. This also changes Python/fileutils.c `set_inheritable` to use the "slow" two `fcntl` syscall path instead of the "fast" single `ioctl` syscall path when asked to be async signal safe (by way of being asked not to raise exceptions). `ioctl` is not a POSIX async-signal-safe approved function. ref: http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html (cherry picked from commit c1e46e94de38a92f98736af9a42d89c3975a9919) Co-authored-by: Alexey Izbyshev <izbyshev@users.noreply.github.com>
* bpo-30928: IDLE - update NEWS.txt [GH-5539] (GH-5545)Terry Jan Reedy2018-02-051-3/+6
| | | | | Add entry for uniform lower context; add 'since' to be explicit. (cherry picked from commit 05e806767b857b1eab838e712828e3a7d57cabf1)
* [3.6] bpo-8722: Document __getattr__ behavior with AttributeError in ↵Miss Islington (bot)2018-02-052-4/+8
| | | | | | | | | | property (GH-5542) When `__getattr__` is implemented, attribute lookup will always fall back to that, even if the initial failure comes from `__getattribute__` or a descriptor's `__get__` method (including property methods). (cherry picked from commit d1f318105b8781b01f3507d5cb0fd841b977d5f2) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-32765: Update configdialog General tab create page docstring (GH-5529) ↵Miss Islington (bot)2018-02-052-0/+17
| | | | | | | | (GH-5538) Add new entries to the widget list. (cherry picked from commit 845d86485e35a26478aedb3dc127d632fdc65759) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* Fix typo -- missing "not" (GH-5528) (GH-5531)Miss Islington (bot)2018-02-041-1/+1
|
* bpo-32720: Fixed the definition for width and precision in format ↵Miss Islington (bot)2018-02-041-2/+2
| | | | | | | | mini-language doc (GH-5482) (GH-5525) Changed the definition of width and precision from "integer" to "digit+" in format mini-language doc. (cherry picked from commit 8b5fa289fdb04b6b919cf95fa99246aa872e47a8) Co-authored-by: nathankerr96 <nathankerr96@gmail.com>
* [3.6] bpo-32746: Fix multiple typos (GH-5144) (GH-5522)Terry Jan Reedy2018-02-0417-24/+23
| | | | | | | | | Fix typos found by codespell in docs, docstrings, and comments. Fixes for the following files were in post-3.6 code and not backported: Lib/ctypes/_aix.py (new), Lib/test/test_concurrent_futures.py, Modules/_asynciomodule.c, Modules/_pickle.c, Objects/obmalloc.c. (cherry picked from commit c3d9508ff22ece9a96892b628dd5813e2fb0cd80)
* Update Doc build for split off of 3.7 branchNed Deily2018-02-032-2/+4
|
* bpo-32739: Show default value for rotate() (GH-5485) (GH-5515)Miss Islington (bot)2018-02-031-4/+7
| | | | | (cherry picked from commit 589c718a8e3bde017350f248f7f1c009240eb52b) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* [3.6] bpo-30928: prepare idlelib/NEWS.txt for 3.6.5 entries. (#5508)Terry Jan Reedy2018-02-031-3/+13
| | | | Add 3.6.4 and 3.6.5 headers; move 3.6.3 header below 3.6.4 entries; fix dates.
* [3.6] bpo-32303 - Consistency fixes for namespace loaders (GH-5481) (#5504)Barry Warsaw2018-02-039-1439/+1473
| | | | | | | | | | * Make sure ``__spec__.loader`` matches ``__loader__`` for namespace packages. * Make sure ``__spec__.origin` matches ``__file__`` for namespace packages. https://bugs.python.org/issue32303 https://bugs.python.org/issue32305. (cherry picked from commit bbbcf8693b876daae4469765aa62f8924f39a7d2) Co-authored-by: Barry Warsaw <barry@python.org>
* [3.6] bpo-32734: Fix asyncio.Lock multiple acquire safety issue (GH-5466) ↵Bar Harel2018-02-024-10/+75
| | | | | | | (#5502) (cherry picked from commit d41e9e0952393e64f2f9756d778553d704191086)
* [3.6] bpo-32614: Modify re examples to use a raw string to prevent wa… ↵Terry Jan Reedy2018-02-024-8/+26
| | | | | | | | | …rning (GH-5265) (GH-5500) Modify RE examples in documentation to use raw strings to prevent DeprecationWarning. Add text to REGEX HOWTO to highlight the deprecation. Approved by Serhiy Storchaka. (cherry picked from commit 66771422d0541289d0b1287bc3c28e8b5609f6b4)
* bpo-32674: Improve the docstring for __import__ (GH-5339) (GH-5489)Miss Islington (bot)2018-02-021-3/+3
| | | | | | | | Clarify that the level argument is used to determine whether to perform absolute or relative imports: 0 is absolute, while a positive number is the number of parent directories to search relative to the current module. (cherry picked from commit 461d225b195eec5269f317323b41115516144c41) Co-authored-by: oldk <oldk1331@users.noreply.github.com>
* bpo-31106: Fix handling of erros in posix_fallocate() and posix_fadvise() ↵Miss Islington (bot)2018-02-012-10/+39
| | | | | (GH-3000) (GH-3000) (#4101) (cherry picked from commit d4b93e21c2664d6a78e0656e7a7be0807be1c352)
* [3.6] bpo-32565: Add missed versionadded directives for all new opcodes. ↵Serhiy Storchaka2018-02-011-0/+32
| | | | | | | (GH-5199). (GH-5471) (cherry picked from commit 12e7cd8a51956a5ce373aac692ae6366c5f86584) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-32137: The repr of deeply nested dict now raises a RecursionError ↵Miss Islington (bot)2018-02-017-9/+26
| | | | | | | | (GH-4570) (GH-4689) instead of crashing due to a stack overflow. This perhaps will fix similar problems in other extension types. (cherry picked from commit 1fb72d2ad243c965d4432b4e93884064001a2607)
* bpo-32735: Fix typo in f-strings datetime format specifier example (GH-5464) ↵Miss Islington (bot)2018-01-311-1/+1
| | | | | | | | | (GH-5465) The f-string example for using datetime format specifier does not match the given output. Changed the format from %b to %B so it matches the output of "January". (cherry picked from commit b299393cc372f3ecbef4304f8eaa4c7838e975ca) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-32727: smtplib's SMTP.send_message behaves differently with from_addr ↵Miss Islington (bot)2018-01-313-1/+20
| | | | | | | | and to_addrs (GH-5451) (#5455) Do not pass the name field in the 'from' address in the SMTP envelope. (cherry picked from commit 8d83e4ba7823827bcbc119db887004d5c3a63dc6) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
* [3.6] bpo-32583: Fix possible crashing in builtin Unicode decoders (GH-5325) ↵Xiang Zhang2018-01-313-2/+74
| | | | | | | (#5459) When using customized decode error handlers, it is possible for builtin decoders to write out-of-bounds and then crash.. (cherry picked from commit 2c7fd46e11333ef5e5cce34212f7d087694f3658)
* [3.6] compare with difflib not diff(1) (GH-5450) (GH-5453)Benjamin Peterson2018-01-301-13/+9
| | | | Co-authored-by: Benjamin Peterson <benjamin@python.org>
* [3.6] closes bpo-30117: fix lib2to3 ParserIdempotency test (GH-1242) (GH-5443)Benjamin Peterson2018-01-302-10/+15
| | | | | | | | | | | | Fix two (in my opinion) spurious failure conditions in the lib2to3.tests.test_parser.TestParserIdempotency test_parser test. Use the same encoding found in the initial file to write a temp file for a diff. This retains the BOM if the encoding was initially utf-8-sig. If the file cannot be parsed using the normal grammar, try again with no print statement which should succeed for valid files using future print_function For case (1), the driver was correctly handling a BOM in a utf-8 file, but then the test was not writing a comparison file using 'utf-8-sig' to diff against, so the BOM got removed. I don't think that is the fault of the parser, and lib2to3 will retain the BOM. For case (2), lib2to3 pre-detects the use of from __future__ import print_function or allows the user to force this interpretation with a -p flag, and then selects a different grammar with the print statement removed. That makes the test cases unfair to this test as the driver itself doesn't know which grammar to use. As a minimal fix, the test will try using a grammar with the print statement, and if that fails fall back on a grammar without it. A more thorough handling of the idempotency test would to be to parse all files using both grammars and ignore if one of the two failed but otherwise check both. I didn't think this was necessary but can change.. (cherry picked from commit 14e976e00e65bf343ba0fca016c3c9132a843daf)
* closes bpo-32721: do not fail test_hashlib if _md5 isn't available (GH-5441) ↵Miss Islington (bot)2018-01-302-1/+2
| | | | | | | (GH-5442) (cherry picked from commit 95441809ef77a8df5e14601ade6c054ef7114c02) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* [3.6] replace dynamic import with 'exec' with importlib.import_module ↵Benjamin Peterson2018-01-301-3/+4
| | | | | (GH-5433) (GH-5440) (cherry picked from commit 77526f05fa788d6fb12f2121fe6b96c130d9b717)
* [3.6] Revert "bpo-32690: Preserve order of locals() (GH-5379) (#5390)"Nick Coghlan2018-01-302-4/+2
| | | | | This reverts commit 9105879bfd7133ecbac67f3e9c0bacf6e477de5a in order to keep the behaviour of locals() consistent between 3.6.4 and 3.6.5+.
* bpo-32701: Clarify the quotetabs flag in quopri documentation (GH-5401) ↵Miss Islington (bot)2018-01-301-3/+4
| | | | | | | (GH-5438) (cherry picked from commit 9424dcbb3e20a26dfdd81659303b989f7d3da044) Co-authored-by: Julien Palard <julien@palard.fr>
* bpo-27931: Fix email address header parsing error (GH-5329) (GH-5431)Miss Islington (bot)2018-01-293-1/+25
| | | | | | Correctly handle addresses whose username is an empty quoted string. (cherry picked from commit aa218d1649690d1c1ba86a9972f7fae646bf1a8f) Co-authored-by: jayyyin <jayyin11043@hotmail.com>
* Document the error return of PyLong_As* APIs. (GH-5396) (#5404)Miss Islington (bot)2018-01-291-0/+34
| | | | | | | Document the error return of PyLong_As* APIs. A frequent Python C API usage error is neglecting to check the return value and/or PyErr_Occurred(). (cherry picked from commit f5b04a360e44aa9733f7a92dd66d2292d6c52955)
* bpo-20891: Remove test_capi.test_bpo20891() (#5425)Victor Stinner2018-01-292-61/+0
| | | | | | | | | | My first fix is not enough to make test_bpo20891() reliable. A second fix is needed and it was decided to not backport it, so remove the test instead. For Python 3.6, the workaround is to call PyEval_InitThreads() before spawning the first C thread. Python 3.7 will have both fixes.
* Add a test for pdb until command in coroutine (GH-5427) (#5428)Miss Islington (bot)2018-01-291-0/+46
| | | (cherry picked from commit 4f4ef0acbad81f4b05f370e8ff14ddf949773291)
* bpo-32650: Add an asyncgen pdb test (GH-5406) (#5419)Miss Islington (bot)2018-01-291-0/+60
| | | (cherry picked from commit 9ee1bf9ab5af8233ed8ec5c53d12a29dc1bd9c9d)
* Fix minor markup typo (GH-5407) (#5416)Miss Islington (bot)2018-01-291-1/+1
| | | (cherry picked from commit 2a3260bb030b0d4620242110c0ee5abc379afa8d)
* [3.6] bpo-32650 Add support for async generators and more test for ↵Andrew Svetlov2018-01-292-7/+51
| | | | | coroutines in pdb (GH-5403). (#5411) (cherry picked from commit c7ab581db216aeeb1c2aa7af2f2198d2b7516383)
* bpo-32650: Add native coroutine support to bdb when stepping over line ↵Miss Islington (bot)2018-01-293-6/+63
| | | | | (GH-5400) (#5402) (cherry picked from commit 46877024423e98d1b872bf308dacacd583327207)
* bpo-32690: Preserve order of locals() (GH-5379) (#5390)Miss Islington (bot)2018-01-282-2/+4
| | | (cherry picked from commit a4d00012565d716db6e6abe1b8f33eaaa4de416e)
* [3.6] bpo-32228: Reset raw_pos after unwinding the raw stream (GH-4858) (#5389)Antoine Pitrou2018-01-283-4/+28
| | | | | Ensure that ``truncate()`` preserves the file position (as reported by ``tell()``) after writes longer than the buffer size.. (cherry picked from commit 059f58ce938d9c3f0286412a4efb1b9131339421)
* Fix PyTrace_RETURN documentation (GH-5384) (GH-5386)Miss Islington (bot)2018-01-281-1/+1
| | | | It will be triggered when propagating an exception. (cherry picked from commit 79db11ce99332d62917be9d03b31494b1ff2f96a)
* bpo-32685: Improve suggestion for print statement (GH-5380)Miss Islington (bot)2018-01-283-14/+39
| | | | | | | | Better account for single-line compound statements and semi-colon separated statements when suggesting Py3 replacements for Py2 print statements. Initial patch by Nitish Chandra. (cherry picked from commit 43c0f1ac5ed8bc9c3bd048d2ce4de4c98a83de99)
* bpo-32687: Fix wrong meaning of args for PyTrace_LINE/CALL in documentation ↵Miss Islington (bot)2018-01-281-2/+2
| | | | | (GH-5361) (GH-5377) (cherry picked from commit 9ed0aee27c249dada410a22fff4325a4a61df36d)
* Minor grammar fixes to License.rst (GH-1174) (GH-5373)Miss Islington (bot)2018-01-281-3/+4
| | | (cherry picked from commit 8312fba0a1ef8f0a1a6c1760c73a89e29cfca09a)
* [3.6] bpo-32664: Add missing "|" connector in Exceptions doc (GH-1173) (GH-5372)Miss Islington (bot)2018-01-282-2/+2
| | | (cherry picked from commit 992ae6444cc745c23d3bcc604983cc8e39405bd2)
* Fix changed file detection on Travis (GH-3129)Miss Islington (bot)2018-01-271-1/+15
| | | | | | | | | | | | | | | | | | | | Travis when merging changes from a pull request onto the target branch does not perform a rebase, instead it does a simple merge which causes the PR commits to retain their commit dates. This means that the commit log can potentially look like: PR merge <-- HEAD normal master commit <- master more commits from normal workflow PR commit 1 another master commit PR commit 2 Performing a git diff from PR commit 2 to master will accidentally include files that should not be there. Closes python/core-workflow#14 (cherry picked from commit b2ec3615c81ca4f3c938245842a45956da8d5acb)
* Fix wrong assert in unicodeobject (GH-5340)Miss Islington (bot)2018-01-271-1/+1
| | | (cherry picked from commit 7cc95f5069c8983afb8a55928db6956abe2d5afa)
* [3.6] bpo-32521: nis libnsl (GH-5190) (#5352)Christian Heimes2018-01-272-19/+53
| | | | | | | | * bpo-32521: nis libnsl (#5190) The nismodule is now compatible with new libnsl and headers location Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 29a7df78277447cf6b898dfa0b1b42f8da7abc0c)
* [3.6] bpo-27505: Retrofit module __class__ documentation from 3.7 (GH-5321)Cheryl Sabella2018-01-271-0/+33
| | | | | | | | The module `__class__` attribute documentation added to 3.7 for PEP 562 (dynamic module attributes) also applies to earlier versions. This backports that subset of the new docs to the 3.6 branch so that it will appear in the main online documentation and in the final 3.6 binary release. Patch by Cheryl Sabella.
* [3.6] bpo-32304: Fix distutils upload for tar files ending with b'\r' ↵Bo Bayles2018-01-274-2/+33
| | | | | (GH-5264) (GH-5330) Patch by Bo Bayles.
* bpo-32667: Fix tests when $PATH contains a file (GH-5322) (#5323)Miss Islington (bot)2018-01-252-9/+8
| | | | | | Some tests failed when the PATH environment variable contained a path to an existing file. Fix tests to ignore also NotADirectoryError, not only FileNotFoundError and PermissionError. (cherry picked from commit b31206a223955d614d7769f95fb979d60f77bf87)
* bpo-32651 Recommend getpass.getuser() (GH-5301) (#5304)Miss Islington (bot)2018-01-242-8/+11
| | | | * bpo-32651 - In the documentation for os.getlogin(), recommend getpass.getuser() (cherry picked from commit d499031f5f33c3ef71be7c81ef52eee6b47c42e1)
* bpo-17799: Explain real behaviour of sys.settrace and sys.setprofile ↵Xiang Zhang2018-01-243-20/+41
| | | | | (GH-4056) (#5298) (cherry picked from commit 131fd7f96c619bc7eaea956e45c6337175f4b27f)