]> granicus.if.org Git - python/log
python
6 years agobpo-33974: Fix passing special characters to ttk widgets. (GH-7986)
Serhiy Storchaka [Sat, 30 Jun 2018 06:20:28 +0000 (09:20 +0300)]
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.

6 years agoFix redundant declaration of _PyImport_AddModuleObject (GH-7992)
Jeremy Cline [Fri, 29 Jun 2018 22:47:18 +0000 (18:47 -0400)]
Fix redundant declaration of _PyImport_AddModuleObject (GH-7992)

6 years agoAdd zulipchat badge to readme (GH-7929)
Mariatta [Fri, 29 Jun 2018 20:43:45 +0000 (13:43 -0700)]
Add zulipchat badge to readme (GH-7929)

6 years agobpo-25862: Fix assertion failures in io.TextIOWrapper.tell(). (GH-3918)
Zackery Spytz [Fri, 29 Jun 2018 10:14:58 +0000 (04:14 -0600)]
bpo-25862: Fix assertion failures in io.TextIOWrapper.tell(). (GH-3918)

6 years agoFix the indentation in the documentation of bin() and hash() (GH-7998)
Andrés Delfino [Fri, 29 Jun 2018 09:57:10 +0000 (06:57 -0300)]
Fix the indentation in the documentation of bin() and hash() (GH-7998)

6 years agobpo-14117: Make minor tweaks to turtledemo (GH-8002)
Terry Jan Reedy [Fri, 29 Jun 2018 05:10:05 +0000 (01:10 -0400)]
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.

6 years agobpo-27500: Fix static version of getaddrinfo to resolve IPv6 (GH-7993)
Yury Selivanov [Fri, 29 Jun 2018 01:59:32 +0000 (21:59 -0400)]
bpo-27500: Fix static version of getaddrinfo to resolve IPv6 (GH-7993)

6 years agobpo-33985: Implement ContextVar.name attribute. (GH-7980)
Yury Selivanov [Thu, 28 Jun 2018 17:20:29 +0000 (13:20 -0400)]
bpo-33985: Implement ContextVar.name attribute. (GH-7980)

6 years agobpo-31546: Fix input hook integration (GH-7978)
Thomas A Caswell [Thu, 28 Jun 2018 16:29:44 +0000 (12:29 -0400)]
bpo-31546: Fix input hook integration (GH-7978)

6 years agobpo-32996: Enhancements to What's New based on feedback (GH-7988)
Elvis Pranskevichus [Thu, 28 Jun 2018 15:57:37 +0000 (11:57 -0400)]
bpo-32996: Enhancements to What's New based on feedback (GH-7988)

6 years agoForward port rest of NEWS changes as of 3.7.0
Ned Deily [Thu, 28 Jun 2018 08:18:35 +0000 (04:18 -0400)]
Forward port rest of NEWS changes as of 3.7.0

6 years agobpo-33842: Remove tarfile.filemode (GH-7661)
INADA Naoki [Thu, 28 Jun 2018 08:10:36 +0000 (17:10 +0900)]
bpo-33842: Remove tarfile.filemode (GH-7661)

6 years agobpo-33958: Doc: Remove unused variable in example (GH-7927)
Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) [Thu, 28 Jun 2018 06:25:20 +0000 (11:55 +0530)]
bpo-33958: Doc: Remove unused variable in example (GH-7927)

6 years agoForward port 3.7.0 final changes
Ned Deily [Wed, 27 Jun 2018 22:45:50 +0000 (18:45 -0400)]
Forward port 3.7.0 final changes

6 years agobpo-33715: Fix multiprocessing test_wait_result() (GH-7971)
Victor Stinner [Wed, 27 Jun 2018 20:24:02 +0000 (22:24 +0200)]
bpo-33715: Fix multiprocessing test_wait_result() (GH-7971)

Increase timeouts from 10 seconds to 1 minute.

6 years agobpo-33913: Fix test_multiprocessing_main_handling (GH-7972)
Victor Stinner [Wed, 27 Jun 2018 20:21:53 +0000 (22:21 +0200)]
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.

6 years agobpo-25007: Add copy protocol support to zlib compressors and decompressors (GH-7940)
Zackery Spytz [Wed, 27 Jun 2018 18:04:51 +0000 (12:04 -0600)]
bpo-25007: Add copy protocol support to zlib compressors and decompressors (GH-7940)

