]> granicus.if.org Git - python/log
python
7 years agoFix margin in sentinel and mock_open (GH-8188)
Miss Islington (bot) [Mon, 9 Jul 2018 00:48:02 +0000 (17:48 -0700)]
Fix margin in sentinel and mock_open (GH-8188)

(cherry picked from commit f85af035c5cb9a981f5e3164425f27cf73231b5f)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agobpo-34061: Document sqlite3.NotSupportedError (GH-8172)
Marcin Niemira [Sun, 8 Jul 2018 13:59:48 +0000 (15:59 +0200)]
bpo-34061: Document sqlite3.NotSupportedError (GH-8172)

(cherry picked from commit bc9aa813a34474e517af8999565ff6151559d42f)

Co-authored-by: Marcin Niemira <marcin@niemira.net>
7 years agobpo-31014: Fix the webbrowser module. (GH-7267)
Miss Islington (bot) [Sun, 8 Jul 2018 08:09:21 +0000 (01:09 -0700)]
bpo-31014: Fix the webbrowser module. (GH-7267)

webbrowser._synthesize() called webbrowser.register() with
outdated signature.

Co-Authored-By: John Still <john@jmsdvl.com>
(cherry picked from commit 25b804a9c21c735ce322877f105ebab2539ccfc1)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agobpo-33888: Use CPython instead of Python in the FAQ (GH-7767)
Miss Islington (bot) [Sat, 7 Jul 2018 23:42:33 +0000 (16:42 -0700)]
bpo-33888: Use CPython instead of Python in the FAQ (GH-7767)

Make the change where discussing the CPython implementation of lists and dicts.
(cherry picked from commit 8d41278045ee4e8bf1cadb58a7db58d70ad55237)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agocloses bpo-34050: Fix link in SSL docs (GH-8173)
Miss Islington (bot) [Sat, 7 Jul 2018 22:47:35 +0000 (15:47 -0700)]
closes bpo-34050: Fix link in SSL docs (GH-8173)

(cherry picked from commit 9c5ba097485c8c643b670acd4026f4382bc92f4b)

Co-authored-by: Marcin Niemira <marcin@niemira.net>
7 years agoMake PySimpleQueueType static. (GH-8175)
Miss Islington (bot) [Sat, 7 Jul 2018 22:42:28 +0000 (15:42 -0700)]
Make PySimpleQueueType static. (GH-8175)

