Commit Graph

98997 Commits

Author SHA1 Message Date
Miss Islington (bot) e6e440ad5c
Fix C API docs: PyCapsule_Import always set an exception on failure. (GH-6967)
(cherry picked from commit bde3e0bf09)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-05-18 06:53:42 -07:00
Miss Islington (bot) eb4590e4d9
bpo-33564: Add async to IDLE's code context block openers. (GH-6960)
(cherry picked from commit d89ca94847)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2018-05-17 18:25:25 -07:00
Steve Dower 950d091152 Disable multissltests.py under VSTS (GH-6955) 2018-05-17 16:12:20 -04:00
Miss Islington (bot) 346762698c Only upload docs for CI build and not pull requests (GH-6945) (GH-6948)
(cherry picked from commit 48b1f3773c)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
2018-05-17 14:30:09 -04:00
Steve Dower 0d8f83f59c
bpo-33522: Enable CI builds on Visual Studio Team Services (GH-6865) (GH-6925) 2018-05-17 09:46:00 -04:00
Stéphane Wirtel e4cd12d3d3 [3.6] bpo-33503: Fix the broken pypi link in the source and the documentation (GH-6814) (GH-6885)
(cherry picked from commit 19177fbd5d)

Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
2018-05-16 10:08:23 -04:00
Miss Islington (bot) 5e8c526804 bpo-32384: Skip test when _testcapi isn't available (GH-4940)
(cherry picked from commit 4cc3eb48e1)

