]> granicus.if.org Git - python/log
python
6 years agobpo-34084: Fix setting an error message for the "Barry as BDFL" easter egg. (GH-8262)
Serhiy Storchaka [Mon, 23 Jul 2018 20:41:11 +0000 (23:41 +0300)]
bpo-34084: Fix setting an error message for the "Barry as BDFL" easter egg. (GH-8262)

6 years agobpo-34183: Fix running Lib/test/test_contextlib_async.py as a script. (GH-8381)
Serhiy Storchaka [Mon, 23 Jul 2018 20:38:31 +0000 (23:38 +0300)]
bpo-34183: Fix running Lib/test/test_contextlib_async.py as a script. (GH-8381)

6 years agobpo-34184: Fix running Lib/test/test_dataclasses.py as a script. (GH-8382)
Serhiy Storchaka [Mon, 23 Jul 2018 20:37:55 +0000 (23:37 +0300)]
bpo-34184: Fix running Lib/test/test_dataclasses.py as a script. (GH-8382)

6 years agobpo-34190: Fix reference leak in call_function() (GH-8413)
jdemeyer [Mon, 23 Jul 2018 16:41:20 +0000 (18:41 +0200)]
bpo-34190: Fix reference leak in call_function() (GH-8413)

6 years agobpo-33336, imaplib: Legalize MOVE command (GH-6569)
Matěj Cepl [Mon, 23 Jul 2018 11:28:54 +0000 (13:28 +0200)]
bpo-33336, imaplib: Legalize MOVE command (GH-6569)

imaplib now allows MOVE command in IMAP4.uid() (RFC 6851:
IMAP MOVE Extension) and potentially as a name of supported
method of IMAP4 object.

6 years agobpo-25094: Fix test_tools.test_sundry() on Windows (GH-8406)
Victor Stinner [Mon, 23 Jul 2018 11:17:59 +0000 (13:17 +0200)]
bpo-25094: Fix test_tools.test_sundry() on Windows (GH-8406)

When Python is installed on Windows, python -m test test_tools failed
because it tried to run Tools\scripts\2to3.py which requires an
argument. Skip this script. On other platforms or on Windows but when
run from source code (not installed), the script is called "2to3"
instead of "2to.py" and so was already skipped.

Modify also the unit test to unload all modules which have been
loaded by the test.

6 years agoAppVeyor: build Python in 64-bit mode (GH-8363)
Victor Stinner [Mon, 23 Jul 2018 11:16:41 +0000 (13:16 +0200)]
AppVeyor: build Python in 64-bit mode (GH-8363)

Previously, Python was built in 32-bit mode and so issues specific to
64-bit mode like compiler warnings could be missed.

6 years agobpo-21446: Update reload fixer to use importlib (GH-8391)
Berker Peksag [Mon, 23 Jul 2018 06:49:08 +0000 (09:49 +0300)]
bpo-21446: Update reload fixer to use importlib (GH-8391)

6 years agobpo-940286: Fix pydoc to show cross refs correctly (GH-8390)
Berker Peksag [Mon, 23 Jul 2018 05:37:47 +0000 (08:37 +0300)]
bpo-940286: Fix pydoc to show cross refs correctly (GH-8390)

6 years agobpo-34127: Fix grammar in error message with respect to argument count (GH-8395)
Xtreak [Sun, 22 Jul 2018 20:13:26 +0000 (01:43 +0530)]
bpo-34127: Fix grammar in error message with respect to argument count (GH-8395)

6 years agobpo-34189: Fix checking for bugfix Tcl version. (GH-8397)
Serhiy Storchaka [Sun, 22 Jul 2018 18:41:48 +0000 (21:41 +0300)]
bpo-34189: Fix checking for bugfix Tcl version. (GH-8397)

6 years agobpo-34189: Add simple tests for new Tk widget options. (GH-8396)
Serhiy Storchaka [Sun, 22 Jul 2018 16:50:14 +0000 (19:50 +0300)]
bpo-34189: Add simple tests for new Tk widget options. (GH-8396)

6 years agoFix versionchanged indentation in popitem documentation (GH-8387)
Andrés Delfino [Sat, 21 Jul 2018 22:14:56 +0000 (19:14 -0300)]
Fix versionchanged indentation in popitem documentation (GH-8387)

