Commit graph

98884 commits

Author SHA1 Message Date
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
Miss Islington (bot)
47d57bfd3d
bpo-33131: Upgrade ensurepip to bundle pip 10.0.1 (GH-6546)
Upgrade ensurepip to bundle pip 10.0.1
(cherry picked from commit 0399cf9b5e)

Co-authored-by: Paul Moore <p.f.moore@gmail.com>
2018-04-20 15:02:53 -07:00
Miss Islington (bot)
6444dd793e Clean up the readme text around PGO a bit. (GH-6538) (#6540)
(cherry picked from commit b87c1c92fc)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2018-04-20 10:15:20 -07:00
Miss Islington (bot)
6f870935c2
bpo-33189: pygettext.py now accepts only literal strings (GH-6364)
as docstrings and translatable strings, and rejects
bytes literals and f-string expressions.
(cherry picked from commit 69524821a8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-04-19 00:34:20 -07:00
Miss Islington (bot)
fc8693dc7a
bpo-33308: Fix a crash in the parser module when convert an ST object. (GH-6519)
Converting with line_info=False and col_info=True crashed before.
(cherry picked from commit e5362eaa75)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-04-18 22:11:05 -07:00
Miss Islington (bot)
1957e7b76a bpo-31583: Fix 2to3 for using with --add-suffix option (GH-3758) (GH-6529)
(cherry picked from commit e3a523a0fa)

Co-authored-by: Denis Osipov <osipov_d@list.ru>
2018-04-18 22:09:51 -07:00
Miss Islington (bot)
e735634ea4 Fix spelling typo (GH-6443) (#6508)
(cherry picked from commit 28e8b66d6c)

Co-authored-by: jdemeyer <jdemeyer@cage.ugent.be>
2018-04-17 11:41:51 -04:00
Miss Islington (bot)
f1547d110f bpo-33295: Skip test using missing external site (GH-6504) (GH-6511)
`test_urllib2net.OtherNetworkTests.test_sites_no_connection_close`
used `http://www.imdb.com/` but it is moved to https so the test is
not valid anymore.  Skip test for the moment to allow CI to proceed.
(cherry picked from commit 36d56ea826)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
2018-04-17 11:36:30 -04:00
Miss Islington (bot)
f44ce356a6
bpo-33283: Mention PNG as a supported format by Tcl/Tk. (GH-6479)
(cherry picked from commit 4b685bf719)

Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
2018-04-17 03:10:39 -07:00
Miss Islington (bot)
70955450bd
fix pydoc-topics to work with Sphinx 1.7 (GH-6475)
In fact, we now require a newer Sphinx version because APIs have moved around.
(cherry picked from commit acfb087f9f)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2018-04-16 23:38:06 -07:00
Miss Islington (bot)
c0a0c64fe2 Revert 725476222a (GH-6494) (GH-6496)
This note in documentation was never true.
(cherry picked from commit a00d440edb)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2018-04-16 20:35:13 -07:00
Miss Islington (bot)
ab99475b66
Remove to-be-deprecated urllib.request.urlretrieve function reference (GH-6454)
(cherry picked from commit c89b221758)

Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
2018-04-16 07:21:57 -07:00
Steve Dower
1672c2fbae
bpo-33184: Update Windows installer to OpenSSL 1.0.2o (GH-6464) 2018-04-13 17:31:16 -07:00
Miss Islington (bot)
e98e3385f2
Fix error messages in argparse examples (GH-6435)
The examples in argparse documentation use `error: too few arguments`
error message which was removed in this commit f97c59a in 2011.
(cherry picked from commit 04e8293465)

Co-authored-by: suic86 <marko.gabriel.cz@gmail.com>
2018-04-11 12:05:52 -07:00