Co-authored-by: Isaiah Peng <isaiah@users.noreply.github.com>
2018-05-16 12:17:25 +03:00
Terry Jan Reedy 8fa36b6be4
bpo-30928: update idlelib/NEWS.txt for 3.6. (#6888) 2018-05-16 02:39:13 -04:00
Miss Islington (bot) 47793dec38
bpo-30928: Update idlelib/NEWS.txt to 2018-05-14. (GH-6873)
(cherry picked from commit 038b21f2ca)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2018-05-15 18:14:51 -07:00
Terry Jan Reedy 1b0d65fa10
[3.6] bpo-29706: IDLE now colors async and await as keywords in 3.6. (#6879)
They become full keywords in 3.7.
2018-05-15 20:10:46 -04:00
Miss Islington (bot) 7c59a33491
bpo-29706: Test that IDLE colors async/await as keywords. (GH-6846)
Added to the eye-verified htest, not to the unittests.
Also remove some stray leftover comments.
(cherry picked from commit 389a48ede9)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2018-05-15 13:48:14 -07:00
Petr Viktorin e618e96581
bpo-28167: bump platform.linux_distribution removal to 3.8 (GH-6864)
This is a backport of the documentation part of GH-6862

Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
2018-05-15 13:31:47 -04:00
Miss Islington (bot) c50e5b1f1f bpo-31947: remove None default for names param in Enum._create_ GH-4288 (GH-6485)
(cherry picked from commit b8e21f1289)

Co-authored-by: anentropic <ego@anentropic.com>
2018-05-15 08:19:50 -07:00
Miss Islington (bot) 726894addc
bpo-16865: Support arrays >=2GB in ctypes. (GH-3006)
(cherry picked from commit 735abadd5b)

Co-authored-by: Segev Finer <segev208@gmail.com>
2018-05-14 22:55:52 -07:00
Travis DePrato 295465dc29 Add AsyncContextManager to typing module documentation. (GH-6823) 2018-05-14 22:07:21 -04:00
Miss Islington (bot) 3936fd7b2c [3.7] bpo-32861: urllib.robotparser fix incomplete __str__ methods. (GH-5711) (GH-6795) (GH-6818)
The urllib.robotparser's __str__ representation now includes wildcard
entries and the "Crawl-delay" and "Request-rate" fields.
(cherry picked from commit c3fa1f2b93)

Co-authored-by: Michael Lazar <lazar.michael22@gmail.com>
2018-05-15 01:03:56 +03:00
Miss Islington (bot) 914bad6e2c
Add versionchanged in create_datagram_endpoint doc (GH-4697)
Most of the parameters were added in 3.4.4 (b9bf913ab3), but this
change was not documented
(cherry picked from commit 0ded580403)

Co-authored-by: Romuald Brunet <romuald@chivil.com>
2018-05-14 13:12:47 -07:00
Miss Islington (bot) 9fd5b5fdf8
bpo-22069: Update TextIO documentation (GH-6609)
Clarify that flush is implied when the call to write contains a newline character.
(cherry picked from commit 7ffd4c58fa)

Co-authored-by: Elena Oat <oat.elena@gmail.com>
2018-05-14 09:18:07 -07:00
Miss Islington (bot) 48fdbbf6bb
bpo-32601: Let test_expanduser use the same user if no others found. (GH-5246)
This happens in the NixOS build sandbox, for example, where the only
other user is nobody with home directory /.
(cherry picked from commit 5c0d462689)

Co-authored-by: Anders Kaseorg <andersk@mit.edu>
2018-05-14 07:45:34 -07:00
Miss Islington (bot) 0d17e60b33
bpo-28055: Fix unaligned accesses in siphash24(). (GH-6123)
The hash implementation casts the input pointer to uint64_t* and directly reads
from this, which may cause unaligned accesses. Use memcpy() instead so this code
will not crash with SIGBUS on sparc.

https://bugs.gentoo.org/show_bug.cgi?id=636400
(cherry picked from commit 1e2ec8a996)

Co-authored-by: Rolf Eike Beer <eike@sf-mail.de>
2018-05-13 04:40:03 -07:00
Ivan Levkivskyi 308dbe0388
Backport recent typing updates (GH-6759) 2018-05-10 23:15:14 -04:00
Miss Islington (bot) 7488c79b60
bpo-26701: Tweak the documentation for special methods in int(). (GH-6741)
(cherry picked from commit df00f04825)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-05-10 07:38:20 -07:00
Miss Islington (bot) 8ac158a6df
bpo-21983: Fix a crash in ctypes.cast() when passed a ctypes structured data type (GH-3859)
(cherry picked from commit d518d8bc8d)

Co-authored-by: Oren Milman <orenmn@gmail.com>
2018-05-09 15:27:59 -07:00
Miss Islington (bot) fa40fc0593
bpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738)
(cherry picked from commit ddb6215a55)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-05-09 02:00:13 -07:00
Miss Islington (bot) 6079b607d3
Fix superfluous if in documentation. (GH-6728)
(cherry picked from commit b3c369861b)

Co-authored-by: Julien Palard <julien@palard.fr>
2018-05-09 01:10:12 -07:00
Miss Islington (bot) 7f4f94d474
Fix typo in __mul__ and __rmul__ docstring (GH-6674)
(cherry picked from commit 0904f766e1)

Co-authored-by: Grant Jenks <grant.jenks@gmail.com>
2018-05-08 22:49:57 -07:00
Miss Islington (bot) c925108b99
closes bpo-33445: fail properly in test_cprofile() (GH-6727)
(cherry picked from commit ac9240b9be)

Co-authored-by: jdemeyer <jdemeyer@cage.ugent.be>
2018-05-08 21:59:50 -07:00
Miss Islington (bot) b1c70d0ffb [3.6] bpo-20087: Update locale alias mapping with glibc 2.27 supported locales. (GH-6708) (GH-6714)
(cherry picked from commit cedc9b7420)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-05-06 10:20:42 +03:00
Miss Islington (bot) 0ba812b1be
bpo-33422: Fix quotation marks getting deleted when looking up byte/string literals on pydoc. (GH-6701)
Also update the list of string prefixes.
(cherry picked from commit b2043bbe60)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
2018-05-05 10:12:19 -07:00
Miss Islington (bot) eb5abdc708 bpo-33400: Clarified documentation to indicate no strict adherence to ISO 8601. (GH-6703)
(cherry picked from commit c4994dc00d)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
2018-05-04 23:02:48 +01:00
Miss Islington (bot) d5546991a2
bpo-33391: Fix refleak in set_symmetric_difference (GH-6670)
(cherry picked from commit 491bbedc20)

Co-authored-by: lekma <lekmalek@gmail.com>
2018-05-02 03:12:18 -07:00
Miss Islington (bot) fb646219e9 Mitigate macOS race condition in installer build (GH-6686) (GH-6688)
(cherry picked from commit fc6aa28bfd)

Co-authored-by: Ned Deily <nad@python.org>
2018-05-02 01:49:03 -04:00
Miss Islington (bot) 8ac4418764 bpo-33290: Have macOS installer remove "pip" alias (GH-6683) (GH-6685)
Currently, "pip3 install --upgrade pip" unconditionally installs a
"pip" alias even for Python 3.  If a user has an existing Python 3.x
installed from a python.org macOS installer and then subsequently
manually updates to a new version of pip, there may now be a stray
"pip" alias in the Python 3.x framework bin directory which can cause
confusion if the user has both a Python 2.7 and 3.x installed;
if the Python 3.x fw bin directory appears early on $PATH, "pip"
might invoke the pip3 for the Python 3.x rather than the pip for
Python 2.7.  To try to mitigate this, the macOS installer script
for the ensurepip option will unconditionally remove "pip" from
the 3.x framework bin directory being updated / installed.  (The
ambiguity can be avoided by using "pythonx.y -m pip".)
(cherry picked from commit 0dd80709b5)

Co-authored-by: Ned Deily <nad@python.org>
2018-05-02 01:48:11 -04:00
Miss Islington (bot) dc5c92fcb2
bpo-33378: Add Korean to the language switcher. (GH-6627)
(cherry picked from commit 5779483299)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
2018-05-01 02:47:17 -07:00
Miss Islington (bot) a607f8b998
bpo-31908: Fix output of cover files for trace module command-line tool. (GH-4205)
Previously emitted cover files only when --missing option was used.
(cherry picked from commit 47ab15470d)

Co-authored-by: Michael Selik <mike@selik.org>
2018-04-30 22:03:29 -07:00
Miss Islington (bot) 3d11630ff4
bpo-21474: Update IDLE word/identifier definition from ascii to unicode. (GH-6643)
In text and entry boxes, this affects selection by double-click,
movement left/right by control-left/right, and deletion left/right
by control-BACKSPACE/DEL.
(cherry picked from commit 5ff3a161c8)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2018-04-30 00:48:16 -07:00
Miss Islington (bot) 9a039d5679
bpo-32362: Fix references to non-existent multiprocessing.Connection() (GH-6223)
(cherry picked from commit 9f3535c9cd)

Co-authored-by: Bo Bayles <bbayles@gmail.com>
2018-04-29 12:11:01 -07:00
Miss Islington (bot) ef91552cfb
bpo-33256: Replace angle brackets around python object repr to display it in html (GH-6442)
(cherry picked from commit 7d68bfa826)

Co-authored-by: sblondon <sblondon@users.noreply.github.com>
2018-04-29 12:10:39 -07:00
Miss Islington (bot) a26a297b4b
bpo-31026: Fix test_dbm if dbm.ndbm is build with Berkeley DB. (GH-6632)
(cherry picked from commit 70af06cdc4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-04-29 06:47:39 -07:00
Serhiy Storchaka 1b27ec6e0b
[3.6] bpo-33383: Fix crash in get() of the dbm.ndbm database object. (GH-6630). (GH-6633)
(cherry picked from commit 2e38cc3933)
2018-04-29 15:44:16 +03:00
Andrés Delfino 4533494ac5 [3.6] bpo-33280: Reorganize external Tcl/Tk references. (GH-6473). (#6602)
(cherry picked from commit 67a8f4fed3)

Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
2018-04-26 17:10:10 +03:00
Serhiy Storchaka b16681fb1e
[3.6] bpo-33330: Improve error handling in PyImport_Cleanup(). (GH-6564). (GH-6604)
(cherry picked from commit e9d9494d6b)
2018-04-26 03:27:51 +03:00
Miss Islington (bot) 0d19fa917c
Mention both relevant PEPs in function annotations tutorial (GH-6304)
Patch by Neeraj Badlani.
(cherry picked from commit 643ff711fa)

Co-authored-by: Neeraj Badlani <neerajbadlani@gmail.com>
2018-04-25 11:02:07 -07:00
INADA Naoki 38e8936eed
travis: Use -O3 option (GH-5599)
We don't use debugger on Travis..
(cherry picked from commit 8ff5356473)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
2018-04-25 10:27:18 +09:00
Antoine Pitrou b0ca398cab
[3.6] bpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575) (GH-6582)
Starting with glibc 2.27.9000-xxx, sigaddset() can return EINVAL for some
reserved signal numbers between 1 and NSIG.  The `range(1, NSIG)` idiom
is commonly used to select all signals for blocking with `pthread_sigmask`.
So we ignore the sigaddset() return value until we expose sigfillset()
to provide a better idiom.
(cherry picked from commit 25038ecfb6)
2018-04-23 22:22:49 +02:00
Miss Islington (bot) 8a6f4b4bba bpo-991266: Fix quoting of Comment attribute of SimpleCookie (GH-6555)
(cherry picked from commit d5a2377c3d)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
2018-04-23 03:58:51 +03:00
Miss Islington (bot) 26c289dd76 bpo-31457: Don't omit inner ``process()`` calls with nested LogAdapters (GH-4044) (#6568)
This used to be the case on Python 2.  Commit
212b590e11 changed the implementation for Python
3, making the `log()` method of LogAdapter call `logger._log()` directly.  This
makes nested log adapters not execute their ``process()`` method.  This patch
fixes the issue.

Also, now proxying `name`, too, to make `repr()` work with nested log adapters.

New tests added.
(cherry picked from commit ce9e625445)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2018-04-22 15:00:30 -07:00
Miss Islington (bot) 5c0a8bb1c2
bpo-33297: Mention Pillow to work with more image formats. (GH-6505)
Also update PIL doc references to Pillow.
(cherry picked from commit b81ca28b37)

Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
2018-04-21 06:04:08 -07:00
Terry Jan Reedy 82de43fdd5
[3.6] Spelling fixes to docs, docstrings, and comments (GH-6374) (#6558)
(cherry picked from commit 61f82e0e33)
2018-04-20 20:49:07 -04:00
Miss Islington (bot) 0eadb42596
Clarify that __path__ can't be just any value (GH-6554)
(cherry picked from commit 441d945eb3)

Co-authored-by: Brett Cannon <brettcannon@users.noreply.github.com>
2018-04-20 16:49:58 -07:00