Commit Graph

98830 Commits

Author SHA1 Message Date
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
Miss Islington (bot) 18fdc87207 bpo-33126: Document PyBuffer_ToContiguous() (GH-6292) (GH-6293)
(cherry picked from commit aa50bf08e6)

Co-authored-by: Antoine Pitrou <pitrou@free.fr>
2018-03-28 17:47:34 +02:00
Ned Deily f59c0932b4 3.6.5final 2018-03-28 05:19:31 -04:00
Miss Islington (bot) db65936a40 bpo-33163: Upgrade pip to 9.0.3 and setuptools to v39.0.1. (GH-6285)
(cherry picked from commit c0518cde7a)

Co-authored-by: Ned Deily <nad@python.org>
2018-03-28 04:58:33 -04:00
Miss Islington (bot) 9dad016784 bpo-33163: Upgrade pip to 9.0.3 and setuptools to v39.0.1. (GH-6285)
(cherry picked from commit c0518cde7a)

Co-authored-by: Ned Deily <nad@python.org>
2018-03-28 04:52:07 -04:00
Miss Islington (bot) fb3d3b7a65 bpo-32726: Do not force IDLE.app to launch in 32-bit mode. (GH-6279) (#6281)
Forcing the macOS IDLE.app gui process to launch in 32-mode was
a necessary hack for old versions of Tk (Aqua Carbon as in Tk 8.4
and early versions of 8.5); it is not needed for current versions
of Tk.  Since 32-bit launching will no longer be supported on
future releases of macOS, allow IDLE.app to launch in 64-bit mode.
(cherry picked from commit df532ab752)

Co-authored-by: Ned Deily <nad@python.org>
2018-03-28 04:40:29 -04:00
Miss Islington (bot) 7f554c536c bpo-32872: Avoid regrtest compatibility issue with namespace packages. (GH-6276) (GH-6278)
(cherry picked from commit e52ac04597)

Co-authored-by: Ned Deily <nad@python.org>
2018-03-28 03:33:49 -04:00
Miss Islington (bot) 3647f85675 Upgrade pip to v9.0.3 and setuptools to v39.0.1 (GH-6184)
(cherry picked from commit d93b5161af)

Co-authored-by: Donald Stufft <donald@stufft.io>
2018-03-28 03:33:38 -04:00
Miss Islington (bot) 0330c853d6 Update pip to 9.0.2 and setuptools to 38.6.1 (GH-6133) (#6136)
(cherry picked from commit 7f81bb2add)

Co-authored-by: Donald Stufft <donald@stufft.io>
2018-03-28 03:33:12 -04:00
Christian Heimes 15b6400d64 bpo-30622: Fix backport of NPN fix (#6102)
Fix backport a79591cf of bpo-30622 to 3.6 branch.

Signed-off-by: Christian Heimes <christian@python.org>
2018-03-28 03:32:58 -04:00
Miss Islington (bot) a93662cf8f bpo-32872: Avoid regrtest compatibility issue with namespace packages. (GH-6276) (GH-6278)
(cherry picked from commit e52ac04597)

Co-authored-by: Ned Deily <nad@python.org>
2018-03-28 02:43:51 -04:00
Miss Islington (bot) c8698cff7c bpo-27212: Modify islice recipe to consume initial values preceding start (GH-6195) (GH-6267)
(cherry picked from commit da1734c58d)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2018-03-26 19:24:02 -07:00
Miss Islington (bot) 57db13e582
bpo-32844: Fix a subprocess misredirection of a low fd (GH5689)
bpo-32844: subprocess: Fix a potential misredirection of a low fd to stderr.

When redirecting, subprocess attempts to achieve the following state:
each fd to be redirected to is less than or equal to the fd
it is redirected from, which is necessary because redirection
occurs in the ascending order of destination descriptors.
It fails to do so in a couple of corner cases,
for example, if 1 is redirected to 2 and 0 is closed in the parent.
(cherry picked from commit 0e7144b064)

Co-authored-by: Alexey Izbyshev <izbyshev@users.noreply.github.com>
2018-03-26 13:43:46 -07:00
Miss Islington (bot) a413a91949
Fix description about SimpleXMLRPCServer constructor parameter bind_and_activate. (GH-776)
Passing True as the `bind_and_activate` *do* immediately opening and binding to their socket.
(cherry picked from commit e6223579c8)

Co-authored-by: cocoatomo <cocoatomo77@gmail.com>
2018-03-26 05:20:25 -07:00
Miss Islington (bot) 80af7320e7
Gitignore gmon.out (GH-5796)
gmon.out is generated when profiling turned on

Full Configuration:
./configure --prefix=$PWD/install --enable-profiling  --enable-big-digits=30
--with-pydebug --with-assertions  --with-valgrind
(cherry picked from commit 95ad3822a2)

Co-authored-by: Neeraj Badlani <neerajbadlani@gmail.com>
2018-03-26 04:53:51 -07:00
Miss Islington (bot) f86b0984d0
Fix typo and edit for clarity in the docstrings of sys.float_info. (GH-2251)
(cherry picked from commit 0301c9bdd1)

Co-authored-by: Stefano Taschini <taschini@users.noreply.github.com>
2018-03-26 03:57:37 -07:00
Miss Islington (bot) 45116d393f
bpo-33096: Fix ttk.Treeview.insert. (GH-6228)
Allow ttk.Treeview.insert to insert iid that has a false boolean value.
Note iid=0 and iid=False would be same.
(cherry picked from commit 3ab44c0783)

Co-authored-by: Garvit Khatri <garvitdelhi@gmail.com>
2018-03-26 01:20:10 -07:00
Christian Heimes f5befbb0d1
[3.6] bpo-33127: Compatibility patch for LibreSSL 2.7.0 (GH-6210) (GH-6214)
LibreSSL 2.7 introduced OpenSSL 1.1.0 API. The ssl module now detects
LibreSSL 2.7 and only provides API shims for OpenSSL < 1.1.0 and
LibreSSL < 2.7.

Documentation updates and fixes for failing tests will be provided in
another patch set.

Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit 4ca0739c9d)

Co-authored-by: Christian Heimes <christian@python.org>
2018-03-24 18:38:14 +01:00
Miss Islington (bot) 643a781188
bpo-27428: Fix WindowsRegistryFinder documentation to list appropriate ABC (GH-6061)
(cherry picked from commit 5cbb84106e)

Co-authored-by: Himanshu Lakhara <himanshulakhara1947@gmail.com>
2018-03-23 14:50:09 -07:00
Miss Islington (bot) fce39ab1c8 Fix a reference to the MRE book in re docs (GH-1113)
Reported by Maksym Nikulyak on docs.p.o.
(cherry picked from commit a0a42d22d8)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
2018-03-23 18:55:46 +03:00
Serhiy Storchaka 18d7edf32e
[3.6] bpo-33041: Fixed jumping if the function contains an "async for" loop. (GH-6154). (GH-6199)
(cherry picked from commit b9744e924c)
2018-03-23 15:45:37 +02:00
Miss Islington (bot) 560ea272b0 Upgrade pip to v9.0.3 and setuptools to v39.0.1 (GH-6184)
(cherry picked from commit d93b5161af)

Co-authored-by: Donald Stufft <donald@stufft.io>
2018-03-21 23:50:50 -04:00
Miss Islington (bot) 7abf34344f
Fix typos in mmap() error messages (GH-6173)
(cherry picked from commit 9308dea3e1)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2018-03-21 00:07:23 -07:00
Miss Islington (bot) ae2feb32e7
bpo-27683: Fix a regression for host() of ipaddress network objects (GH-6016)
The result of host() was not empty when the network is constructed by a tuple containing an
integer mask and only 1 bit left for addresses.
(cherry picked from commit 10b134a07c)

Co-authored-by: Xiang Zhang <angwerzx@126.com>
2018-03-20 18:49:41 -07:00
Miss Islington (bot) 481cbe8d62
bpo-18802: Add more details to ipaddress documentation (GH-6083)
Original patch by Jon Foster and Berker Peksag.
(cherry picked from commit 5609b78392)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2018-03-20 17:59:00 -07:00
Miss Islington (bot) 47a0e64ccf
bpo-28247: Document Windows executable creation in zipapp (GH-6158)
(cherry picked from commit 4be79f2946)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2018-03-20 15:52:41 -07:00
Miss Islington (bot) f3e6eadbcf [3.6] bpo-33021: Release the GIL during fstat() calls (GH-6019) (GH-6160)
fstat may block for long time if the file descriptor is on a
non-responsive NFS server, hanging all threads. Most fstat() calls are
handled by _Py_fstat(), releasing the GIL internally, but but
_Py_fstat_noraise() does not release the GIL, and most calls release the
GIL explicitly around it.

This patch fixes last 2 calls to _Py_fstat_no_raise(), avoiding hangs
when calling:
- mmap.mmap()
- os.urandom()
- random.seed()
(cherry picked from commit 4484f9dca9)

Co-authored-by: Nir Soffer <nirsof@gmail.com>
2018-03-20 20:40:18 +01:00
xdegaye 424f3dafea bpo-19417: Add test_bdb.py (GH-5217)
(cherry picked from commit 3fe33043ee)
2018-03-19 10:30:47 -07:00