summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [3.6] bpo-30638: Add clinic to `make regen-all` (GH-5671)Zachary Ware2018-02-182-9/+9
| | | | Also, use PYTHON_FOR_REGEN for clinic and blake2s_impl.c rather than PYTHON_FOR_BUILD, and update .travis.yml to make use of the change. (cherry picked from commit d6ff8a7037903497eff95fa32bdac2b6adf71505)
* bpo-32852: Fix trace changing sys.argv to tuple. (GH-5692)Miss Islington (bot)2018-02-173-1/+12
| | | | | (cherry picked from commit 9f4223261fd129ad7b9a09b2b0d625d1bb90b22b) Co-authored-by: Kyle Altendorf <sda@fstab.net>
* DOC: fix documentation for copyright and credits (GH-5706)Miss Islington (bot)2018-02-171-3/+7
| | | | | | | | Adapt documentation for `copyright` and `credits` to reality. Previously, the documentation implied that all each of `copyright`, `credits`, and `license`, would print a message to call the object in order to see the full text. In reality, only `license` exhibits this behaviour, and `copyright` and `credit` print their full text either when printed, displayed, or called. (cherry picked from commit 243d6d71265be1996a8326002deae429106a5fba) Co-authored-by: Gerrit Holl <gerrit.holl@gmail.com>
* bpo-32860: Fix a missing asterisk in the documentation for glob.iglob() ↵Miss Islington (bot)2018-02-171-1/+1
| | | | | | | (GH-5712) (cherry picked from commit 6887d86e9a04b9c5718b08e5d9e1ca3cc1f53721) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* Update comment in posixmodule.c (GH-5681)Miss Islington (bot)2018-02-141-1/+1
| | | | | | | | A closing parentheses was missing. Signed-off-by: Ngie Cooper <yaneurabeya@gmail.com> (cherry picked from commit 7745ec4e356ac1f4eaf43b155f4482c20a907d48) Co-authored-by: ngie-eign <1574099+ngie-eign@users.noreply.github.com>
* bpo-32841: Fix cancellation in awaiting asyncio.Condition (GH-5665) (GH-5683)Miss Islington (bot)2018-02-143-5/+34
| | | | | (cherry picked from commit 5746510b7aef423fa4afc92b2abb919307b1dbb9) Co-authored-by: Bar Harel <bzvi7919@gmail.com>
* [3.6] remove mercurial dot files (GH-5558)Benjamin Peterson2018-02-142-240/+0
| | | (cherry picked from commit 2b86f4cb2cd339f545804a9abb8c4d4cc28d9488)
* Fix installation instructions for *nix (GH-5605)Miss Islington (bot)2018-02-141-2/+4
| | | | | | | Remove pkg_add -r python from FreeBSD installation section. Moved to OpenBSD. (cherry picked from commit 3384d38d51a2c3450e742175db5d6d638fa5d2eb) Co-authored-by: Eitan Adler <grimreaper@users.noreply.github.com>
* bpo-27846: Delete incorrect note in base64 docs (GH-5666)Miss Islington (bot)2018-02-141-8/+0
| | | | | | | | This note incorrectly stated that "Base64 has an expansion factor of 6 to 4" (it is actually 4 to 3). It was decided to remove the note. (cherry picked from commit 88c38a4049ded0e1f197fec3e76be7c0c0e83d7a) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-31787: Skip refleak check when _hashlib is not available (GH-5660)Miss Islington (bot)2018-02-131-0/+1
| | | | | (cherry picked from commit f0bc645dfede8118c84844bad319cd952c4d1905) Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
* bpo-31787: Prevent refleaks when calling __init__() more than once (GH-3995)INADA Naoki2018-02-1313-15/+103
| | | (cherry picked from commit d019bc8319ea35e93bf4baa38098ff1b57cd3ee5)
* bpo-32827: Fix usage of _PyUnicodeWriter_Prepare() in decoding errors ↵Miss Islington (bot)2018-02-131-7/+3
| | | | | | | handler. (GH-5636) (cherry picked from commit b7e2d67f7c035f09c921ca4e7a36529cd502ccf7) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.6] bpo-32370: Use the correct encoding for ipconfig output in the uuid ↵Serhiy Storchaka2018-02-132-4/+8
| | | | | | | | module. (GH-5608). (#5654) (cherry picked from commit da6c3da6c33c6bf794f741e348b9c6d86cc43ec5) Co-authored-by: Segev Finer <segev208@gmail.com>
* bpo-32837: IDLE - require encoding argument for textview.view_file. (GH-5646)Miss Islington (bot)2018-02-123-4/+7
| | | | | | | Using the system and place-dependent default encoding for open() is a bad idea for IDLE's system and location-independent files. (cherry picked from commit 688722cedd6437910ff185ecf94fb3b749ad37f2) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-32826: Add "encoding=utf-8" to open() in idle_test/test_help_about. ↵Miss Islington (bot)2018-02-122-25/+32
| | | | | | | | | | | (GH-5639) GUI test test_file_buttons() only looks at initial ascii-only lines, but failed on systems where open() defaults to 'ascii' because readline() internally reads and decodes far enough ahead to encounter a non-ascii character in CREDITS.txt. (cherry picked from commit f34e03ec0ea6a4cef8d966087c77e616c4a5893b) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-29248: Fix os.readlink() on Windows (GH-5577)Miss Islington (bot)2018-02-123-3/+21
| | | | | | | | The PrintNameOffset field of the reparse data buffer was treated as a number of characters instead of bytes. (cherry picked from commit 3c34aad4e7a95913ec7db8e5e948a8fc69047bf7) Co-authored-by: SSE4 <tomskside@gmail.com>
* bpo-32720: Fixed the replacement field grammar documentation. (GH-5544) ↵Miss Islington (bot)2018-02-121-2/+2
| | | | | | | | (GH-5547) `arg_name` and `element_index` are defined as `digit`+ instead of `integer`. (cherry picked from commit 7a561afd2c79f63a6008843b83733911d07f0119) Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
* Fix typo in Include/objimpl.h, the word "has" was missing (GH-5568) (GH-5570)Miss Islington (bot)2018-02-121-1/+1
| | | | | | It now reads: ...be aware that Python has no control over... (cherry picked from commit 517da1e58f4c489d4b31579852cde5f7113da08e) Co-authored-by: Alexey <forestbiiird@gmail.com>
* Fix AppVeyor doc short-circuit (GH-5634)Miss Islington (bot)2018-02-111-1/+4
| | | (cherry picked from commit 6ea20fc719dcaf102d2cefa1786f0421514f7a58)
* [3.6] Add short-circuit for doc changes to AppVeyor (GH-5628)Zachary Ware2018-02-111-5/+21
| | | (cherry picked from commit 28607e0dd9417ce44a109980ffd60697c1afdea0)
* bpo-32800: Update link to w3c doc for xml default namespaces (GH-5609) GH-5612)Miss Islington (bot)2018-02-112-1/+2
| | | | | | The new link is given in a red box on the old page. (cherry picked from commit 8d1f2f40389c476d9240ec87a33da0373597c6af) Co-authored-by: sblondon <sblondon@users.noreply.github.com>
* [3.6] bpo-30157: Fix csv.Sniffer.sniff() regex pattern. (GH-5601) (GH-5603)Serhiy Storchaka2018-02-094-1/+14
| | | | | Co-authored-by: Jake Davis <jcdavis@awedge.net>. (cherry picked from commit 2411292ba8155327125d8a1da8a4c9fa003d5909)
* [3.6] Make formatting of some return codes conforming to the general style. ↵Serhiy Storchaka2018-02-095-16/+16
| | | | | | | (GH-5587). (GH-5598) (cherry picked from commit 5bb0005f9ff768ac443924b4bb26c3818ce8dc5a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-32802: Fix Travis build (GH-5589) (GH-5591)Miss Islington (bot)2018-02-081-1/+1
| | | | | | | Fix bug in travis configuration where it did not run the tests when a change includes both code and doc changes. (cherry picked from commit 32921f90821ab54ffb757b7e996e5b7a71fac25e) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
* 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+.