(cherry picked from commit 9b50a7f29b761920c04d8c3435d216145da15311)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
7 years agobpo-33702: Add some missing links in production lists and do a little polish (GH...
Miss Islington (bot) [Sat, 7 Jul 2018 21:09:09 +0000 (14:09 -0700)]
bpo-33702: Add some missing links in production lists and do a little polish (GH-7259)

(cherry picked from commit caccca78e46bf3c3b24e09b3afb1c1b08c39990c)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agobpo-33804: Document that the argument for io.TextIOBase.read() is optional (GH-7510)
Miss Islington (bot) [Sat, 7 Jul 2018 20:39:03 +0000 (13:39 -0700)]
bpo-33804: Document that the argument for io.TextIOBase.read() is optional (GH-7510)

(cherry picked from commit b6bb77c2b8e83ba6cb845c7b512ac564276e854f)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agoFix moduleauthor/sectionauthor directives in Enum (GH-8117)
Miss Islington (bot) [Sat, 7 Jul 2018 19:32:08 +0000 (12:32 -0700)]
Fix moduleauthor/sectionauthor directives in Enum (GH-8117)

(cherry picked from commit 2d748389dc9c8d083f51c7d28761e088a5468c86)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agoAdd missing closing parentheses (GH-8144)
Miss Islington (bot) [Sat, 7 Jul 2018 19:19:55 +0000 (12:19 -0700)]
Add missing closing parentheses (GH-8144)

(cherry picked from commit 03dd0e794e26afb5fa998d10ae2071e2cb0bc634)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agoMake various internal _testbuffer symbols static. (GH-8160)
Miss Islington (bot) [Sat, 7 Jul 2018 18:37:54 +0000 (11:37 -0700)]
Make various internal _testbuffer symbols static. (GH-8160)

(cherry picked from commit 6cfe45a5c3d41c08d09f319ea68065b10200b13f)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
7 years ago[3.7] bpo-34065: Improve the markup of logging.basicConfig() arguments (GH-8153)...
Dong-hee Na [Sat, 7 Jul 2018 16:12:11 +0000 (01:12 +0900)]
[3.7] bpo-34065: Improve the markup of logging.basicConfig() arguments (GH-8153). (GH-8156)

(cherry picked from commit 2800dcf656229c2ca4c90b4ddbace0717c41bb9e)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
7 years agoFix typo in TypeVar docstring (GH-8142)
Miss Islington (bot) [Sat, 7 Jul 2018 16:05:36 +0000 (09:05 -0700)]
Fix typo in TypeVar docstring (GH-8142)

"can be used do declare" → "can be used to declare"
(cherry picked from commit 86bfed372b81b8111a56a3311d537566d5df7f61)

Co-authored-by: João D. Ferreira <jotomicron@gmail.com>
7 years agoMake two PyModuleDef_Slot symbols static in _testmultiphase. (GH-8147)
Miss Islington (bot) [Sat, 7 Jul 2018 04:25:22 +0000 (21:25 -0700)]
Make two PyModuleDef_Slot symbols static in _testmultiphase. (GH-8147)

(cherry picked from commit cb4bae72c965ce946e0fdb48db67c73afdcb5649)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
7 years agocloses bpo-34056: Always return bytes from _HackedGetData.get_data(). (GH-8130)
Miss Islington (bot) [Sat, 7 Jul 2018 04:00:45 +0000 (21:00 -0700)]
closes bpo-34056: Always return bytes from _HackedGetData.get_data(). (GH-8130)

* Always return bytes from _HackedGetData.get_data().

Ensure the imp.load_source shim always returns bytes by reopening the file in
binary mode if needed. Hash-based pycs have to receive the source code in bytes.

It's tempting to change imp.get_suffixes() to always return 'rb' as a mode, but
that breaks some stdlib tests and likely 3rdparty code, too.
(cherry picked from commit b0274f2cddd36b49fe5080efbe160277ef546471)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
7 years agobpo-34042: Fix dict.copy() to maintain correct total refcount (GH-8119)
Miss Islington (bot) [Fri, 6 Jul 2018 16:40:17 +0000 (09:40 -0700)]
bpo-34042: Fix dict.copy() to maintain correct total refcount (GH-8119)

(cherry picked from commit 0b75228700e0077d8bf2636e74733389514b4b2f)

Co-authored-by: Yury Selivanov <yury@magic.io>
7 years agobpo-34054: multiprocessing uses time.monotonic() (GH-8118)
Miss Islington (bot) [Fri, 6 Jul 2018 12:11:21 +0000 (05:11 -0700)]
bpo-34054: multiprocessing uses time.monotonic() (GH-8118)

The multiprocessing module now uses the monotonic clock
time.monotonic() instead of the system clock time.time() to implement
timeouts.
(cherry picked from commit c2368cbc83ca2bafeaea0e4760be4996046d0444)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
7 years agofix two typos in Objects/odictobject.c comments (GH-8040)
Miss Islington (bot) [Fri, 6 Jul 2018 12:08:51 +0000 (05:08 -0700)]
fix two typos in Objects/odictobject.c comments (GH-8040)

(cherry picked from commit 6f19fc6d5607040ee36153a64a2ed004582af91f)

Co-authored-by: Robert Krzyzanowski <technoguyrob@gmail.com>
7 years ago[3.7] bpo-33899: Make tokenize module mirror end-of-file is end-of-line behavior...
Ammar Askar [Fri, 6 Jul 2018 10:21:05 +0000 (06:21 -0400)]
[3.7] bpo-33899: Make tokenize module mirror end-of-file is end-of-line behavior (GH-7891) (GH-8132)

Most of the change involves fixing up the test suite, which previously made
the assumption that there wouldn't be a new line if the input didn't end in
one.

Contributed by Ammar Askar.

(cherry picked from commit c4ef4896eac86a6759901c8546e26de4695a1389)

7 years agoFix GCC warning in Python/hamt.c (GH-7618)
Miss Islington (bot) [Fri, 6 Jul 2018 09:43:05 +0000 (02:43 -0700)]
Fix GCC warning in Python/hamt.c (GH-7618)

(cherry picked from commit d8c3e820b4fcdc45b80ba47f615c95e99e2e931b)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
7 years agoDoc: Remove superfluous markup. (GH-8112)
Miss Islington (bot) [Fri, 6 Jul 2018 09:34:24 +0000 (02:34 -0700)]
Doc: Remove superfluous markup. (GH-8112)

The line is speaking of a list of commands, not the list command.
(cherry picked from commit 7943c5e8b525694b837d097d0fcce5097efc5626)

Co-authored-by: Julien Palard <julien@palard.fr>
7 years agoUpdate Stackless Python wiki URL (GH-8072)
Julien Palard [Fri, 6 Jul 2018 09:33:02 +0000 (11:33 +0200)]
Update Stackless Python wiki URL (GH-8072)

It was moved from bitbucket to GitHub.

(cherry picked from commit a6e1e41e0563c87e93085d3a7f7d96e9bbf792d7)

7 years agoMake TaskStepMethWrapper_Type and TaskWakeupMethWrapper_Type static. (GH-8127)
Miss Islington (bot) [Fri, 6 Jul 2018 05:58:27 +0000 (22:58 -0700)]
Make TaskStepMethWrapper_Type and TaskWakeupMethWrapper_Type static. (GH-8127)

(cherry picked from commit 3c8aae9ffe13d0f2ad4ff81cdf56bc6393af362a)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
7 years agoFix typo in dataclasses documentation (GH-8102)
Miss Islington (bot) [Thu, 5 Jul 2018 23:28:18 +0000 (16:28 -0700)]
Fix typo in dataclasses documentation (GH-8102)

(cherry picked from commit e55ca3fdcbb8dda04f6f9fb2ccd1069aa1100cd5)

Co-authored-by: Artjom <tjomk@users.noreply.github.com>
7 years agobpo-34044: subprocess.Popen copies startupinfo (GH-8090) (GH-8121)
Victor Stinner [Thu, 5 Jul 2018 21:15:28 +0000 (23:15 +0200)]
bpo-34044: subprocess.Popen copies startupinfo (GH-8090) (GH-8121)

subprocess.Popen now copies the startupinfo argument to leave it
unchanged: it will modify the copy, so that the same STARTUPINFO
object can be used multiple times.

Add subprocess.STARTUPINFO._copy() private method.

Python 3.7 backport from master makes the copy() private: renamed to
_copy().

(cherry picked from commit 483422f57e5d8c8bf8820fec29fc9b96bb15d4ef)

7 years agobpo-33988: Fix test_warnings using -W error (GH-7985)
Xtreak [Thu, 5 Jul 2018 16:59:46 +0000 (22:29 +0530)]
bpo-33988: Fix test_warnings using -W error (GH-7985)

Use DeprecationWarning instead of PendingDeprecationWarning.

7 years agoFix fuzz testing for marshal.loads(). (GH-8106)
Miss Islington (bot) [Thu, 5 Jul 2018 10:44:11 +0000 (03:44 -0700)]
Fix fuzz testing for marshal.loads(). (GH-8106)

(cherry picked from commit 09bb918a61031377d720f1a0fa1fe53c962791b6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agobpo-33720: Improve tests for the stack overflow in marshal.loads(). (GH-7336)
Miss Islington (bot) [Thu, 5 Jul 2018 08:45:24 +0000 (01:45 -0700)]
bpo-33720: Improve tests for the stack overflow in marshal.loads(). (GH-7336)

(cherry picked from commit fc05e68d8fac70349b7ea17ec14e7e0cfa956121)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agoRemoved unused import from tzinfo_examples.py. (GH-7994)
Miss Islington (bot) [Thu, 5 Jul 2018 05:08:26 +0000 (22:08 -0700)]
Removed unused import from tzinfo_examples.py. (GH-7994)

(cherry picked from commit 3a9bb5f269c8534606eb02d1faa2c882d8cb8530)

Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
7 years agobpo-30516: Fix documentation issue with -timedelta in datetime (GH-7348) (GH-8093)
Miss Islington (bot) [Wed, 4 Jul 2018 23:04:24 +0000 (16:04 -0700)]
bpo-30516: Fix documentation issue with -timedelta in datetime (GH-7348) (GH-8093)

This commit fixes the -timedelta overfllow issue not documented properly.

Signed-off-by: Farhaan Bukhsh <farhaan.bukhsh@gmail.com>
(cherry picked from commit 5b6e49a1393b3e2313471696e3568e26296137b4)

Co-authored-by: Farhaan Bukhsh <farhaan.bukhsh@gmail.com>
7 years agobpo-32942: Fix environment dependent test_script_helper (GH-8034)
Miss Islington (bot) [Wed, 4 Jul 2018 10:35:08 +0000 (03:35 -0700)]
bpo-32942: Fix environment dependent test_script_helper (GH-8034)

Result of function interpreter_requires_environment() depends on os.environ.
This was not covered by the tests, leading to fail when PYTHONHOME was set.
(cherry picked from commit a390cb6b6fb6638e91d699513167e8f35b47f846)

Co-authored-by: Lorenz Mende <Lorenz.mende@gmail.com>
7 years agobpo-34040, multiprocessing: Fix test_forkserver_sigkill() (GH-8081)
Miss Islington (bot) [Wed, 4 Jul 2018 10:10:14 +0000 (03:10 -0700)]
bpo-34040, multiprocessing: Fix test_forkserver_sigkill() (GH-8081)

Fix test_forkserver_sigkill() of test_multiprocessing_forkserver:
give more time to the first child process to complete, double the
sleep in the parent process.

Reduce also the child process sleep from 1000 ms to 500 ms, to not change
the total duration of the test.
(cherry picked from commit 07888e1cce89e9bb7dc501e287b4cb126e01c378)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
7 years agobpo-34010: Fix tarfile read performance regression (GH-8020)
Miss Islington (bot) [Wed, 4 Jul 2018 08:32:41 +0000 (01:32 -0700)]
bpo-34010: Fix tarfile read performance regression (GH-8020)

During buffered read, use a list followed by join instead of extending a bytes object.
This is how it was done before but changed in commit b506dc32c1a.
(cherry picked from commit 12a08c47601cadea8e7d3808502cdbcca87b2ce2)

Co-authored-by: hajoscher <hajoscher@gmail.com>
7 years agoMake GenericAlias_Type and Generic_Type static. (GH-8076)
Miss Islington (bot) [Wed, 4 Jul 2018 06:08:57 +0000 (23:08 -0700)]
Make GenericAlias_Type and Generic_Type static. (GH-8076)

(cherry picked from commit 97ae32c92ecc7b3c29f8829a2b79f0f8f8bbf2cc)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
7 years agoDon't export pending_threadfunc from _testcapi. (GH-8075)
Miss Islington (bot) [Wed, 4 Jul 2018 05:50:34 +0000 (22:50 -0700)]
Don't export pending_threadfunc from _testcapi. (GH-8075)

(cherry picked from commit b4588c2fffbda91e4c2f0cf2b0fc3d14def95608)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
7 years agobpo-24596: Decref module in PyRun_SimpleFileExFlags() on SystemExit (GH-7918) (GH...
Miss Islington (bot) [Tue, 3 Jul 2018 20:13:28 +0000 (13:13 -0700)]
bpo-24596: Decref module in PyRun_SimpleFileExFlags() on SystemExit (GH-7918) (GH-8070)

PyErr_Print() will not return when the exception is a SystemExit, so
decref the __main__ module object in that case.
(cherry picked from commit d8cba5d16f1333fd625726fc72e66afbd45b8d00)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
7 years agobpo-34018: Doc'd that type names of SQLite converters are case-insensitive. (GH-8042...
Miss Islington (bot) [Tue, 3 Jul 2018 12:37:16 +0000 (05:37 -0700)]
bpo-34018: Doc'd that type names of SQLite converters are case-insensitive. (GH-8042) (GH-8065)

(cherry picked from commit 831c29721dcb1b768c6315a4b8a4059c4c97ee8b)

Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
7 years agobpo-34019: Fix wrong arguments for Opera Browser (GH-8047)
Miss Islington (bot) [Tue, 3 Jul 2018 12:17:28 +0000 (05:17 -0700)]
bpo-34019: Fix wrong arguments for Opera Browser (GH-8047)

The Opera Browser was using a outdated command line invocation that resulted in an incorrect URL being opened in the browser when requested using the webbrowser module.

* Correct the arguments passed to the Opera Browser when opening a new URL.
(cherry picked from commit 3cf1f154edb88c108877729ea09f4ac174697fea)

Co-authored-by: Bumsik Kim <k.bumsik@gmail.com>
7 years agobpo-33735: Fix test_multiprocessing random failure (GH-8059)
Miss Islington (bot) [Tue, 3 Jul 2018 11:38:56 +0000 (04:38 -0700)]
bpo-33735: Fix test_multiprocessing random failure (GH-8059)

When hunting memory leaks using -R 3:3, test_imap_unordered() of
test_multiprocessing leaks randomly a few memory blocks. It is a
false alarm: when testing using -R 3:20 for example, no leak is
detected.

Modify test_imap_unordered() to be closer to test_imap():

* Only test 10 numbers instead of 1000: it's a pool of 4 processes, so
  10 is enough to test at least one number per process
* Use chunksize=100 instead of chunksize=53 to mimick test_imap()
(cherry picked from commit 23401fb960bb94e6ea62d2999527968d53d3fc65)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
7 years agobpo-34006: Revert line length limit for Windows help docs (GH-8051)
Miss Islington (bot) [Mon, 2 Jul 2018 22:23:22 +0000 (15:23 -0700)]
bpo-34006: Revert line length limit for Windows help docs (GH-8051)

 The line-length limit is not needed because the pages appear in a separate app rather
 than on a browser tab.  It can also interact badly with the DPI setting.
(cherry picked from commit d824ca7f4df9b5f77cf02490b0e98c2408e21fee)

Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
7 years agobpo-33961: Adjusted dataclasses docs to correct exceptions raised. (GH-7917)
Chris Cogdon [Mon, 2 Jul 2018 10:21:50 +0000 (03:21 -0700)]
bpo-33961: Adjusted dataclasses docs to correct exceptions raised. (GH-7917)

7 years agobpo-33978: Close existing handlers before logging (re-)configuration. (GH-8008) ...
Miss Islington (bot) [Mon, 2 Jul 2018 09:35:09 +0000 (02:35 -0700)]
bpo-33978: Close existing handlers before logging (re-)configuration. (GH-8008) (GH-8044)

(cherry picked from commit 087570af6d5d39b51bdd5e660a53903960e58678)

Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
7 years agoDoc: Remove unused image file (GH-8027)
Miss Islington (bot) [Sat, 30 Jun 2018 18:30:43 +0000 (11:30 -0700)]
Doc: Remove unused image file (GH-8027)

(cherry picked from commit fe524df37cf3a8d4de291e7fc48257f96ff91bbe)

7 years agobpo-25862: Fix several bugs in the _io module. (GH-8026)
Miss Islington (bot) [Sat, 30 Jun 2018 18:25:37 +0000 (11:25 -0700)]
bpo-25862: Fix several bugs in the _io module. (GH-8026)

They can be exposed when some C API calls fail due to lack of
memory.

* Failed Py_BuildValue() could cause an assertion error in the
  following TextIOWrapper.tell().
* input_chunk could be decrefed twice in TextIOWrapper.seek()
  after failed Py_BuildValue().
* initvalue could leak in StringIO.__getstate__() after failed
  PyDict_Copy().
(cherry picked from commit fdb5a50ef34f7951c3b01eb77b1359725a9ad670)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agobpo-32568: make select.epoll() and its docs consistent (GH-7840) (GH-8024)
Miss Islington (bot) [Sat, 30 Jun 2018 13:03:19 +0000 (06:03 -0700)]
bpo-32568: make select.epoll() and its docs consistent (GH-7840) (GH-8024)

* `flags` is indeed deprecated, but there is a validation on its value for
  backwards compatibility reasons.  This adds mention of this in the docs.
* The docs say that `sizehint` is deprecated and ignored, but it is still
  used when `epoll_create1()` is unavailable. This adds mention of this in
  the docs.
* `sizehint=-1` is acceptable again, and is replaced with `FD_SETSIZE-1`.
  This is needed to have a default value available at the Python level,
  since `FD_SETSIZE` is not exposed to Python. (see: bpo-31938)
* Reject `sizehint=0` since it is invalid to pass on to `epoll_create()`.

The relevant tests have also been updated.

(cherry picked from commit 0cdf5f42898350261c5ff65d96334e736130780f)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
7 years agobpo-33974: Fix passing special characters to ttk widgets. (GH-7986)
Miss Islington (bot) [Sat, 30 Jun 2018 06:42:57 +0000 (23:42 -0700)]
bpo-33974: Fix passing special characters to ttk widgets. (GH-7986)

Fix passing lists and tuples of strings containing special characters
'"', '\\', '{', '}' and '\n' as options to tkinter.ttk widgets.
(cherry picked from commit 5bb5bbfca847524bab5f2368bdb48eedf5dba74f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agoFix redundant declaration of _PyImport_AddModuleObject (GH-7992)
Miss Islington (bot) [Fri, 29 Jun 2018 23:03:07 +0000 (16:03 -0700)]
Fix redundant declaration of _PyImport_AddModuleObject (GH-7992)

(cherry picked from commit f874bd1f0630644f3e3faaa2d51e6749465c70bd)

Co-authored-by: Jeremy Cline <jeremy@jcline.org>
7 years agobpo-25862: Fix assertion failures in io.TextIOWrapper.tell(). (GH-3918)
Miss Islington (bot) [Fri, 29 Jun 2018 10:34:34 +0000 (03:34 -0700)]
bpo-25862: Fix assertion failures in io.TextIOWrapper.tell(). (GH-3918)

(cherry picked from commit 23db935bcf258657682e66464bf8512def8af830)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
7 years agoFix the indentation in the documentation of bin() and hash() (GH-7998)
Miss Islington (bot) [Fri, 29 Jun 2018 10:16:26 +0000 (03:16 -0700)]
Fix the indentation in the documentation of bin() and hash() (GH-7998)

(cherry picked from commit bda9c3eae3ad16e43145599ac6359bfdcaf1fd4a)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agobpo-14117: Make minor tweaks to turtledemo (GH-8002)
Miss Islington (bot) [Fri, 29 Jun 2018 05:30:44 +0000 (22:30 -0700)]
bpo-14117: Make minor tweaks to turtledemo (GH-8002)

The 'wikipedia' example is now 'rosette', describing what it draws.
The 'penrose' print output is reduced.  The 'tree' '1024'
output is eliminated.
(cherry picked from commit 891a1f86d415779cf67ca23e626a868e586feb05)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
7 years agobpo-27500: Fix static version of getaddrinfo to resolve IPv6 (GH-7993)
Miss Islington (bot) [Fri, 29 Jun 2018 02:16:48 +0000 (19:16 -0700)]
bpo-27500: Fix static version of getaddrinfo to resolve IPv6 (GH-7993)

(cherry picked from commit d904c238ca3551750cb97d15d827c3e525970867)

Co-authored-by: Yury Selivanov <yury@magic.io>
7 years agobpo-31546: Fix input hook integration (GH-7978)
Miss Islington (bot) [Thu, 28 Jun 2018 17:48:37 +0000 (10:48 -0700)]
bpo-31546: Fix input hook integration (GH-7978)

(cherry picked from commit 9b9d58f0d88b338eb8d2ae0da5cd91d60d1b0e39)

Co-authored-by: Thomas A Caswell <tcaswell@gmail.com>
7 years agobpo-33985: Implement ContextVar.name attribute. (GH-7980)
Miss Islington (bot) [Thu, 28 Jun 2018 17:39:54 +0000 (10:39 -0700)]
bpo-33985: Implement ContextVar.name attribute. (GH-7980)

(cherry picked from commit 41cb0baea96a80360971908a0bd79d9d40dd5e44)

Co-authored-by: Yury Selivanov <yury@magic.io>
7 years agobpo-32996: Enhancements to What's New based on feedback (GH-7988)
Miss Islington (bot) [Thu, 28 Jun 2018 16:14:52 +0000 (09:14 -0700)]
bpo-32996: Enhancements to What's New based on feedback (GH-7988)

(cherry picked from commit 4d26c8a177d8ada440b3cfdfb1d0423ab5ca81a7)

Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
7 years agoFix NEWS entry for bpo-31647
Ned Deily [Wed, 27 Jun 2018 17:27:45 +0000 (13:27 -0400)]
Fix NEWS entry for bpo-31647

7 years agobpo-33958: Doc: Remove unused variable in example (GH-7927)
Miss Islington (bot) [Thu, 28 Jun 2018 06:41:29 +0000 (23:41 -0700)]
bpo-33958: Doc: Remove unused variable in example (GH-7927)

(cherry picked from commit 62b6cea6b843076cfd6631eccd9347e8c3dd9458)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <srinivasreddy@users.noreply.github.com>
7 years agostart 3.7.0+
Ned Deily [Wed, 27 Jun 2018 22:29:26 +0000 (18:29 -0400)]
start 3.7.0+

7 years agoMerge 3.7.0 final changes
Ned Deily [Wed, 27 Jun 2018 22:23:18 +0000 (18:23 -0400)]
Merge 3.7.0 final changes

7 years agobpo-33715: Fix multiprocessing test_wait_result() (GH-7971)
Miss Islington (bot) [Wed, 27 Jun 2018 20:47:44 +0000 (13:47 -0700)]
bpo-33715: Fix multiprocessing test_wait_result() (GH-7971)

Increase timeouts from 10 seconds to 1 minute.
(cherry picked from commit 492572715aa0f4ddab51f979f7f56465c762227c)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
7 years agobpo-33913: Fix test_multiprocessing_main_handling (GH-7972)
Miss Islington (bot) [Wed, 27 Jun 2018 20:41:39 +0000 (13:41 -0700)]
bpo-33913: Fix test_multiprocessing_main_handling (GH-7972)

bpo-30339, bpo-33913:

* Increase timeout from 10 seconds to 1 minute in
  test_source_main_skipped_in_children source of
  test_multiprocessing_main_handling.
* Replace time.time() with time.monotonic().
* On timeout, include the duration in the error message.
(cherry picked from commit 64737e9ae2081e529935ecf07f44e89f362d1c4b)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
7 years agobpo-30356: Fix test_mymanager_context() of multiprocessing (GH-7968)
Miss Islington (bot) [Wed, 27 Jun 2018 16:38:37 +0000 (09:38 -0700)]
bpo-30356: Fix test_mymanager_context() of multiprocessing (GH-7968)

test_mymanager_context() now also accepts -SIGTERM as an expected
exitcode for the manager process. The process is killed with SIGTERM
if it takes longer than 1 second to stop.
(cherry picked from commit fbd7172325e6ce55b6d5d3d7603e4c1c8a219cb8)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
7 years agoRevert "bpo-33929: multiprocessing: fix handle leak on race condition (GH-7921)"...
Victor Stinner [Wed, 27 Jun 2018 13:17:34 +0000 (15:17 +0200)]
Revert "bpo-33929: multiprocessing: fix handle leak on race condition (GH-7921)" (GH-7963)

This reverts commit 8b1ebcd7cb3319273ea635df78ebf9ad40171514.

7 years agobpo-33929: multiprocessing: fix handle leak on race condition (GH-7921)
Miss Islington (bot) [Wed, 27 Jun 2018 09:59:44 +0000 (02:59 -0700)]
bpo-33929: multiprocessing: fix handle leak on race condition (GH-7921)

Fix a race condition in Popen of
multiprocessing.popen_spawn_win32. The child process now duplicates
the read end of pipe instead of "stealing" it.

Previously, the read end of pipe was "stolen" by the child process,
but it leaked a handle if the child process had been terminated
before it could steal the handle from the parent process.
(cherry picked from commit 2cc9d21fffb8146d30e6fb4221e32410ba4b4ab7)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
7 years agobpo-30317, test_multiprocessing: fix test_timeout() (GH-7957)
Miss Islington (bot) [Wed, 27 Jun 2018 09:22:43 +0000 (02:22 -0700)]
bpo-30317, test_multiprocessing: fix test_timeout() (GH-7957)

Tolerate a different of 50 ms, instead of just 30 ms, in
test_timeout() of multiprocessing tests. This change should fix such
test failure on Windows:

FAIL: test_timeout (test.test_multiprocessing_spawn.WithProcessesTestQueue)
Traceback (most recent call last):
  File "lib\test\_test_multiprocessing.py", line 753, in test_timeout
    self.assertGreaterEqual(delta, 0.170)
AssertionError: 0.16138982772827148 not greater than or equal to 0.17
(cherry picked from commit f15f66d275d1166839312c9ff3a67c00b486c7d6)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
7 years agobpo-24567: Random subnormal.diff (GH-7954) (GH-7955)
Miss Islington (bot) [Wed, 27 Jun 2018 08:53:04 +0000 (01:53 -0700)]
bpo-24567: Random subnormal.diff (GH-7954) (GH-7955)

Handle subnormal weights for choices()
(cherry picked from commit ddf7171911e117aa7ad4b0f9ded4f0c3a4ca0fec)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
7 years agobpo-33975: Avoid small type when running IDLE's htests. (GH-7944)
Miss Islington (bot) [Wed, 27 Jun 2018 04:37:51 +0000 (21:37 -0700)]
bpo-33975: Avoid small type when running IDLE's htests. (GH-7944)

Import pyshell first in htest to call SetProcessDpiAwareness on Windows
before tkinter.Tk() is called for the htest. Apparently, 'root.destroy()'
undoes a previous 'root = Tk()'. Since IDLE unittests always destroy roots,
a unittest before an htest does not require anything more to work right.
Since part of the purpose of human-viewed tests is to determine that
widgets look right, it is important that they look the same for testing
as when running IDLE.
(cherry picked from commit 3c8043d8fac4c0d05c0ba9e4e555e2f3165f2fe0)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
7 years agouse rich markup for PEP reference (GH-7939)
Miss Islington (bot) [Wed, 27 Jun 2018 04:17:14 +0000 (21:17 -0700)]
use rich markup for PEP reference (GH-7939)

it's better to refer to PEP with `pep` role in reStructuredText. It also links to the PEP page.
(cherry picked from commit df748c20dabcec5a6e89e0dd74fff21110f8755a)

Co-authored-by: Behzad B. Mokhtari <35877268+perplexionist@users.noreply.github.com>
7 years ago3.7.0 final v3.7.0
Ned Deily [Wed, 27 Jun 2018 01:03:55 +0000 (21:03 -0400)]
3.7.0 final

7 years agoSync the importlib magic number in test_importlib for 3.7.0
Ned Deily [Wed, 27 Jun 2018 03:00:18 +0000 (23:00 -0400)]
Sync the importlib magic number in test_importlib for 3.7.0

7 years agobpo-29514: Make magic number test work for candidates
Ned Deily [Wed, 27 Jun 2018 02:24:59 +0000 (22:24 -0400)]
bpo-29514: Make magic number test work for candidates

7 years agoSync the importlib magic number in test_importlib for 3.7.0
Ned Deily [Wed, 27 Jun 2018 03:00:18 +0000 (23:00 -0400)]
Sync the importlib magic number in test_importlib for 3.7.0

7 years agobpo-29514: Make magic number test work for candidates
Ned Deily [Wed, 27 Jun 2018 02:24:59 +0000 (22:24 -0400)]
bpo-29514: Make magic number test work for candidates

7 years agobpo-33956: update vendored expat to 2.2.5 (GH-7925)
Miss Islington (bot) [Wed, 27 Jun 2018 02:44:32 +0000 (19:44 -0700)]
bpo-33956: update vendored expat to 2.2.5 (GH-7925)

(cherry picked from commit 4e21100fa7bf66e0b32146d3f46ae16afc73fee1)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
7 years agobpo-33932: Calling Py_Initialize() twice does nothing (GH-7845)
Miss Islington (bot) [Fri, 22 Jun 2018 17:33:48 +0000 (10:33 -0700)]
bpo-33932: Calling Py_Initialize() twice does nothing (GH-7845)

Calling Py_Initialize() twice does nothing, instead of failing with a
fatal error: restore the Python 3.6 behaviour.
(cherry picked from commit 209abf746985526bce255e2fba97d3246924885d)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
7 years agobpo-33851: Fix ast.get_docstring() for a node that lacks a docstring. (GH-7682)
Miss Islington (bot) [Fri, 15 Jun 2018 08:25:13 +0000 (01:25 -0700)]
bpo-33851: Fix ast.get_docstring() for a node that lacks a docstring. (GH-7682)

(cherry picked from commit 08f127a3cad8ce4eb281d30d9488c91b0fd7cfed)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 years agoFix nested list in 3.7 What's New (GH-7659) (GH-7660)
Miss Islington (bot) [Tue, 12 Jun 2018 09:02:53 +0000 (02:02 -0700)]
Fix nested list in 3.7 What's New (GH-7659) (GH-7660)

(cherry picked from commit 5a9820918077a65db90f24733edc8935c3e2130e)

Co-authored-by: Ned Deily <nad@python.org>
7 years agobpo-33873: Backport regrtest from master to 3.7 (GH-7935)
Victor Stinner [Tue, 26 Jun 2018 21:47:35 +0000 (23:47 +0200)]
bpo-33873: Backport regrtest from master to 3.7 (GH-7935)

* bpo-33718: regrtest: use format_duration() to display failed tests (GH-7686)

* Enhance also format_duration(): work on integers and rounds towards
  +infinity (math.ceil).
* Write unit tests on format_duration()

(cherry picked from commit 4ffe9c2b251f6e027b26250b7a2618e78d4edd22)

* bpo-33873: regrtest: Add warning on -R 1:3 (GH-7736)

regrtest: Add warning when using less than 3 warmup runs like -R 1:3.
(cherry picked from commit cac4fef8860e66a9da67d09762f5b614b9471a12)

* bpo-33873: Fix bug in `runtest.py` and add checks for invalid `-R` parameters (GH-7735)

Fix bug in `Lib/test/libregrtest/runtest.py` that makes running tests an extra time than the specified number of runs.

Add check for invalid --huntrleaks/-R parameters.

(cherry picked from commit 58ed7307ea0b5c5aa052291ebc3030f314f938d8)

7 years agobpo-33957: Doc: Use better wording (GH-7912)
Miss Islington (bot) [Tue, 26 Jun 2018 08:47:10 +0000 (01:47 -0700)]
bpo-33957: Doc: Use better wording (GH-7912)

(cherry picked from commit 866c168a5f9330d8a3ae109fa8baab2509f35cc7)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <srinivasreddy@users.noreply.github.com>
7 years agobpo-33924: Add missed mac-specific 'windows' to 'window' changes (GH-7920)
Miss Islington (bot) [Tue, 26 Jun 2018 01:37:46 +0000 (18:37 -0700)]
bpo-33924: Add missed mac-specific 'windows' to 'window' changes (GH-7920)

These should have been included in PR 7836.
(cherry picked from commit 42397731d7ba8bdf63025d48008d133cb2070229)

Co-authored-by: Mark Roseman <mark@markroseman.com>
7 years ago[3.7] bpo-33573: docs to suggest median() alternatives for non-numeric data (GH-7587...
Miss Islington (bot) [Mon, 25 Jun 2018 11:18:54 +0000 (04:18 -0700)]
[3.7] bpo-33573: docs to suggest median() alternatives for non-numeric data (GH-7587) (GH-7906)

(cherry picked from commit fdd6e0bf18517c3dc5e24c48fbfe890229fad1b5)

7 years agobpo-33952: Fix typo in str.upper() documentation (GH-7898) (GH-7903)
Miss Islington (bot) [Mon, 25 Jun 2018 10:42:20 +0000 (03:42 -0700)]
bpo-33952: Fix typo in str.upper() documentation (GH-7898) (GH-7903)

(cherry picked from commit 4a6e746079441d18c30e3c4d014f106faaf7792f)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agobpo-33943: Add references in the docs for logging.basicConfig (GH-7858) (GH-7900)
Miss Islington (bot) [Mon, 25 Jun 2018 06:25:58 +0000 (23:25 -0700)]
bpo-33943: Add references in the docs for logging.basicConfig (GH-7858) (GH-7900)

Adds references to info about file modes, `time.strftime()`, string formatting
syntaxes, and logging levels.

(cherry picked from commit a8ddf85a84364d2c660e6670a7e06621993d1fdc)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agobpo-33951: IDLE test_configdialog: call page.update in setUpClass (GH-7892)
Miss Islington (bot) [Sun, 24 Jun 2018 20:55:39 +0000 (13:55 -0700)]
bpo-33951: IDLE test_configdialog: call page.update in setUpClass (GH-7892)

This avoids a failure in at least one case when running only a single
test method rather than all tests in the module.

The issue came up when testing the following on Windows 10 Pro 64-bit:
HighPageTest.test_highlight_target_text_mouse
(cherry picked from commit 2af9f5d334eeca588eeee87d177faf0012c63a03)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
7 years agoEnable GUI tests in VSTS Linux builds via xvfb-run (GH-7890)
Miss Islington (bot) [Sun, 24 Jun 2018 15:39:31 +0000 (08:39 -0700)]
Enable GUI tests in VSTS Linux builds via xvfb-run (GH-7890)

(cherry picked from commit 3f197f94d67be25d5489e14f2f06b4a00e818747)

Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
7 years agobpo-33451: Close pyc files before calling PyEval_EvalCode() (GH-7884)
Miss Islington (bot) [Sun, 24 Jun 2018 03:31:21 +0000 (20:31 -0700)]
bpo-33451: Close pyc files before calling PyEval_EvalCode() (GH-7884)

Directly executed pyc files were being kept open longer than necessary.
(cherry picked from commit ea737751b10fff752aafed0231e8a02b82ba365d)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
7 years agobpo-33950: Remove IDLE htest spec for a deleted file. (GH-7881)
Miss Islington (bot) [Sat, 23 Jun 2018 21:52:45 +0000 (14:52 -0700)]
bpo-33950: Remove IDLE htest spec for a deleted file. (GH-7881)

In configdialog, the custom tabbedpages widget was replaced
by ttk.notebook several months ago.
(cherry picked from commit 5ae70f66ff1949eec35ff207c97cfe572c4e74c8)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
7 years agobpo-33887: Add TOC to Design and History FAQ(GH-7766)
Miss Islington (bot) [Sat, 23 Jun 2018 18:43:43 +0000 (11:43 -0700)]
bpo-33887: Add TOC to Design and History FAQ(GH-7766)

(cherry picked from commit 38cf49bf695903ac7a8516bca6bbb6b32d935bb5)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agobpo-33805: Improve error message of dataclasses.replace() (GH-7580)
Miss Islington (bot) [Sat, 23 Jun 2018 15:04:01 +0000 (08:04 -0700)]
bpo-33805: Improve error message of dataclasses.replace() (GH-7580)

(cherry picked from commit 3d70f7aef614c396f516b5fccedeebe98598714d)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
7 years agobpo-33916: Fix bz2 and lzma init when called twice (GH-7843)
Miss Islington (bot) [Sat, 23 Jun 2018 08:53:03 +0000 (01:53 -0700)]
bpo-33916: Fix bz2 and lzma init when called twice (GH-7843)

bz2, lzma: When Decompressor.__init__() is called twice, free the old
lock to not leak memory.
(cherry picked from commit 9b7cf757213cf4d7ae1d436d86ad53f5ba362d55)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
7 years agobpo-33877: Remove UNIX qualification for running complete programs (GH-7744)
Miss Islington (bot) [Fri, 22 Jun 2018 21:51:07 +0000 (14:51 -0700)]
bpo-33877: Remove UNIX qualification for running complete programs (GH-7744)

The statement is true for Windows (and macOS) also.
(cherry picked from commit c9d43c702a53804c23ecb22a0dbf6a47c804d2b1)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agobpo-33885: Replace "hook function" with "callable" (GH-7765)
Miss Islington (bot) [Fri, 22 Jun 2018 21:30:45 +0000 (14:30 -0700)]
bpo-33885: Replace "hook function" with "callable" (GH-7765)

(cherry picked from commit c45cb479074b5d25f0d382d3109f527520a9f03c)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
7 years agobpo-33932: Calling Py_Initialize() twice does nothing (GH-7845)
Miss Islington (bot) [Fri, 22 Jun 2018 17:33:48 +0000 (10:33 -0700)]
bpo-33932: Calling Py_Initialize() twice does nothing (GH-7845)

Calling Py_Initialize() twice does nothing, instead of failing with a
fatal error: restore the Python 3.6 behaviour.
(cherry picked from commit 209abf746985526bce255e2fba97d3246924885d)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
7 years agobpo-30345: Add -g to LDFLAGS for LTO (GH-7709) (GH-7824)
Miss Islington (bot) [Fri, 22 Jun 2018 07:10:20 +0000 (00:10 -0700)]
bpo-30345: Add -g to LDFLAGS for LTO (GH-7709) (GH-7824)

Add -g to LDFLAGS when compiling with LTO to get debug symbols.
(cherry picked from commit 06fe77a84bd29d51506ab2ff703ae585a6121af2)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
7 years agobpo-33905: Add test for idlelib.stackview.StackBrowser. (GH-7852)
Miss Islington (bot) [Fri, 22 Jun 2018 02:48:45 +0000 (19:48 -0700)]
bpo-33905: Add test for idlelib.stackview.StackBrowser. (GH-7852)

Increases coverage by 44%.
(cherry picked from commit bcd3a1a18d841338f57c39f6a7de8cf14d0c3e03)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
7 years agoClarified the tempfile.tempdir documentation (GH-7829) (GH-7841)
Miss Islington (bot) [Thu, 21 Jun 2018 08:03:29 +0000 (01:03 -0700)]
Clarified the tempfile.tempdir documentation (GH-7829) (GH-7841)

(cherry picked from commit 940ae608566fd4446ff92a22705f646cde1d087c)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <srinivasreddy@users.noreply.github.com>
7 years agobpo-33924: Change IDLE mainmenu.menudefs key 'windows' to 'window' (GH-7836)
Miss Islington (bot) [Thu, 21 Jun 2018 04:35:47 +0000 (21:35 -0700)]
bpo-33924: Change IDLE mainmenu.menudefs key 'windows' to 'window' (GH-7836)

Every other menudef key is the lowercase version of the
corresponding main menu entry (in this case, 'Window').
(cherry picked from commit 33c7420e7dd9d8e5b2aa15e98da6291bab6fcf33)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
7 years agobpo-33906: Rename idlelib.windows as window (GH-7833)
Miss Islington (bot) [Thu, 21 Jun 2018 01:45:36 +0000 (18:45 -0700)]
bpo-33906: Rename idlelib.windows as window (GH-7833)

Match Window on the main menu and remove last plural module name.
Change imports, test, and attribute references to match new name.
(cherry picked from commit a361e89d5ae3daefe9e8b8a7e889cd2ad8c45b77)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
7 years agobpo-33917: Fix and document idlelib/idle_test/template.py (GH-7830)
Miss Islington (bot) [Wed, 20 Jun 2018 21:27:43 +0000 (14:27 -0700)]
bpo-33917: Fix and document idlelib/idle_test/template.py (GH-7830)

The revised file compiles, runs, and tests OK. idle_test/README.txt
explains how to use it to create new IDLE test files.
(cherry picked from commit 87a927325e3856621790a39d8718ff24a19510aa)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
7 years agobpo-33904: In IDLE's rstrip, rename class RstripExtension as Rstrip (GH-7811)
Miss Islington (bot) [Wed, 20 Jun 2018 15:56:22 +0000 (08:56 -0700)]
bpo-33904:  In IDLE's rstrip, rename class RstripExtension as Rstrip (GH-7811)

(cherry picked from commit 9bb92235f6272b28d59fcbd04f101fdc6b1bbc50)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <srinivasreddy@users.noreply.github.com>
7 years agobpo-33746: Fix test_unittest.testRegisterResult() in verbose mode (GH-7799)
Miss Islington (bot) [Wed, 20 Jun 2018 09:50:03 +0000 (02:50 -0700)]
bpo-33746: Fix test_unittest.testRegisterResult() in verbose mode (GH-7799)

Only make sure that the result is in unittest.signals._results, don't
check the full content of unittest.signals._results.

support._run_suite() uses TextTestRunner in verbose mode, but
TextTestRunner.run() calls registerResult(result) which made the test
fail with "odd object in result set".

Call also removeResult() to restore unittest.signals._results to
avoid test side effect.
(cherry picked from commit fd8fbce495c32b0cbc13f71a8e9d4eec6f48c844)

Co-authored-by: Victor Stinner <vstinner@redhat.com>