6 years agobpo-34181: Fix running Lib/test/test_typing.py as a script. (GH-8380)
Serhiy Storchaka [Sat, 21 Jul 2018 19:46:26 +0000 (22:46 +0300)]
bpo-34181: Fix running Lib/test/test_typing.py as a script. (GH-8380)

6 years agobpo-34179: Make sure decimal context doesn't affect other tests. (#8376)
Bo Bayles [Sat, 21 Jul 2018 17:54:14 +0000 (12:54 -0500)]
bpo-34179:  Make sure decimal context doesn't affect other tests.  (#8376)

6 years agobpo-34126: Fix crashes while profiling invalid calls. (GH-8300)
jdemeyer [Sat, 21 Jul 2018 08:30:59 +0000 (10:30 +0200)]
bpo-34126: Fix crashes while profiling invalid calls. (GH-8300)

6 years agobpo-34166: Fix warnings in Tools/msgfmt.py. (GH-8367)
Xtreak [Sat, 21 Jul 2018 06:22:12 +0000 (11:52 +0530)]
bpo-34166: Fix warnings in Tools/msgfmt.py. (GH-8367)

6 years agobpo-34136: Make test_do_not_recreate_annotations more reliable. (GH-8364)
Serhiy Storchaka [Sat, 21 Jul 2018 04:44:04 +0000 (07:44 +0300)]
bpo-34136: Make test_do_not_recreate_annotations more reliable. (GH-8364)

6 years agobpo-34170: _PyCoreConfig_Read() leaves Py_IsolatedFlag unchanged (GH-8361)
Victor Stinner [Sat, 21 Jul 2018 01:54:20 +0000 (03:54 +0200)]
bpo-34170: _PyCoreConfig_Read() leaves Py_IsolatedFlag unchanged (GH-8361)

* _PyCoreConfig_Read() no longer directly modifies Py_IsolatedFlag
  and Py_NoSiteFlag global configuration flags. The function now
  requires two pointers to integer, so these flags can be set later,
  to avoid side effets in _PyCoreConfig_Read().
* pathconfig_global_init() now leaves Py_IsolatedFlag and
  Py_NoSiteFlag unchanged.
* Fix pathconfig_global_init(): avoid computing the path
  configuration twice, use _PyCoreConfig_SetPathConfig().

6 years agoFix Windows compiler warning in tokenize.c (GH-8359)
Victor Stinner [Sat, 21 Jul 2018 01:36:06 +0000 (03:36 +0200)]
Fix Windows compiler warning in tokenize.c (GH-8359)

Fix the following warning on Windows:

parser\tokenizer.c(1297): warning C4244: 'function': conversion from
'__int64' to 'int', possible loss of data.

6 years agobpo-33723: Fix test_time.test_process_time() (GH-8358)
Victor Stinner [Sat, 21 Jul 2018 01:31:51 +0000 (03:31 +0200)]
bpo-33723: Fix test_time.test_process_time() (GH-8358)

The test failed on my laptop because the busy loop took 15.9 ms
whereas the test expects at least 20 ms. Modify test_process_time()
as test_thread_time() has been modified recently: only require 15 ms
instead of 20 ms.

6 years agobpo-34170: Rework _PyCoreConfig_Read() to avoid side effect (GH-8353)
Victor Stinner [Sat, 21 Jul 2018 00:06:16 +0000 (02:06 +0200)]
bpo-34170: Rework _PyCoreConfig_Read() to avoid side effect (GH-8353)

Rework _PyCoreConfig_Read() function which *reads* core configuration
to not *modify* the path configuration.

A new _PyCoreConfig_SetPathConfig() function now recreates the path
configuration from the core configuration. This function is now
called very late in _Py_InitializeCore(), just before calling
initimport().

Changes:

* Add _PyCoreConfig.dll_path
* Py_SetPath() now fails with a fatal python error on memory
   allocation failure.
* Rename _PyPathConfig_Calculate() to _PyPathConfig_Calculate_impl()
* Replace _PyPathConfig_Init() with _PyPathConfig_Calculate(): the
  function now requires a _PyPathConfig
* Add _PyPathConfig_SetGlobal() to set the _Py_path_config global
  variable.
* Add _PyCoreConfig_InitPathConfig(): compute the path configuration
* Add _PyCoreConfig_SetPathConfig(): set path configuration from core
  configuration
