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
Miss Islington (bot)
910d71b839
bpo-33253: Fix xxsubtype.bench() to accept correct str signature. (GH-6439)
...
(cherry picked from commit f178028f37
)
Co-authored-by: Devon R <Gorialis@users.noreply.github.com>
2018-04-09 23:07:14 -07:00
Miss Islington (bot)
83bb39907e
[3.6] bpo-31201: Clarify command to re-run failing test(s) with example (GH-6417) (GH-6438)
...
(cherry picked from commit 0f914b5b5f
)
Co-authored-by: Aaron Ang <aaronang@users.noreply.github.com>
2018-04-09 17:19:32 -04:00
Miss Islington (bot)
e0dbc57e11
bpo-31920: Fixed handling directories as arguments in the ``pygettext`` script. (GH-6259)
...
Based on patch by Oleg Krasnikov.
(cherry picked from commit c93938b5be
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-04-09 11:06:09 -07:00
Miss Islington (bot)
2d01ac5917
Fix misleading docsting of shelve.open(). (GH-6427)
...
The protocol parameter can be any protocol supported by the
pickle module.
(cherry picked from commit 2ef65f346a
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-04-09 08:06:25 -07:00
Serhiy Storchaka
1429ac9f2c
[3.6] Improve highlighting of some code blocks. (GH-6401). (GH-6424)
...
(cherry picked from commit 46936d5a71
)
2018-04-09 17:57:07 +03:00
Miss Islington (bot)
335efd7c25
Update docstring of tempfile._RandomNameSequence (GH-6414)
...
When bpo-12015 got resolved by increasing the length of the
random string generated by _RandomNameSequence from six to eight
characters, the docstring of the class was not adjusted accordingly.
(cherry picked from commit 9c463ec88b
)
Co-authored-by: Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de>
2018-04-08 18:26:56 -07:00
Miss Islington (bot)
280a767d02
Add a prepend() recipe to teach a chain() idiom (GH-6415) (GH-6422)
...
(cherry picked from commit 9265dd72e5
)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2018-04-08 14:37:47 -07:00
Antoine Pitrou
b603609e9d
[3.6] bpo-33201: Modernize "Extension types" doc (GH-6337) (GH-6412)
...
* bpo-33201: Modernize "Extension types" doc
* Split tutorial and other topics
* Some small fixes
* Address some review comments
* Rename noddy* to custom* and shoddy to sublist
* Fix markup.
(cherry picked from commit 1d80a56173
)
2018-04-07 18:35:35 +02:00
Ned Deily
76215a4481
bpo-33184: Update macOS installer build to use OpenSSL 1.0.2o. (GH-6408)
2018-04-07 03:04:03 -04:00
Miss Islington (bot)
70c4446547
[3.6] bpo-8243: Doc patch for curses.window.addstr and curses.window.addch (GH-5179) (GH-6406)
...
(cherry picked from commit ef5ce884a4
)
Co-authored-by: Jay Crotts <crotts.jay@gmail.com>
2018-04-06 22:01:03 -04:00
Miss Islington (bot)
3468a05f6a
[3.6] bpo-29673: fix gdb scripts pystack and pystackv (GH-6126) (GH-6400)
...
(cherry picked from commit 3a9ccee0e5
)
Co-authored-by: Marcel Plch <gmarcel.plch@gmail.com>
2018-04-06 18:15:34 -04:00
Miss Islington (bot)
2350a47652
bpo-33231: Fix potential leak in normalizestring() (GH-6386)
...
(cherry picked from commit 0c1c4563a6
)
Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
2018-04-06 00:37:03 -07:00
Miss Islington (bot)
8da15f0945
bpo-33224: PEP 479 fix for difflib.mdiff() (GH-6381) (GH-6391)
...
(cherry picked from commit 01b731fc2b
)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2018-04-05 12:18:02 -07:00
Miss Islington (bot)
e25af930a3
bpo-33203: Ensure random.choice always raises IndexError on empty sequence (GH-6338) (GH-6388)
...
(cherry picked from commit 091e95e900
)
Co-authored-by: Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de>
2018-04-05 09:24:27 -07:00
INADA Naoki
29bc6f6347
bpo-33195: Doc: Deprecate Py_UNICODE in c-api/arg (GH-6329)
...
Py_UNICODE is deprecated since Python 3.3.
But the deprecation is missed in the c-api/arg document.
(cherry picked from commit 42ec190
)
2018-04-05 18:08:43 +09:00
Miss Islington (bot)
1487cd14bb
bpo-29922: Add more tests for error messages in 'async with'. (GH-6370)
...
Different paths are executed for normal exit and for leaving
the 'async with' block with 'break', 'continue' or 'return'.
(cherry picked from commit 2eeac269dd
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-04-04 10:18:56 -07:00
Miss Islington (bot)
4fd6c27dc8
bpo-29922: Improve error messages in 'async with' (GH-6352)
...
when __aenter__() or __aexit__() return non-awaitable object.
(cherry picked from commit a68f2f0578
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-04-04 07:09:14 -07:00
Miss Islington (bot)
a5c8830637
bpo-33209: End framing at the end of C implementation of pickle.Pickler.dump(). (GH-6363)
...
(cherry picked from commit c869529ea9
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-04-03 15:05:11 -07:00
Miss Islington (bot)
fa5157e049
closes bpo-33202: fix os.walk mentioning os.listdir instead of os.scandir (GH-6335)
...
(cherry picked from commit badb894bbb
)
Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
2018-04-02 20:39:14 -07:00
Miss Islington (bot)
9a90826c9b
bpo-33199: Initialize ma_version_tag in PyDict_Copy (GH-6341)
...
(cherry picked from commit d1c82c5cc7
)
Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
2018-04-02 20:22:14 -07:00
Miss Islington (bot)
306559e6ca
bpo-33204: IDLE - revise and extend colorizer test. (GH-6347)
...
Followup to primary PR for the issue, GH-6344.
(cherry picked from commit 55966f3a0d
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2018-04-02 09:12:56 -07:00
Miss Islington (bot)
16cf84b4fb
bpo-33204: IDLE: consistently color invalid string prefixes (GH-6344)
...
A 'u' string prefix cannot be paired with either 'r' or 'f'. Consistently
color as much of the prefix, starting at the right, as is valid.
(cherry picked from commit da58533ac6
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2018-04-01 23:33:25 -07:00
Serhiy Storchaka
d918bbda4b
[3.6] Fix error message in sqlite connection thread check. (GH-6028). (GH-6324)
...
(cherry picked from commit 030345c0bf
)
Co-authored-by: Takuya Akiba <469803+iwiwi@users.noreply.github.com>
2018-04-01 01:03:50 +03:00
Serhiy Storchaka
25c869edd6
[3.6] bpo-33132: Fix reference counting issues in the compiler. (GH-6209). (GH-6321)
...
(cherry picked from commit a95d98607e
)
2018-03-31 23:54:13 +03:00
Miss Islington (bot)
ddc99713d9
Fix socket type in DatagramHandler documentation: TCP -> UDP (GH-6272)
...
(cherry picked from commit 233de021d9
)
Co-authored-by: Mike DePalatis <mike@depalatis.net>
2018-03-30 00:53:35 -07:00
Terry Jan Reedy
a10a709711
[3.6] Fix duplicating words words. (GH-6296) (GH-6298)
...
Backport idlelib duplications.
(cherry picked from commit bac2d5b
)
2018-03-28 16:51:22 -04:00
Ned Deily
d4850dd549
Python 3.6.5
...
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEDZbfTUEQ5cQ/v7F/LTR+pqplQh0FAlq7Xj8ACgkQLTR+pqpl
Qh0RKg//culaaeshI/2fVnstFt4UuvocnFpvE5hLho0TOJdRBXnL8LN8L7L7Cvo2
SxaxGuWXHbPeXw+GoXgzchUhX79h5azlBHM1sC+K1RnrB+jXjvICTR1bNjNzX3yg
Ga12QbQIO0BFLJpXsUPUFePxV6AlGvCIqneUKN/YilAtmYtJi9k5VkabEkebY+t9
LyO4vYICRTW0A0KSK+PK8maeg66QOt1x7uCK+lizWIPDgyoCsTeIhnBvvwCH5oaO
dltI+sJVIDnAWPVZ+fBq+q+iBc9RLlWg4ulpGzjfenTO/CnnzSb1sMFZh1XFVKvP
4c6J5e4XerPYRY+MV9PNGQhv1nxCqji0CF/TaTldQVZnkMe5i1x9fhfDP8wgnO/2
akpEqm9XAXOtVIqRc/pF5309IiglYzBbFTGGxbVZsaKn9lh2sH+5dmHFcEzHQDd/
wN/oXp0ufjie16xm01i5psHoFgF1FI/F/wQ+9OoGvbuOMUBbr9p77tfUAZZ9IFGe
Zwy1Tp7hEvr4qHk+wt+l7D5ffGQdAXfacQAB+8rpLZlB4YUY3IBbYzKoruoWNmmo
rYSKC4bzZMH6oQho5vY7QduFnKlZoNtDLLZ7rt4yvikjVgDC5O8UFNIIsDPkNVSO
kTfIC4k0gwuRXr8i7bGjJz6pncz4hdMgz6e8u4LGAQi3rKOVQ+0=
=cXem
-----END PGP SIGNATURE-----
Merge tag 'v3.6.5' into 3.6
Python 3.6.5
2018-03-28 14:22:48 -04:00