6 years agobpo-30356: Fix test_mymanager_context() of multiprocessing (GH-7968)
Victor Stinner [Wed, 27 Jun 2018 16:18:10 +0000 (18:18 +0200)]
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.

6 years agoPrevent upload script uploading from the wrong directory (GH-7953)
Steve Dower [Wed, 27 Jun 2018 15:11:13 +0000 (08:11 -0700)]
Prevent upload script uploading from the wrong directory (GH-7953)

6 years agobpo-31647: Fix bpo typo in NEWS entry. (GH-7964)
twisteroid ambassador [Wed, 27 Jun 2018 14:58:08 +0000 (22:58 +0800)]
bpo-31647: Fix bpo typo in NEWS entry. (GH-7964)

6 years agobpo-33929: Fix regression in spawn_main() (#7962)
Victor Stinner [Wed, 27 Jun 2018 13:18:39 +0000 (15:18 +0200)]
bpo-33929: Fix regression in spawn_main() (#7962)

OpenProcess() creates a new handle that must be closed later.

6 years agobpo-33929: multiprocessing: fix handle leak on race condition (GH-7921)
Victor Stinner [Wed, 27 Jun 2018 09:40:24 +0000 (11:40 +0200)]
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.

6 years agobpo-30317, test_multiprocessing: fix test_timeout() (GH-7957)
Victor Stinner [Wed, 27 Jun 2018 09:04:51 +0000 (11:04 +0200)]
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

6 years agobpo-24567: Random subnormal.diff (#7954)
Raymond Hettinger [Wed, 27 Jun 2018 08:08:31 +0000 (01:08 -0700)]
bpo-24567: Random subnormal.diff (#7954)

Handle subnormal weights for choices()

6 years agobpo-33975: Avoid small type when running IDLE's htests. (GH-7944)
Terry Jan Reedy [Wed, 27 Jun 2018 04:07:30 +0000 (00:07 -0400)]
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.

6 years agouse rich markup for PEP reference (GH-7939)
Behzad B. Mokhtari [Wed, 27 Jun 2018 03:57:39 +0000 (08:27 +0430)]
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.

6 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

6 years agobpo-33956: update vendored expat to 2.2.5 (GH-7925)
Benjamin Peterson [Wed, 27 Jun 2018 02:25:45 +0000 (19:25 -0700)]
bpo-33956: update vendored expat to 2.2.5 (GH-7925)

6 years agobpo-33873: Fix bug in `runtest.py` and add checks for invalid `-R` parameters (GH...
Pablo Galindo [Tue, 26 Jun 2018 14:17:26 +0000 (15:17 +0100)]
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.

6 years agobpo-33957: Doc: Use better wording (GH-7912)
Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) [Tue, 26 Jun 2018 08:27:05 +0000 (13:57 +0530)]
bpo-33957: Doc: Use better wording (GH-7912)

6 years agobpo-33924: Add missed mac-specific 'windows' to 'window' changes (GH-7920)
Mark Roseman [Tue, 26 Jun 2018 01:19:40 +0000 (18:19 -0700)]
bpo-33924: Add missed mac-specific 'windows' to 'window' changes (GH-7920)

These should have been included in PR 7836.

6 years agoRevert "bpo-33671: Add support.MS_WINDOWS and support.MACOS (GH-7800)" (GH-7919)
Victor Stinner [Tue, 26 Jun 2018 00:11:06 +0000 (02:11 +0200)]
Revert "bpo-33671: Add support.MS_WINDOWS and support.MACOS (GH-7800)" (GH-7919)

This reverts commit 8fbbdf0c3107c3052659e166f73990b466eacbb0.

6 years agobpo-33573: docs to suggest median() alternatives for non-numeric data (GH-7587)
Tal Einat [Mon, 25 Jun 2018 11:04:01 +0000 (14:04 +0300)]
bpo-33573: docs to suggest median() alternatives for non-numeric data (GH-7587)

6 years agobpo-33952: Fix typo in str.upper() documentation (GH-7898)
Andrés Delfino [Mon, 25 Jun 2018 10:34:22 +0000 (07:34 -0300)]
bpo-33952: Fix typo in str.upper() documentation (GH-7898)

6 years agobpo-33943: Add references in the docs for logging.basicConfig (GH-7858)
Andrés Delfino [Mon, 25 Jun 2018 06:06:10 +0000 (03:06 -0300)]
bpo-33943: Add references in the docs for logging.basicConfig (GH-7858)

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

6 years agobpo-33897: Add a 'force' keyword argument to logging.basicConfig(). (GH-7873)
Dong-hee Na [Mon, 25 Jun 2018 04:11:09 +0000 (13:11 +0900)]
bpo-33897: Add a 'force' keyword argument to logging.basicConfig(). (GH-7873)

6 years agobpo-33951: IDLE test_configdialog: call page.update in setUpClass (GH-7892)
Tal Einat [Sun, 24 Jun 2018 20:35:59 +0000 (23:35 +0300)]
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

6 years agoEnable GUI tests in VSTS Linux builds via xvfb-run (GH-7890)
Zachary Ware [Sun, 24 Jun 2018 15:20:34 +0000 (10:20 -0500)]
Enable GUI tests in VSTS Linux builds via xvfb-run (GH-7890)

6 years agobpo-33451: Close pyc files before calling PyEval_EvalCode() (GH-7884)
Zackery Spytz [Sun, 24 Jun 2018 03:15:24 +0000 (21:15 -0600)]
bpo-33451: Close pyc files before calling PyEval_EvalCode() (GH-7884)

Directly executed pyc files were being kept open longer than necessary.

6 years ago[master] bpo-33885: Replace "hook function" with "callable" (GH-7765) (#7886)
Andrés Delfino [Sun, 24 Jun 2018 02:23:50 +0000 (23:23 -0300)]
[master] bpo-33885: Replace "hook function" with "callable" (GH-7765) (#7886)

(cherry picked from commit c45cb479074b5d25f0d382d3109f527520a9f03c)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-33950: Remove IDLE htest spec for a deleted file. (GH-7881)
Terry Jan Reedy [Sat, 23 Jun 2018 21:33:27 +0000 (17:33 -0400)]
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.

6 years agobpo-33887: Add TOC to Design and History FAQ(GH-7766)
Andrés Delfino [Sat, 23 Jun 2018 18:27:16 +0000 (15:27 -0300)]
bpo-33887: Add TOC to Design and History FAQ(GH-7766)

6 years agobpo-33805: Improve error message of dataclasses.replace() (GH-7580)
Dong-hee Na [Sat, 23 Jun 2018 14:46:32 +0000 (23:46 +0900)]
bpo-33805: Improve error message of dataclasses.replace() (GH-7580)

6 years agoRemove tp_print implementation (GH-7857)
jdemeyer [Sat, 23 Jun 2018 12:08:43 +0000 (14:08 +0200)]
Remove tp_print implementation (GH-7857)

6 years agobpo-33916: Fix bz2 and lzma init when called twice (GH-7843)
Victor Stinner [Sat, 23 Jun 2018 08:35:23 +0000 (10:35 +0200)]
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.

6 years agosuppress compiler warnings in _cursesmodule.c (#7860)
Xiang Zhang [Sat, 23 Jun 2018 04:29:30 +0000 (12:29 +0800)]
suppress compiler warnings in _cursesmodule.c (#7860)

6 years agobpo-33877: Remove UNIX qualification for running complete programs (GH-7744)
Andrés Delfino [Fri, 22 Jun 2018 21:31:03 +0000 (18:31 -0300)]
bpo-33877: Remove UNIX qualification for running complete programs (GH-7744)

The statement is true for Windows (and macOS) also.

6 years agoAdd test coverage reporting for C files (GH-7773)
Ammar Askar [Fri, 22 Jun 2018 21:29:02 +0000 (17:29 -0400)]
Add test coverage reporting for C files (GH-7773)

6 years agobpo-33671: Add support.MS_WINDOWS and support.MACOS (GH-7800)
Victor Stinner [Fri, 22 Jun 2018 17:25:44 +0000 (19:25 +0200)]
bpo-33671: Add support.MS_WINDOWS and support.MACOS (GH-7800)

* Add support.MS_WINDOWS: True if Python is running on Microsoft Windows.
* Add support.MACOS: True if Python is running on Apple macOS.
* Replace support.is_android with support.ANDROID
* Replace support.is_jython with support.JYTHON
* Cleanup code to initialize unix_shell

6 years agobpo-33932: Calling Py_Initialize() twice does nothing (GH-7845)
Victor Stinner [Fri, 22 Jun 2018 17:14:51 +0000 (19:14 +0200)]
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.

6 years agobpo-33905: Add test for idlelib.stackview.StackBrowser. (GH-7852)
Terry Jan Reedy [Fri, 22 Jun 2018 02:19:56 +0000 (22:19 -0400)]
bpo-33905: Add test for idlelib.stackview.StackBrowser. (GH-7852)

Increases coverage by 44%.

6 years agobpo-33912: Fix test_warnings when run with -Werror (GH-7839)
Christopher Frederickson [Thu, 21 Jun 2018 16:12:56 +0000 (12:12 -0400)]
bpo-33912: Fix test_warnings when run with -Werror (GH-7839)

Add missing warning filter to test_exec_filename().

6 years agobpo-33716, test_concurrent_futures: increase timeout (GH-7828)
Pablo Galindo [Thu, 21 Jun 2018 11:30:37 +0000 (12:30 +0100)]
bpo-33716, test_concurrent_futures: increase timeout (GH-7828)

Increase the timeout from 1 min to 5 min.

Replace also time.time() with time.monotonic() for timeouts.

6 years agoClarified the tempfile.tempdir documentation (GH-7829)
Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) [Thu, 21 Jun 2018 07:52:43 +0000 (13:22 +0530)]
Clarified the tempfile.tempdir documentation (GH-7829)

6 years ago bpo-33924: Change IDLE mainmenu.menudefs key 'windows' to 'window' (GH-7836)
Terry Jan Reedy [Thu, 21 Jun 2018 02:49:55 +0000 (22:49 -0400)]
 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').

6 years agobpo-33906: Rename idlelib.windows as window (#7833)
Terry Jan Reedy [Thu, 21 Jun 2018 01:25:59 +0000 (21:25 -0400)]
bpo-33906: Rename idlelib.windows as window (#7833)

Match Window on the main menu and remove last plural module name.
Change imports, test, and attribute references to match new name.

6 years agobpo-33917: Fix and document idlelib/idle_test/template.py (GH-7830)
Terry Jan Reedy [Wed, 20 Jun 2018 21:08:31 +0000 (17:08 -0400)]
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.

6 years agoFix compiling error when missing gdbm version macros (GH-7823)
Xiang Zhang [Wed, 20 Jun 2018 13:23:30 +0000 (21:23 +0800)]
Fix compiling error when missing gdbm version macros (GH-7823)

6 years agobpo-33499: PYTHONPYCACHEPREFIX What's New entry (GH-7749)
Nick Coghlan [Wed, 20 Jun 2018 11:25:01 +0000 (21:25 +1000)]
bpo-33499: PYTHONPYCACHEPREFIX What's New entry (GH-7749)

Initial What's New in Python 3.8 entry for `PYTHONPYCACHEPREFIX`.

6 years agobpo-33746: Fix test_unittest.testRegisterResult() in verbose mode (GH-7799)
Victor Stinner [Wed, 20 Jun 2018 09:29:33 +0000 (11:29 +0200)]
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.

6 years agobpo-33904: In IDLE's rstrip, rename class RstripExtension as Rstrip (GH-7811)
Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) [Wed, 20 Jun 2018 07:42:13 +0000 (13:12 +0530)]
bpo-33904:  In IDLE's rstrip, rename class RstripExtension as Rstrip (GH-7811)

6 years agobpo-33907: Rename an IDLE module and classes. (GH-7810)
Terry Jan Reedy [Wed, 20 Jun 2018 06:18:49 +0000 (02:18 -0400)]
bpo-33907: Rename an IDLE module and classes. (GH-7810)

Fix-up class name duplication in PR #7807. Combined effect is that
module calltips and its class CallTips are now calltip and Calltip.
In module calltip_w class CallTip is now CalltipWindow.

6 years agobpo-33908: Remove two superfluous assignments (GH-7116)
Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) [Wed, 20 Jun 2018 05:07:31 +0000 (10:37 +0530)]
bpo-33908: Remove two superfluous assignments (GH-7116)

Signed-off-by: Srinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com>
6 years agobpo-33907: Rename an IDLE module and class. (GH-7807)
Terry Jan Reedy [Wed, 20 Jun 2018 03:00:35 +0000 (23:00 -0400)]
bpo-33907: Rename an IDLE module and class. (GH-7807)

Improve consistency and appearance. Module idlelib.calltips is now calltip.
Class idlelib.calltip_w.CallTip is now Calltip.

6 years agobpo-33855: Still more edits and minimal tests for IDLE (GH-7784)
Terry Jan Reedy [Tue, 19 Jun 2018 23:12:52 +0000 (19:12 -0400)]
bpo-33855: Still more edits and minimal tests for IDLE  (GH-7784)

Part 3 of 3, continuing PR #7689. This covers 14 idlelib modules and their tests,
rpc to zoomheight except for run (already done) and tooltip (being done separately).

6 years agobpo-33901: Add _gdbm._GDBM_VERSION (GH-7794)
Victor Stinner [Tue, 19 Jun 2018 21:29:22 +0000 (23:29 +0200)]
bpo-33901: Add _gdbm._GDBM_VERSION (GH-7794)

* Fix also PyInit__gdbm() to catch errors.
* test.pythoninfo: add gdbm.version
* test_dbm_gnu now logs GDBM_VERSION when run in verbose mode.

* pythoninfo: rename function to collect_gdbm()

6 years agobpo-30345: Add -g to LDFLAGS for LTO (GH-7709)
Victor Stinner [Tue, 19 Jun 2018 16:24:58 +0000 (18:24 +0200)]
bpo-30345: Add -g to LDFLAGS for LTO (GH-7709)

Add -g to LDFLAGS when compiling with LTO to get debug symbols.

6 years agobpo-33901: Better test_dbm_gnu.test_reorganize() fix (GH-7795)
Victor Stinner [Tue, 19 Jun 2018 15:37:07 +0000 (17:37 +0200)]
bpo-33901: Better test_dbm_gnu.test_reorganize() fix (GH-7795)

Fix test_dbm_gnu.test_reorganize() on macOS with gdbm 1.15: add a
larger value to make sure that the file size changes.

6 years agobpo-33671 / shutil.copyfile: use memoryview() with dynamic size on Windows (#7681)
Giampaolo Rodola [Tue, 19 Jun 2018 15:27:29 +0000 (08:27 -0700)]
bpo-33671 / shutil.copyfile: use memoryview() with dynamic size on Windows (#7681)

bpo-33671
* use memoryview() with size == file size on Windows, see https://github.com/python/cpython/pull/7160#discussion_r195405230
* release intermediate (sliced) memoryview immediately
* replace "OSX" occurrences with "macOS"
* add some unittests for copyfileobj()

6 years agobpo-33365: print the header values beside the keys (GH-6611)
Marco Strigl [Tue, 19 Jun 2018 13:20:58 +0000 (15:20 +0200)]
bpo-33365: print the header values beside the keys (GH-6611)

with debuglevel=1 only the header keys got printed. With
this change the header values get printed as well and the single
header entries get '\n' as a separator.

6 years agobpo-33901: Fix test_dbm_gnu for gdbm 1.15 (GH-7791)
Victor Stinner [Tue, 19 Jun 2018 12:19:54 +0000 (14:19 +0200)]
bpo-33901: Fix test_dbm_gnu for gdbm 1.15 (GH-7791)

Using gdbm 1.15, creating a database creates a file of 16 MiB. Adding
a small entry and then modifying the small entry doesn't change the
file size. Modify test_dbm_gnu to be less strict: allow that the file
size doesn't change.

6 years agoUse more specific asserts in dbm tests. (GH-7786)
Serhiy Storchaka [Tue, 19 Jun 2018 10:31:48 +0000 (13:31 +0300)]
Use more specific asserts in dbm tests. (GH-7786)

This may help to investigate bpo-33901.

6 years agoChange tp_size to tp_basicsize in comment and realign the comments (GH-6775)
Bup [Tue, 19 Jun 2018 08:59:55 +0000 (03:59 -0500)]
Change tp_size to tp_basicsize in comment and realign the comments (GH-6775)

6 years agobpo-33843: Remove deprecated stuff in cgi module (GH-7662)
INADA Naoki [Tue, 19 Jun 2018 08:28:50 +0000 (17:28 +0900)]
bpo-33843: Remove deprecated stuff in cgi module (GH-7662)

6 years agobpo-33630: Fix using of freed memory in old versions of glicb for posix_spawn()....
Pablo Galindo [Tue, 19 Jun 2018 08:19:50 +0000 (09:19 +0100)]
bpo-33630: Fix using of freed memory in old versions of glicb for posix_spawn(). (GH-7685)

6 years agobpo-33663: Convert content length to string before putting to header (GH-7754)
ValeriyaSinevich [Mon, 18 Jun 2018 21:17:53 +0000 (14:17 -0700)]
bpo-33663: Convert content length to string before putting to header (GH-7754)

6 years agobpo-33866: enum: Stop using OrderedDict (GH-7698)
INADA Naoki [Mon, 18 Jun 2018 16:14:26 +0000 (01:14 +0900)]
bpo-33866: enum: Stop using OrderedDict (GH-7698)

6 years agobpo-33855: More edits and new minimal tests for IDLE (GH-7761)
Terry Jan Reedy [Mon, 18 Jun 2018 08:47:59 +0000 (04:47 -0400)]
bpo-33855: More edits and new minimal tests for IDLE (GH-7761)

Part 2 of 3.  Continues PR #7689, changeset ee5ef30.
Edit and add tests for 18 modules, help_about to replace and run.

6 years agobpo-33892: Doc: Use gender neutral words (GH-7770)
Andrés Delfino [Mon, 18 Jun 2018 04:34:30 +0000 (01:34 -0300)]
bpo-33892: Doc: Use gender neutral words (GH-7770)

6 years agobpo-33856: Add "help" to the welcome message of IDLE (GH-7755)
Stéphane Wirtel [Sat, 16 Jun 2018 21:20:56 +0000 (23:20 +0200)]
bpo-33856: Add "help" to the welcome message of IDLE (GH-7755)

Make it the same as when one runs 'python'.

6 years agobpo-33861: Minor improvements of tests for os.path. (GH-7715)
Serhiy Storchaka [Sat, 16 Jun 2018 10:25:55 +0000 (13:25 +0300)]
bpo-33861: Minor improvements of tests for os.path. (GH-7715)

* Test exists(), lexists(), isdir(), isfile(), islink(), ismount()
  with bytes paths.
* Remove unneeded silencing DeprecationWarning for ismount() with
  bytes path.
* Test common functions with unencodable and undecodable paths.
* Minor clean up and refactoring.

6 years agobpo-33859: Fix spelling mistakes in docs. (GH-7691)
Xtreak [Sat, 16 Jun 2018 05:08:31 +0000 (10:38 +0530)]
bpo-33859: Fix spelling mistakes in docs. (GH-7691)

6 years agobpo-33499: Add PYTHONPYCACHEPREFIX env var for alt bytecode cache location. (GH-6834)
Carl Meyer [Sat, 16 Jun 2018 04:40:56 +0000 (22:40 -0600)]
bpo-33499: Add PYTHONPYCACHEPREFIX env var for alt bytecode cache location. (GH-6834)

In some development setups it is inconvenient or impossible to write bytecode
caches to the code tree, but the bytecode caches are still useful. The
PYTHONPYCACHEPREFIX environment variable allows specifying an alternate
location for cached bytecode files, within which a directory tree mirroring the code
tree will be created. This cache tree is then used (for both reading and writing)
instead of the local `__pycache__` subdirectory within each source directory.

Exposed at runtime as sys.pycache_prefix (defaulting to None), and can
be set from the CLI as "-X pycache_prefix=path".

Patch by Carl Meyer.

6 years agobpo-33571: Improve the glossary description for '...' prompt (GH-6971)
Andrés Delfino [Sat, 16 Jun 2018 03:46:38 +0000 (00:46 -0300)]
bpo-33571: Improve the glossary description for '...' prompt (GH-6971)

Mention that it can be triggered by triple quotes and after specifying decorators.

6 years agobpo-33836: Recommend keyword-only param for memoization in FAQ (GH-7687)
Noah Haasis [Sat, 16 Jun 2018 03:29:11 +0000 (05:29 +0200)]
bpo-33836: Recommend keyword-only param for memoization in FAQ (GH-7687)

Update the the signature in the code example to make `_cache` a keyword-only parameter.

6 years agoUse singular, we are talking about the access (GH-7727)
Andrés Delfino [Sat, 16 Jun 2018 02:42:09 +0000 (23:42 -0300)]
Use singular, we are talking about the access (GH-7727)

6 years agobpo-33873: regrtest: Add warning on -R 1:3 (GH-7736)
Pablo Galindo [Sat, 16 Jun 2018 00:20:56 +0000 (01:20 +0100)]
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.

6 years agoAdd missing va_end() calls in PC/launcher.c (GH-7690)
Zackery Spytz [Fri, 15 Jun 2018 22:39:04 +0000 (16:39 -0600)]
Add missing va_end() calls in PC/launcher.c (GH-7690)

6 years agobpo-33855: Minimally test all IDLE modules. (GH-7689)
Terry Jan Reedy [Fri, 15 Jun 2018 22:20:55 +0000 (18:20 -0400)]
bpo-33855: Minimally test all IDLE modules. (GH-7689)

Create a template for minimally testing a tkinter-using module by importing it and instantiating its class(es).  Add a test file for all non-startup IDLE modules.  Edit existing files and update coverage.  This is part 1 of 3, covering the 21 autocomplete to help modules and touching 33 idlelib files.

6 years agobpo-33824, bpo-32030: Fix pymain_read_conf() (GH-7712)
Victor Stinner [Fri, 15 Jun 2018 22:06:28 +0000 (00:06 +0200)]
bpo-33824, bpo-32030: Fix pymain_read_conf() (GH-7712)

Fix "LC_ALL=C python3.7 -V": reset properly the command line parser
when the encoding changes after reading the Python configuration.

Fix pymain_read_conf(): use memset(0) to reset properly cmdline.

6 years agoRevert "bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection...
Victor Stinner [Fri, 15 Jun 2018 20:54:35 +0000 (22:54 +0200)]
Revert "bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection -O0 (GH-6754)" (#7723)

This reverts commit 9b7c74ca32d1bec7128d550a9ab1b2ddc7046287.

6 years agobpo-33854: Add PEP 461 title to 'See also' note (GH-7688)
Andrés Delfino [Fri, 15 Jun 2018 19:42:20 +0000 (16:42 -0300)]
bpo-33854: Add PEP 461 title to 'See also' note (GH-7688)

6 years agobpo-33847: Add '@' operator entry to index (GH-7669)
Andrés Delfino [Fri, 15 Jun 2018 19:23:00 +0000 (16:23 -0300)]
bpo-33847: Add '@' operator entry to index (GH-7669)

6 years agobpo-33852: Remove misplaced parentheses around 'list'. (GH-7672)
Andrés Delfino [Fri, 15 Jun 2018 18:24:25 +0000 (15:24 -0300)]
bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672)

'expresson list' refers to the grammar term 'expression_list' in the subscription production.

6 years agobpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection -O0 (#6754)
Marcel Plch [Fri, 15 Jun 2018 15:56:24 +0000 (17:56 +0200)]
bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection -O0 (#6754)

When Python is built with the intel control-flow protection flags,
-mcet -fcf-protection, gdb is not able to read the stack without
actually jumping inside the function. This means an extra
'next' command is required to make the $pc (program counter)
enter the function and make the stack of the function exposed to gdb.

6 years agogitattribute: Mark generated files (GH-7619)
INADA Naoki [Fri, 15 Jun 2018 15:45:02 +0000 (00:45 +0900)]
gitattribute: Mark generated files (GH-7619)

Marked files are collapsed by default in Github pull request.
https://github.com/github/linguist#generated-code

6 years agobpo-29456: Fix bugs in unicodedata.normalize: u1176, u11a7 and u11c3 (GH-1958)
Wonsup Yoon [Fri, 15 Jun 2018 12:03:14 +0000 (21:03 +0900)]
bpo-29456: Fix bugs in unicodedata.normalize: u1176, u11a7 and u11c3 (GH-1958)

Hangul composition check boundaries are wrong for the second character
([0x1161, 0x1176) instead of [0x1161, 0x1176]) and third character ((0x11A7, 0x11C3)
instead of [0x11A7, 0x11C3]).

6 years agobpo-33818: PyExceptionClass_Name() will now return "const char *". (GH-7581)
Serhiy Storchaka [Fri, 15 Jun 2018 08:09:43 +0000 (11:09 +0300)]
bpo-33818: PyExceptionClass_Name() will now return "const char *". (GH-7581)

6 years agobpo-33851: Fix ast.get_docstring() for a node that lacks a docstring. (GH-7682)
Serhiy Storchaka [Fri, 15 Jun 2018 08:05:15 +0000 (11:05 +0300)]
bpo-33851: Fix ast.get_docstring() for a node that lacks a docstring. (GH-7682)

6 years agobpo-17045: Improve C-API doc for PyTypeObject. (gh-7413)
Eric Snow [Thu, 14 Jun 2018 21:46:35 +0000 (15:46 -0600)]
bpo-17045:  Improve C-API doc for PyTypeObject. (gh-7413)

The existing doc had a number of info gaps and was a little hard to use.  This patch provides several quick-reference tables as well as examples.