* Rename wstrlist_append() to _Py_wstrlist_append()
* _Py_wstrlist_append() now handles integer overflow.

6 years agobpo-34011: Update code copying DLLs and init.tcl into venvs. (GH-8253)
Vinay Sajip [Fri, 20 Jul 2018 16:07:38 +0000 (17:07 +0100)]
bpo-34011: Update code copying DLLs and init.tcl into venvs. (GH-8253)

6 years agoRemove extra parentheses in output formatting tutorial (GH-8350)
Aaqa Ishtyaq [Fri, 20 Jul 2018 16:06:44 +0000 (21:36 +0530)]
Remove extra parentheses in output formatting tutorial (GH-8350)

The parentheses were incorrect.

6 years agobpo-34008: Allow to call Py_Main() after Py_Initialize() (GH-8043)
Victor Stinner [Fri, 20 Jul 2018 15:34:23 +0000 (17:34 +0200)]
bpo-34008: Allow to call Py_Main() after Py_Initialize() (GH-8043)

Py_Main() can again be called after Py_Initialize(), as in Python
3.6. The new configuration is ignored, except of
_PyMainInterpreterConfig.argv which is used to update sys.argv.

6 years agobpo-34162: idlelib/NEWS.txt entries to 2018-7-20 (GH-8345)
Terry Jan Reedy [Fri, 20 Jul 2018 06:14:56 +0000 (02:14 -0400)]
bpo-34162: idlelib/NEWS.txt entries to 2018-7-20 (GH-8345)

6 years agobpo-30237: Output error when ReadConsole is canceled by CancelSynchronousIo. (GH...
ValeriyaSinevich [Thu, 19 Jul 2018 22:34:03 +0000 (15:34 -0700)]
bpo-30237: Output error when ReadConsole is canceled by CancelSynchronousIo. (GH-7911)

6 years agobpo-32692: Fix test_threading.test_set_and_clear() (GH-8331)
Victor Stinner [Thu, 19 Jul 2018 08:49:58 +0000 (10:49 +0200)]
bpo-32692: Fix test_threading.test_set_and_clear() (GH-8331)

Increase the timeout: give timeout x 4 instead of timeout x 2 to
threads to wait until the Event is set, but reduce the sleep from 500
ms to 250 ms. So the test should be more reliable and faster!

6 years agobpo-34130: Fix test_signal.test_warn_on_full_buffer() (GH-8327)
Victor Stinner [Wed, 18 Jul 2018 16:29:54 +0000 (18:29 +0200)]
bpo-34130: Fix test_signal.test_warn_on_full_buffer() (GH-8327)

On Windows, sometimes test_signal.test_warn_on_full_buffer() fails to
fill the socketpair buffer. In that case, the C signal handler
succeed to write into the socket, it doesn't log the expected send
error, and so the test fail.

On Windows, the test now uses a timeout of 50 ms to fill the
socketpair buffer to fix this race condition.

Other changes:

* Begin with large chunk size to fill the buffer to speed up the
  test.
* Add error messages to assertion errors to more easily identify
  which assertion failed.
* Don't set the read end of the socketpair as non-blocking.

6 years agobpo-34130: Fix test_signal.test_socket() (GH-8326)
Victor Stinner [Wed, 18 Jul 2018 15:43:57 +0000 (17:43 +0200)]
bpo-34130: Fix test_signal.test_socket() (GH-8326)

test_signal.test_socket(): On Windows, sometimes even if the C signal handler
succeed to write the signal number into the write end of the socketpair, the
test fails with a BlockingIOError on the non-blocking read.recv(1) because the
read end of the socketpair didn't receive the byte yet.

Fix the race condition on Windows by setting the read end as blocking.

6 years agobpo-34141: Optimized pickling simple non-recursive values. (GH-8318)
Serhiy Storchaka [Wed, 18 Jul 2018 07:10:49 +0000 (10:10 +0300)]
bpo-34141: Optimized pickling simple non-recursive values. (GH-8318)

6 years agoClarify ValueError's broad applicability (GH-8313)
Raymond Hettinger [Tue, 17 Jul 2018 15:35:26 +0000 (08:35 -0700)]
Clarify ValueError's broad applicability (GH-8313)

6 years agobpo-34068: _io__IOBase_close_impl could call _PyObject_SetAttrId with an exception...
Zackery Spytz [Tue, 17 Jul 2018 06:31:44 +0000 (00:31 -0600)]
bpo-34068: _io__IOBase_close_impl could call _PyObject_SetAttrId with an exception set (GH-8282)

6 years agobpo-33967: Fix wrong use of assertRaises (GH-8306)
INADA Naoki [Tue, 17 Jul 2018 04:44:47 +0000 (13:44 +0900)]
bpo-33967: Fix wrong use of assertRaises (GH-8306)

6 years agobpo-34123: Fix missed documentation update for dict.popitem(). (GH-8292)
Raymond Hettinger [Tue, 17 Jul 2018 00:20:15 +0000 (17:20 -0700)]
bpo-34123: Fix missed documentation update for dict.popitem(). (GH-8292)

6 years agobpo-34124: Fix markup of message_from_binary_file() signature (GH-8297)
Jon Ribbens [Mon, 16 Jul 2018 17:19:42 +0000 (18:19 +0100)]
bpo-34124: Fix markup of message_from_binary_file() signature (GH-8297)

6 years agobpo-32430: Rename Modules/Setup.dist to Modules/Setup (GH-8229)
Antoine Pitrou [Mon, 16 Jul 2018 17:03:03 +0000 (19:03 +0200)]
bpo-32430: Rename Modules/Setup.dist to Modules/Setup (GH-8229)

bpo-32430: Rename Modules/Setup.dist to Modules/Setup

Remove the necessity to copy the former manually to the latter when updating the local source tree.

6 years agobpo-33911: Fixed deprecation warning in xmlrpc.server (GH-7847)
Nicolas Noé [Mon, 16 Jul 2018 08:46:04 +0000 (10:46 +0200)]
bpo-33911: Fixed deprecation warning in xmlrpc.server (GH-7847)

Replace deprecated inspect.getfullargspec() with inspect.signature().

6 years agobpo-24618: Add a check in the code constructor. (GH-8283)
Serhiy Storchaka [Mon, 16 Jul 2018 06:10:19 +0000 (09:10 +0300)]
bpo-24618: Add a check in the code constructor. (GH-8283)

Check that the size of the varnames tuple is enough at least for all arguments.

6 years agobpo-34121: Fix detection of C11 atomic support on clang. (GH-8288)
Benjamin Peterson [Mon, 16 Jul 2018 00:01:42 +0000 (17:01 -0700)]
bpo-34121: Fix detection of C11 atomic support on clang. (GH-8288)

6 years agobpo-34087: Fix buffer overflow in int(s) and similar functions (GH-8274)
INADA Naoki [Sat, 14 Jul 2018 03:06:43 +0000 (12:06 +0900)]
bpo-34087: Fix buffer overflow in int(s) and similar functions (GH-8274)

`_PyUnicode_TransformDecimalAndSpaceToASCII()` missed trailing NUL char.
It caused buffer overflow in `_Py_string_to_number_with_underscores()`.

This bug is introduced in 9b6c60cb.

6 years agobpo-34108: Fix double carriage return in 2to3 on Windows (#8271)
Jason R. Coombs [Fri, 13 Jul 2018 15:26:03 +0000 (11:26 -0400)]
bpo-34108: Fix double carriage return in 2to3 on Windows (#8271)

* Add test capturing failure.
* Honor newlines as present in the original file.

6 years agobpo-4260: Document that ctypes.xFUNCTYPE are decorators (GH-7924)
Andrés Delfino [Fri, 13 Jul 2018 12:50:20 +0000 (09:50 -0300)]
bpo-4260: Document that ctypes.xFUNCTYPE are decorators (GH-7924)

6 years agobpo-33723: Fix test_time.test_thread_time() (GH-8267)
Victor Stinner [Thu, 12 Jul 2018 13:25:22 +0000 (15:25 +0200)]
bpo-33723: Fix test_time.test_thread_time() (GH-8267)

The test failed on AMD64 Debian root 3.x buildbot because the busy
loop of 100 ms only increased time.thread_time() by 19.9 ms which is
smaller than 20 ms. Modify the test to tolerate a delta of at least
15 ms instead of 20 ms.

6 years agobpo-33967: Remove use of deprecated assertRaisesRegexp() (GH-8261)
Zackery Spytz [Thu, 12 Jul 2018 03:57:05 +0000 (21:57 -0600)]
bpo-33967: Remove use of deprecated assertRaisesRegexp() (GH-8261)

It was added in test_functools at 445f1b3.

6 years agobpo-34080: Fix a memory leak in the compiler. (GH-8222)
Serhiy Storchaka [Wed, 11 Jul 2018 21:17:53 +0000 (00:17 +0300)]
bpo-34080: Fix a memory leak in the compiler. (GH-8222)

6 years agoEnable GUI testing on Travis Linux builds via Xvfb (GH-7887)
Zachary Ware [Wed, 11 Jul 2018 19:09:58 +0000 (14:09 -0500)]
Enable GUI testing on Travis Linux builds via Xvfb (GH-7887)

6 years agobpo-23927: Make getargs.c skipitem() skipping 'w*'. (GH-8192)
Serhiy Storchaka [Wed, 11 Jul 2018 14:41:43 +0000 (17:41 +0300)]
bpo-23927: Make getargs.c skipitem() skipping 'w*'. (GH-8192)

6 years agobpo-33648: Remove PY_WARN_ON_C_LOCALE (GH-7114)
Eitan Adler [Wed, 11 Jul 2018 11:01:27 +0000 (04:01 -0700)]
bpo-33648: Remove PY_WARN_ON_C_LOCALE (GH-7114)

This code does not appear to be used anywhere in the python code base.
The use was removed in eb81795d7d3a8c898fa89.

6 years agobpo-34092, test_logging: increase SMTPHandlerTest timeout (GH-8245)
Victor Stinner [Wed, 11 Jul 2018 10:35:38 +0000 (12:35 +0200)]
bpo-34092, test_logging: increase SMTPHandlerTest timeout (GH-8245)

Change test_logging.SMTPHandlerTest timeout from 8 seconds to 1
minute. The test failed randomly on the slow x86 Gentoo Refleaks 3.7
buildbot.

6 years agoSimplify __all__ in multiprocessing (GH-6856)
Derek B. Kim [Wed, 11 Jul 2018 10:22:28 +0000 (19:22 +0900)]
Simplify __all__ in multiprocessing (GH-6856)

6 years agobpo-34083: Update dict order in Functional HOWTO (GH-8230)
Stig Johan Berggren [Wed, 11 Jul 2018 09:53:07 +0000 (11:53 +0200)]
bpo-34083: Update dict order in Functional HOWTO (GH-8230)

6 years agoDoc: Point to Simple statements section instead of PEP (GH-8238)
Andrés Delfino [Wed, 11 Jul 2018 09:44:06 +0000 (06:44 -0300)]
Doc: Point to Simple statements section instead of PEP (GH-8238)

6 years agobpo-29442: Replace optparse with argparse in setup.py (GH-139)
Chih-Hsuan Yen [Wed, 11 Jul 2018 08:48:43 +0000 (16:48 +0800)]
bpo-29442: Replace optparse with argparse in setup.py (GH-139)

6 years agobpo-33597: Add What's New for PyGC_Head (GH-8236)
INADA Naoki [Wed, 11 Jul 2018 08:42:49 +0000 (17:42 +0900)]
bpo-33597: Add What's New for PyGC_Head (GH-8236)

6 years agoDataclasses: Fix example on 30.6.8, add method should receive a list rather than...
Tom Faulkner [Wed, 11 Jul 2018 02:39:57 +0000 (21:39 -0500)]
Dataclasses: Fix example on 30.6.8, add method should receive a list rather than an integer. (GH-8038)

Change example function to append rather than add lists.

6 years agoFix documentation for input and output tutorial (GH-8231)
Lysandros Nikolaou [Wed, 11 Jul 2018 00:11:34 +0000 (02:11 +0200)]
Fix documentation for input and output tutorial (GH-8231)

The ValueError message ends with a period.

6 years agobpo-34009: Expand on platform support changes (GH-8022)
Nick Coghlan [Tue, 10 Jul 2018 13:04:29 +0000 (23:04 +1000)]
bpo-34009: Expand on platform support changes (GH-8022)

Many users won't realise the implications the OpenSSL 1.0.2
minimum version requirement has when it comes to Ubuntu
14.04 and Debian 8, so expand on that in the platform support
section.

Also explicitly note the non-ASCII-based locale requirement for
full Unicode text handling support on non-Windows systems.

6 years agoFactor-out two substantially identical code blocks. (GH-8219)
Raymond Hettinger [Tue, 10 Jul 2018 11:17:40 +0000 (04:17 -0700)]
Factor-out two substantially identical code blocks. (GH-8219)

6 years agobpo-34031: fix incorrect usage of self.fail in two tests (GH-8091)
Bradley Laney [Tue, 10 Jul 2018 09:46:44 +0000 (05:46 -0400)]
bpo-34031: fix incorrect usage of self.fail in two tests (GH-8091)

Contributed by Bradley Laney.

6 years agobpo-33597: Reduce PyGC_Head size (GH-7043)
INADA Naoki [Tue, 10 Jul 2018 08:19:53 +0000 (17:19 +0900)]
bpo-33597: Reduce PyGC_Head size (GH-7043)

6 years agobpo-33967: Fix singledispatch raised IndexError when no args (GH-8184)
Dong-hee Na [Tue, 10 Jul 2018 07:26:36 +0000 (16:26 +0900)]
bpo-33967: Fix singledispatch raised IndexError when no args (GH-8184)

6 years agoprefix internal sqlite symbols with _pysqlite_ (GH-8215)
Benjamin Peterson [Tue, 10 Jul 2018 04:20:23 +0000 (21:20 -0700)]
prefix internal sqlite symbols with _pysqlite_ (GH-8215)

6 years agodelete some unused pysqlite forward declarations (GH-8211)
Benjamin Peterson [Tue, 10 Jul 2018 03:41:26 +0000 (20:41 -0700)]
delete some unused pysqlite forward declarations (GH-8211)

6 years agoMove Code_of_Conduct.rst to the root level. (GH-8209)
Mariatta [Mon, 9 Jul 2018 21:29:57 +0000 (14:29 -0700)]
Move Code_of_Conduct.rst to the root level. (GH-8209)

Follow up from https://github.com/python/peps/pull/712#issuecomment-403591108:

"people using the repo without using GitHub still ought to be reminded of the COC" - GvR

6 years agobpo-11572: Make minor improvements to copy module (GH-8208)
Berker Peksag [Mon, 9 Jul 2018 20:14:54 +0000 (23:14 +0300)]
bpo-11572: Make minor improvements to copy module (GH-8208)

* When doing getattr lookups with a default of "None", it now
  uses an "is" comparison against None which is more correct
* Removed outdated code

Patch by Brandon Rhodes.

6 years agobpo-24459: Document missing env variables in python.man (GH-4142)
Berker Peksag [Mon, 9 Jul 2018 19:17:54 +0000 (22:17 +0300)]
bpo-24459: Document missing env variables in python.man (GH-4142)

Initial patch by Joshua Jay Herman.

6 years agobpo-22689: Copy the result of getenv() in sys_breakpointhook(). (GH-8194)
Serhiy Storchaka [Mon, 9 Jul 2018 18:46:51 +0000 (21:46 +0300)]
bpo-22689: Copy the result of getenv() in sys_breakpointhook(). (GH-8194)

6 years agoFixed several assertTrue() that were intended to be assertEqual(). (GH-8191)
Sergey Fedoseev [Mon, 9 Jul 2018 15:25:55 +0000 (20:25 +0500)]
Fixed several assertTrue() that were intended to be assertEqual(). (GH-8191)

Fixed also testing the "always" warning filter.

6 years agobpo-34067: Include a more easily understood example for nullcontext (GH-8158)
Daniel Porteous [Mon, 9 Jul 2018 13:49:29 +0000 (06:49 -0700)]
bpo-34067: Include a more easily understood example for nullcontext (GH-8158)

Include a more easily understood example for nullcontext

6 years agobpo-34066: Disabled interruption before SETUP_WITH and BEFORE_ASYNC_WITH. (GH-8159)
Serhiy Storchaka [Mon, 9 Jul 2018 12:40:14 +0000 (15:40 +0300)]
bpo-34066: Disabled interruption before SETUP_WITH and BEFORE_ASYNC_WITH. (GH-8159)

This will prevent emitting a resource warning when the execution was
interrupted by Ctrl-C between calling open() and entering a 'with' block
in "with open()".

6 years agobpo-33305: Improve SyntaxError for invalid numerical literals. (GH-6517)
Serhiy Storchaka [Mon, 9 Jul 2018 12:09:35 +0000 (15:09 +0300)]
bpo-33305: Improve SyntaxError for invalid numerical literals. (GH-6517)

6 years agobpo-26544: Fixed implementation of platform.libc_ver(). (GH-7684)
Serhiy Storchaka [Mon, 9 Jul 2018 08:47:45 +0000 (11:47 +0300)]
bpo-26544: Fixed implementation of platform.libc_ver(). (GH-7684)

6 years agoFix margin in sentinel and mock_open (GH-8188)
Andrés Delfino [Mon, 9 Jul 2018 00:28:51 +0000 (21:28 -0300)]
Fix margin in sentinel and mock_open (GH-8188)

6 years agobpo-34061: Document sqlite3.NotSupportedError (GH-8172)
Marcin Niemira [Sun, 8 Jul 2018 12:02:58 +0000 (14:02 +0200)]
bpo-34061: Document sqlite3.NotSupportedError (GH-8172)

6 years agobpo-31014: Fix the webbrowser module. (GH-7267)
Serhiy Storchaka [Sun, 8 Jul 2018 07:22:32 +0000 (10:22 +0300)]
bpo-31014: Fix the webbrowser module. (GH-7267)

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

Co-Authored-By: John Still <john@jmsdvl.com>
6 years agobpo-34041: Allow creating deterministic functions in Connection.create_function(...
Sergey Fedoseev [Sun, 8 Jul 2018 07:09:20 +0000 (12:09 +0500)]
bpo-34041: Allow creating deterministic functions in Connection.create_function() (GH-8086)

6 years agobpo-33888: Use CPython instead of Python in the FAQ (GH-7767)
Andrés Delfino [Sat, 7 Jul 2018 23:25:47 +0000 (20:25 -0300)]
bpo-33888: Use CPython instead of Python in the FAQ (GH-7767)

Make the change where discussing the CPython implementation of lists and dicts.

6 years agocloses bpo-34050: Fix link in SSL docs (GH-8173)
Marcin Niemira [Sat, 7 Jul 2018 22:24:20 +0000 (00:24 +0200)]
closes bpo-34050: Fix link in SSL docs (GH-8173)

6 years agoMake PySimpleQueueType static. (GH-8175)
Benjamin Peterson [Sat, 7 Jul 2018 22:21:15 +0000 (15:21 -0700)]
Make PySimpleQueueType static. (GH-8175)

6 years agobpo-28626: rearrange discussion of output formatting to encourage f-strings (#6036)
Andrew Kuchling [Sat, 7 Jul 2018 21:36:23 +0000 (17:36 -0400)]
bpo-28626: rearrange discussion of output formatting to encourage f-strings (#6036)

The 'output formatting' section of the tutorial talks a lot about manual formatting with things like .rjust() and .zfill(), with only a passing reference to 3.6's new f-strings.

This doesn't drop all of the old material, but it does rearrange the topics into a more modern order: f-strings first, discussing formatting specifiers a bit; then calling .format(); finally manual formatting with .ljust().

6 years agobpo-33702: Add some missing links in production lists and do a little polish (GH...
Andrés Delfino [Sat, 7 Jul 2018 20:24:46 +0000 (17:24 -0300)]
bpo-33702: Add some missing links in production lists and do a little polish (GH-7259)

6 years agobpo-33804: Document that the argument for io.TextIOBase.read() is optional (GH-7510)
Andrés Delfino [Sat, 7 Jul 2018 20:17:16 +0000 (17:17 -0300)]
bpo-33804: Document that the argument for io.TextIOBase.read() is optional (GH-7510)

6 years agoFix moduleauthor/sectionauthor directives in Enum (GH-8117)
Andrés Delfino [Sat, 7 Jul 2018 19:01:25 +0000 (16:01 -0300)]
Fix moduleauthor/sectionauthor directives in Enum (GH-8117)

6 years agoAdd missing closing parentheses (GH-8144)
Andrés Delfino [Sat, 7 Jul 2018 19:00:46 +0000 (16:00 -0300)]
Add missing closing parentheses (GH-8144)

6 years agoMake various internal _testbuffer symbols static. (GH-8160)
Benjamin Peterson [Sat, 7 Jul 2018 18:18:38 +0000 (11:18 -0700)]
Make various internal _testbuffer symbols static. (GH-8160)

6 years agoFix typo in TypeVar docstring (#8142)
João D. Ferreira [Sat, 7 Jul 2018 15:41:20 +0000 (16:41 +0100)]
Fix typo in TypeVar docstring (#8142)

"can be used do declare" → "can be used to declare"

6 years agobpo-34065: Improve the markup of logging.basicConfig() arguments (GH-8153)
Dong-hee Na [Sat, 7 Jul 2018 12:36:40 +0000 (21:36 +0900)]
bpo-34065: Improve the markup of logging.basicConfig() arguments (GH-8153)

6 years agoHide some symbols from _xxsubinterpreters. (GH-8151)
Benjamin Peterson [Sat, 7 Jul 2018 06:28:35 +0000 (23:28 -0700)]
Hide some symbols from _xxsubinterpreters. (GH-8151)

6 years agoMake two PyModuleDef_Slot symbols static in _testmultiphase. (GH-8147)
Benjamin Peterson [Sat, 7 Jul 2018 04:05:51 +0000 (21:05 -0700)]
Make two PyModuleDef_Slot symbols static in _testmultiphase. (GH-8147)

6 years agocloses bpo-34056: Always return bytes from _HackedGetData.get_data(). (GH-8130)
Benjamin Peterson [Sat, 7 Jul 2018 03:41:06 +0000 (20:41 -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.

6 years agobpo-23493: json: Change sort_keys in Python encoder same to C (GH-8131)
INADA Naoki [Fri, 6 Jul 2018 23:55:03 +0000 (08:55 +0900)]
bpo-23493: json: Change sort_keys in Python encoder same to C (GH-8131)

Stop using key=lambda.  This behavior is same to C version encoder.

6 years agobpo-34042: Fix dict.copy() to maintain correct total refcount (GH-8119)
Yury Selivanov [Fri, 6 Jul 2018 16:20:07 +0000 (12:20 -0400)]
bpo-34042: Fix dict.copy() to maintain correct total refcount (GH-8119)

6 years agoClarify that example in comment is about fromkeys() (GH-8141)
Raymond Hettinger [Fri, 6 Jul 2018 15:52:26 +0000 (08:52 -0700)]
Clarify that example in comment is about fromkeys() (GH-8141)

6 years agobpo-34054: multiprocessing uses time.monotonic() (GH-8118)
Victor Stinner [Fri, 6 Jul 2018 11:51:52 +0000 (13:51 +0200)]
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.

6 years agofix two typos in Objects/odictobject.c comments (GH-8040)
Robert Krzyzanowski [Fri, 6 Jul 2018 10:54:26 +0000 (05:54 -0500)]
fix two typos in Objects/odictobject.c comments (GH-8040)

6 years agobpo-20180: complete AC conversion of Objects/stringlib/transmogrify.h (GH-8039)
Tal Einat [Fri, 6 Jul 2018 10:17:38 +0000 (13:17 +0300)]
bpo-20180: complete AC conversion of Objects/stringlib/transmogrify.h (GH-8039)

* converted bytes methods: expandtabs, ljust, rjust, center, zfill
* updated char_convertor to properly set the C default value

6 years agoDoc: Remove superfluous markup. (GH-8112)
Julien Palard [Fri, 6 Jul 2018 09:15:13 +0000 (11:15 +0200)]
Doc: Remove superfluous markup. (GH-8112)

The line is speaking of a list of commands, not the list command.

6 years agoFix GCC warning in Python/hamt.c (GH-7618)
Zackery Spytz [Fri, 6 Jul 2018 08:50:38 +0000 (02:50 -0600)]
Fix GCC warning in Python/hamt.c (GH-7618)

6 years agobpo-33899: Make tokenize module mirror end-of-file is end-of-line behavior (GH-7891)
Ammar Askar [Fri, 6 Jul 2018 07:19:08 +0000 (03:19 -0400)]
bpo-33899: Make tokenize module mirror end-of-file is end-of-line behavior (GH-7891)

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.