]> granicus.if.org Git - python/log
python
6 years agoAdd more tests and assertions for math.hypot() and math.dist() (GH-8747)
Raymond Hettinger [Sun, 12 Aug 2018 19:15:23 +0000 (12:15 -0700)]
Add more tests and assertions for math.hypot() and math.dist() (GH-8747)

6 years agobpo-34213: Allow dataclasses to work with a field named 'object'. (GH-8452)
Vadim Pushtaev [Sun, 12 Aug 2018 11:46:05 +0000 (14:46 +0300)]
bpo-34213: Allow dataclasses to work with a field named 'object'. (GH-8452)

6 years agoFix the versionadded indentation in exec_module doc (GH-8719)
Andrés Delfino [Sun, 12 Aug 2018 06:50:46 +0000 (03:50 -0300)]
Fix the versionadded indentation in exec_module doc (GH-8719)

6 years agoFactor-out common code. Also, optimize common cases by preallocating space on the...
Raymond Hettinger [Sun, 12 Aug 2018 01:39:05 +0000 (18:39 -0700)]
Factor-out common code. Also, optimize common cases by preallocating space on the stack. GH-8738

Improves speed by 9 to 10ns per call.

6 years agoReplace straight addition with Kahan summation and move max to the end (GH-8727)
Raymond Hettinger [Sat, 11 Aug 2018 18:26:36 +0000 (11:26 -0700)]
Replace straight addition with Kahan summation and move max to the end (GH-8727)

6 years agobpo-34151: Improve performance of some list operations (GH-8332)
Sergey Fedoseev [Sat, 11 Aug 2018 13:12:07 +0000 (18:12 +0500)]
bpo-34151: Improve performance of some list operations (GH-8332)

6 years agobpo-34379: Doc: Move note for json.dump (GH-8730)
Evan Allrich [Sat, 11 Aug 2018 07:34:02 +0000 (02:34 -0500)]
bpo-34379: Doc: Move note for json.dump (GH-8730)

6 years agocloses bpo-34377: Update Valgrind suppressions. (GH-8729)
Paul Price [Sat, 11 Aug 2018 06:41:34 +0000 (02:41 -0400)]
closes bpo-34377: Update Valgrind suppressions. (GH-8729)

Valgrind isn't seeing PyObject_Free/PyObject_Realloc, but using _PyObject_Free/_PyObject_Realloc works.

6 years agobpo-26818: Add a test to make sure the bug is fixed (GH-8664)
Berker Peksag [Sat, 11 Aug 2018 06:15:43 +0000 (09:15 +0300)]
bpo-26818: Add a test to make sure the bug is fixed (GH-8664)

The main cause of this bug was fixed as part of bpo-31908.

6 years agobpo-9372: Deprecate several __getitem__ methods (GH-8609)
Berker Peksag [Sat, 11 Aug 2018 06:05:04 +0000 (09:05 +0300)]
bpo-9372: Deprecate several __getitem__ methods (GH-8609)

The __getitem__ methods of DOMEventStream, FileInput,
and FileWrapper classes ignore their 'index' parameters
and return the next item instead.

6 years agobpo-34333: Fix %-formatting in Path.with_suffix() (GH-8663)
Berker Peksag [Sat, 11 Aug 2018 05:45:06 +0000 (08:45 +0300)]
bpo-34333: Fix %-formatting in Path.with_suffix() (GH-8663)

6 years agobpo-34047: IDLE: fix mousewheel scrolling direction on macOS (GH-8678)
Tal Einat [Fri, 10 Aug 2018 06:02:08 +0000 (09:02 +0300)]
bpo-34047: IDLE: fix mousewheel scrolling direction on macOS (GH-8678)

6 years agocloses bpo-34353: Add sockets to stat.filemode fallback python implementation. (GH...
GPery [Fri, 10 Aug 2018 05:12:08 +0000 (08:12 +0300)]
closes bpo-34353: Add sockets to stat.filemode fallback python implementation. (GH-8703)

6 years agoFixed inconsistency in string handling in the Task C implementation (GH-8717)
Alex Grönholm [Thu, 9 Aug 2018 20:49:49 +0000 (23:49 +0300)]
Fixed inconsistency in string handling in the Task C implementation (GH-8717)

6 years agoDoc: add missing capture_output arg to subprocess.run() signature (#8374)
Andriy Maletsky [Thu, 9 Aug 2018 20:01:54 +0000 (23:01 +0300)]
Doc: add missing capture_output arg to subprocess.run() signature (#8374)

6 years agoImprove grammar of asynchronous iterator glossary entry (GH-8657)
Andrés Delfino [Thu, 9 Aug 2018 15:45:41 +0000 (12:45 -0300)]
Improve grammar of asynchronous iterator glossary entry (GH-8657)

6 years agobpo-34324: Doc README wrong directory name for venv (GH-8650)
Stéphane Wirtel [Thu, 9 Aug 2018 15:05:31 +0000 (17:05 +0200)]
bpo-34324: Doc README wrong directory name for venv (GH-8650)

In the documentation, the `env` directory is specified when we execute
the `make venv` command. But in the code, `make venv` will create the
virtualenv inside the `venv` directory (defined by `VENVDIR`)

6 years agobpo-34270: Make it possible to name asyncio tasks (GH-8547)
Alex Grönholm [Wed, 8 Aug 2018 21:06:47 +0000 (00:06 +0300)]
bpo-34270: Make it possible to name asyncio tasks (GH-8547)

Co-authored-by: Antti Haapala <antti.haapala@anttipatterns.com>
6 years agoAssume the raw environ is always declared. (GH-8707)
Benjamin Peterson [Wed, 8 Aug 2018 04:51:12 +0000 (21:51 -0700)]
Assume the raw environ is always declared. (GH-8707)

posixmodule.c always declares environ, so don't bother catching a NameError in os.py.

6 years agoMake code examples in Functional Programming HOWTO to be PEP 8 compliant. (GH-8646)
Sergey Fedoseev [Tue, 7 Aug 2018 21:38:00 +0000 (02:38 +0500)]
Make code examples in Functional Programming HOWTO to be PEP 8 compliant. (GH-8646)

6 years agobpo-34335: Use async/await syntax in documentation examples (GH-8674)
Mikhail Terekhov [Tue, 7 Aug 2018 20:29:06 +0000 (16:29 -0400)]
bpo-34335: Use async/await syntax in documentation examples (GH-8674)

6 years agoVSTS: Skip build steps when only docs have changed (GH-8546)
Steve Dower [Tue, 7 Aug 2018 14:45:27 +0000 (15:45 +0100)]
VSTS: Skip build steps when only docs have changed (GH-8546)

6 years agoRemove unneeded PyErr_Clear() calls after PyErr_Print(). (GH-8699)
Zackery Spytz [Tue, 7 Aug 2018 14:26:58 +0000 (08:26 -0600)]
Remove unneeded PyErr_Clear() calls after PyErr_Print(). (GH-8699)

PyErr_Print() always clears the error indicator, so there is no need
to call PyErr_Clear() immediately afterwards.

6 years agobpo-18540: Fix EAI_NONAME in imaplib.IMAP4*() (GH-8634)
Berker Peksag [Tue, 7 Aug 2018 02:12:18 +0000 (05:12 +0300)]
bpo-18540: Fix EAI_NONAME in imaplib.IMAP4*() (GH-8634)

6 years agoFix HTML formatting in datamodel.rst (GH-8693)
Berker Peksag [Mon, 6 Aug 2018 20:52:49 +0000 (23:52 +0300)]
Fix HTML formatting in datamodel.rst (GH-8693)

6 years agobpo-34319: Clarify file handler closure in pathlib.read_text (GH-8645)
Xtreak [Mon, 6 Aug 2018 19:55:03 +0000 (01:25 +0530)]
bpo-34319: Clarify file handler closure in pathlib.read_text (GH-8645)

Patch by Terry Jan Reedy.

6 years agobpo-34272: Move argument parsing tests from test_capi to test_getargs2. (GH-8567)
Serhiy Storchaka [Mon, 6 Aug 2018 13:50:19 +0000 (16:50 +0300)]
bpo-34272: Move argument parsing tests from test_capi to test_getargs2. (GH-8567)

6 years agobpo-34273: Change 'Fixed point' to 'Fixed-point notation'. (#8673)
Terry Jan Reedy [Mon, 6 Aug 2018 12:41:17 +0000 (08:41 -0400)]
bpo-34273: Change 'Fixed point' to 'Fixed-point notation'. (#8673)

* bpo-34273: Change 'Fixed point' to 'Fixed-point notation'.
The change in the mini language floating point and decimal table
is consistent with 'Exponential notation' and clarifies that we
are referring to the output notation, not an object type.

* Update string.rst

* Update string.rst

* Update string.rst

* Update string.rst

6 years agobpo-19891: Ignore error while writing history file (GH-8483)
Anthony Sottile [Mon, 6 Aug 2018 08:28:19 +0000 (01:28 -0700)]
bpo-19891: Ignore error while writing history file (GH-8483)

6 years agobpo-34336: Don't promote possibility to leave out typing.Optional (#8677)
Ville Skyttä [Sun, 5 Aug 2018 16:38:04 +0000 (19:38 +0300)]
bpo-34336: Don't promote possibility to leave out typing.Optional (#8677)

6 years agobpo-33839: refactor IDLE's tooltips & calltips, add docstrings and tests (GH-7683)
Tal Einat [Sun, 5 Aug 2018 06:21:08 +0000 (09:21 +0300)]
bpo-33839: refactor IDLE's tooltips & calltips, add docstrings and tests (GH-7683)

* make CallTip and ToolTip sub-classes of a common abstract base class
* remove ListboxToolTip (unused and ugly)
* greatly increase test coverage
* tested on Windows, Linux and macOS

6 years agoFix reST markup in unittest documentation (GH-8665)
Berker Peksag [Fri, 3 Aug 2018 21:56:55 +0000 (00:56 +0300)]
Fix reST markup in unittest documentation (GH-8665)

6 years agobpo-34170: Fix pymain_run_file() (GH-8660)
Victor Stinner [Fri, 3 Aug 2018 21:54:06 +0000 (23:54 +0200)]
bpo-34170: Fix pymain_run_file() (GH-8660)

bpo-34170, bpo-34326: Fix pymain_run_file(): use
PyRun_AnyFileExFlags(closeit=1) instead of calling fclose(fp)
explicitly to close the input file before running the code.

6 years agobpo-34329: Doc'd how to remove suffix of pathlib.Path() (GH-8655)
Stefan Otte [Fri, 3 Aug 2018 20:49:42 +0000 (22:49 +0200)]
bpo-34329: Doc'd how to remove suffix of pathlib.Path() (GH-8655)

6 years agobpo-34170: _PyCoreConfig_Read() don't replace coerce_c_locale (GH-8658)
Victor Stinner [Fri, 3 Aug 2018 20:49:07 +0000 (22:49 +0200)]
bpo-34170: _PyCoreConfig_Read() don't replace coerce_c_locale (GH-8658)

If coerce_c_locale is already set (>= 0), use its value: don't
override it.

6 years agobpo-34325: Skip zipfile test for large timestamps when filesystem don't support them...
Marcel Plch [Fri, 3 Aug 2018 15:59:19 +0000 (17:59 +0200)]
bpo-34325: Skip zipfile test for large timestamps when filesystem don't support them. (GH-8656)

When the filesystem doesn't support files with large timestamps,
skip testing that such files can be zipped.

6 years agobpo-34301: Add _PyInterpreterState_Get() helper function (GH-8592)
Victor Stinner [Fri, 3 Aug 2018 13:33:52 +0000 (15:33 +0200)]
bpo-34301: Add _PyInterpreterState_Get() helper function (GH-8592)

sys_setcheckinterval() now uses a local variable to parse arguments,
before writing into interp->check_interval.

6 years agoFix docstring of Profiler class (GH-8651)
INADA Naoki [Fri, 3 Aug 2018 09:09:57 +0000 (18:09 +0900)]
Fix docstring of Profiler class (GH-8651)

6 years agoImprove the grammar in `range` documentation. (GH-8628)
Andrés Delfino [Fri, 3 Aug 2018 05:12:51 +0000 (02:12 -0300)]
Improve the grammar in `range` documentation. (GH-8628)

Remove unnecessary "that" in the sentence.

6 years ago bpo-34275: Make IDLE calltips always visible on Mac. (GH-8639)
Terry Jan Reedy [Fri, 3 Aug 2018 02:50:01 +0000 (22:50 -0400)]
 bpo-34275: Make IDLE calltips always visible on Mac.  (GH-8639)

Some MacOS-tk combinations need .update_idletasks().
The call is both unneeded and innocuous on Linux and Windows.
Patch by Kevin Waltzer.

6 years agoUpdate list.remove(x) documentation (GH-8636)
Lysandros Nikolaou [Fri, 3 Aug 2018 02:45:48 +0000 (04:45 +0200)]
Update list.remove(x) documentation (GH-8636)

Rephrase it to "It raises a `ValueError`"

6 years agobpo-34317: Fix a dead url to Windows documentation (GH-8622)
HiyashiChuka [Fri, 3 Aug 2018 02:44:06 +0000 (11:44 +0900)]
bpo-34317: Fix a dead url to Windows documentation (GH-8622)

6 years agobpo-30317: Fix multiprocessing test_timeout() (GH-8621)
Victor Stinner [Fri, 3 Aug 2018 00:09:00 +0000 (02:09 +0200)]
bpo-30317: Fix multiprocessing test_timeout() (GH-8621)

Multiprocessing test_timeout() now accepts a delta of 100 ms instead
of just 50 ms, since the test failed with 135.8 ms instead of the
expected 200 ms.

6 years agobpo-34170: Cleanup pymain_run_filename() (GH-8631)
Victor Stinner [Thu, 2 Aug 2018 17:34:20 +0000 (19:34 +0200)]
bpo-34170: Cleanup pymain_run_filename() (GH-8631)

* Inline pymain_run_file() and pymain_open_filename() into
  pymain_run_filename()
* Created pymain_run_stdin() which is pymain_run_filename() with
  filename=NULL
* Rename pymain_run_filename() to pymain_run_file()

6 years agobpo-27910: Update documentation of traceback module (GH-6116)
torsava [Thu, 2 Aug 2018 16:08:59 +0000 (17:08 +0100)]
bpo-27910: Update documentation of traceback module (GH-6116)

In the documentation for the traceback module, the definitions of functions
extract_tb(), format_list() and classmethod StackSummary.from_list()
mention the old style 4-tuples that these functions used to return or accept.

Since Python 3.5, however, they return or accept a FrameSummary object
instead of a 4-tuple, or a StackSummary object instead of a list of 4-tuples.

Co-Authored-By: Berker Peksag <berker.peksag@gmail.com>
6 years agobpo-34097: Add support for zipping files older than 1980-01-01 (GH-8270)
Marcel Plch [Thu, 2 Aug 2018 13:04:52 +0000 (15:04 +0200)]
bpo-34097: Add support for zipping files older than 1980-01-01 (GH-8270)

ZipFile can zip files older than 1980-01-01 and newer than 2107-12-31 using
a new strict_timestamps parameter at the cost of setting the timestamp
to the limit.

6 years agobpo-34287: Do not use second argument of METH_NOARGS functions (GH-8582)
jdemeyer [Thu, 2 Aug 2018 11:14:54 +0000 (13:14 +0200)]
bpo-34287: Do not use second argument of METH_NOARGS functions (GH-8582)

6 years agobpo-34120: fix text viewer to call grab_release() only when needed (GH-8616)
Tal Einat [Thu, 2 Aug 2018 07:30:06 +0000 (10:30 +0300)]
bpo-34120: fix text viewer to call grab_release() only when needed (GH-8616)

6 years agobpo-34120: fix IDLE freezing after closing dialogs (GH-8603)
Tal Einat [Thu, 2 Aug 2018 06:18:29 +0000 (09:18 +0300)]
bpo-34120: fix IDLE freezing after closing dialogs (GH-8603)

Added missing .grab_release() calls to all places where we call .grab_set().

6 years agobpo-31650: Remove _Py_CheckHashBasedPycsMode global config var (GH-8608)
Victor Stinner [Wed, 1 Aug 2018 16:18:07 +0000 (18:18 +0200)]
bpo-31650: Remove _Py_CheckHashBasedPycsMode global config var (GH-8608)

bpo-31650, bpo-34170: Replace _Py_CheckHashBasedPycsMode with
_PyCoreConfig._check_hash_pycs_mode. Modify PyInit__imp() and
zipimport to get the parameter from the current interpreter core
configuration.

Remove Include/internal/import.h file.

6 years agobpo-34170: Add Python/coreconfig.c for _PyCoreConfig (GH-8607)
Victor Stinner [Wed, 1 Aug 2018 15:56:14 +0000 (17:56 +0200)]
bpo-34170: Add Python/coreconfig.c for _PyCoreConfig (GH-8607)

* Add Include/coreconfig.h
* Move config_*() and _PyCoreConfig_*() functions from Modules/main.c
  to a new Python/coreconfig.c file.
* Inline _Py_ReadHashSeed() into config_init_hash_seed()
* Move global configuration variables to coreconfig.c

6 years agoDefine _Py_NO_RETURN for Microsoft C compiler (GH-8606)
Victor Stinner [Wed, 1 Aug 2018 14:41:25 +0000 (16:41 +0200)]
Define _Py_NO_RETURN for Microsoft C compiler (GH-8606)

6 years agobpo-33499: Fix pymain_init_pycache_prefix() (GH-8596)
Victor Stinner [Wed, 1 Aug 2018 14:16:46 +0000 (16:16 +0200)]
bpo-33499: Fix pymain_init_pycache_prefix() (GH-8596)

Fix a memory leak in pymain_init_pycache_prefix()
when PYTHONPYCACHEPREFIX and -X pycache_prefix are used.

6 years agobpo-34170: _PyCoreConfig_Read() defaults to argc=0 (GH-8595)
Victor Stinner [Wed, 1 Aug 2018 01:07:18 +0000 (03:07 +0200)]
bpo-34170: _PyCoreConfig_Read() defaults to argc=0 (GH-8595)

Add unit tests for argc and argv of _PyCoreConfig.

6 years agobpo-34170: Rename _PyCoreConfig.unbuffered_stdip (GH-8594)
Victor Stinner [Wed, 1 Aug 2018 01:07:00 +0000 (03:07 +0200)]
bpo-34170: Rename _PyCoreConfig.unbuffered_stdip (GH-8594)

* Rename _PyCoreConfig.unbuffered_stdio to buffered_stdio
* Rename _PyCoreConfig.debug to parser_debug

6 years agobpo-34170: Py_Main() updates config when setting Py_InspectFlag (GH-8593)
Victor Stinner [Wed, 1 Aug 2018 00:57:45 +0000 (02:57 +0200)]
bpo-34170: Py_Main() updates config when setting Py_InspectFlag (GH-8593)

6 years agobpo-34170: Add _PyCoreConfig._frozen parameter (GH-8591)
Victor Stinner [Wed, 1 Aug 2018 00:13:04 +0000 (02:13 +0200)]
bpo-34170: Add _PyCoreConfig._frozen parameter (GH-8591)

Modify frozenmain.c to use _Py_InitializeFromConfig().

6 years agobpo-34113: Fix a crash when using LLTRACE is on (GH-8517)
costypetrisor [Tue, 31 Jul 2018 20:55:14 +0000 (20:55 +0000)]
bpo-34113: Fix a crash when using LLTRACE is on (GH-8517)

Fix a crash on negative STACKADJ() when Low-Level trace (LLTRACE) is enabled.

6 years agobpo-34263 Cap timeout submitted to epoll/select etc. to one day. (GH-8532)
MartinAltmayer [Tue, 31 Jul 2018 14:06:12 +0000 (15:06 +0100)]
bpo-34263 Cap timeout submitted to epoll/select etc. to one day. (GH-8532)

6 years agobpo-33089: Add math.dist() for computing the Euclidean distance between two points...
Raymond Hettinger [Tue, 31 Jul 2018 07:45:49 +0000 (00:45 -0700)]
bpo-33089: Add math.dist() for computing the Euclidean distance between two points (GH-8561)

6 years agobpo-33871: Fix os.sendfile(), os.writev(), os.readv(), etc. (GH-7931)
Serhiy Storchaka [Tue, 31 Jul 2018 07:24:54 +0000 (10:24 +0300)]
bpo-33871: Fix os.sendfile(), os.writev(), os.readv(), etc. (GH-7931)

* Fix integer overflow in os.readv(), os.writev(), os.preadv()
  and os.pwritev() and in os.sendfile() with headers or trailers
  arguments (on BSD-based OSes and MacOS).

* Fix sending the part of the file in os.sendfile() on MacOS.
  Using the trailers argument could cause sending more bytes from
  the input file than was specified.

Thanks Ned Deily for testing on 32-bit MacOS.

6 years agobpo-33729: Fix issues with arguments parsing in hashlib. (GH-8346)
Serhiy Storchaka [Tue, 31 Jul 2018 06:50:16 +0000 (09:50 +0300)]
bpo-33729: Fix issues with arguments parsing in hashlib. (GH-8346)

* help(hashlib) didn't work because of incorrect module name in blake2b and
  blake2s classes.
* Constructors blake2*(), sha3_*(), shake_*() and keccak_*() incorrectly
  accepted keyword argument "string" for binary data, but documented as
  accepting the "data" keyword argument. Now this parameter is positional-only.
* Keyword-only parameters in blake2b() and blake2s() were not documented as
  keyword-only.
* Default value for some parameters of blake2b() and blake2s() was None,
  which is not acceptable value.
* The length argument for shake_*.digest() was wrapped out to 32 bits.
* The argument for shake_128.digest() and shake_128.hexdigest() was not
  positional-only as intended.
* TypeError messages for incorrect arguments in all constructors sha3_*(),
  shake_*() and keccak_*() incorrectly referred to sha3_224.

Also made the following enhancements:

* More accurately specified input and result types for strings, bytes and
  bytes-like objects.
* Unified positional parameter names for update() and constructors.
* Improved formatting.

6 years ago Revert "closes bpo-27494: Fix 2to3 handling of trailing comma after a generator...
Serhiy Storchaka [Tue, 31 Jul 2018 06:34:30 +0000 (09:34 +0300)]
 Revert "closes bpo-27494: Fix 2to3 handling of trailing comma after a generator expression (GH-3771)" (#8241)

This reverts commit af810b35b494ef1d255d4bf340b92a9dad446995.

This is not valid syntax (see bpo-32012).

6 years agobpo-1617161: Make the hash and equality of methods not depending on the value of...
Serhiy Storchaka [Tue, 31 Jul 2018 06:18:24 +0000 (09:18 +0300)]
bpo-1617161: Make the hash and equality of methods not depending on the value of self. (GH-7848)

* The hash of BuiltinMethodType instances no longer depends on the hash
  of __self__. It depends now on the hash of id(__self__).
* The hash and equality of ModuleType and MethodWrapperType instances no
  longer depend on the hash and equality of __self__. They depend now on
  the hash and equality of id(__self__).
* MethodWrapperType instances no longer support ordering.

6 years agobpo-27671: Update FAQ about why len is function (GH-8432)
INADA Naoki [Tue, 31 Jul 2018 05:49:22 +0000 (14:49 +0900)]
bpo-27671: Update FAQ about why len is function (GH-8432)

6 years agoRemove creation of a list for row_cast_map in pysqlite_cursor_init() (GH-8494)
Sergey Fedoseev [Mon, 30 Jul 2018 21:11:50 +0000 (02:11 +0500)]
Remove creation of a list for row_cast_map in pysqlite_cursor_init() (GH-8494)

This list is never used: if detect_types is on, this list will be
replaced with another one before row_cast_map is used, if
detect_types is off, row_cast_map is not used at all.

6 years agobpo-33833: Fix ProactorSocketTransport AssertionError (#7893)
twisteroid ambassador [Mon, 30 Jul 2018 18:58:50 +0000 (02:58 +0800)]
bpo-33833: Fix ProactorSocketTransport AssertionError (#7893)

6 years agoUse 'for example' instead of 'in other words' in compound statement doc (GH-8401)
Andrés Delfino [Mon, 30 Jul 2018 18:44:35 +0000 (15:44 -0300)]
Use 'for example' instead of 'in other words' in compound statement doc (GH-8401)

6 years agoFix typos & formatting in Using Python on Windows doc (GH-8559)
Segev Finer [Mon, 30 Jul 2018 17:11:30 +0000 (20:11 +0300)]
Fix typos & formatting in Using Python on Windows doc (GH-8559)

6 years agoAdd docstrings to public methods from context.c (GH-8531)
Peter Lamut [Mon, 30 Jul 2018 15:15:44 +0000 (16:15 +0100)]
Add docstrings to public methods from context.c (GH-8531)

6 years agobpo-34075: Deprecate non-ThreadPoolExecutor in loop.set_default_executor() (GH-8533)
Elvis Pranskevichus [Mon, 30 Jul 2018 10:42:43 +0000 (11:42 +0100)]
bpo-34075: Deprecate non-ThreadPoolExecutor in loop.set_default_executor() (GH-8533)

Various asyncio internals expect that the default executor is a
`ThreadPoolExecutor`, so deprecate passing anything else to
`loop.set_default_executor()`.

6 years agobpo-34182: Fix test_pydoc running as a script. (GH-8389)
Bo Bayles [Sun, 29 Jul 2018 19:15:14 +0000 (14:15 -0500)]
bpo-34182: Fix test_pydoc running as a script. (GH-8389)

6 years agobpo-34035: Fix several AttributeError in zipfile seek() methods. (GH-8527)
Mickaël Schoentgen [Sun, 29 Jul 2018 18:26:52 +0000 (20:26 +0200)]
bpo-34035: Fix several AttributeError in zipfile seek() methods. (GH-8527)

6 years agobpo-31047: Fix ntpath.abspath for invalid paths (GH-8544)
Franz Wöllert [Sun, 29 Jul 2018 12:47:09 +0000 (14:47 +0200)]
bpo-31047: Fix ntpath.abspath for invalid paths (GH-8544)

6 years agobpo-34231: PYTHONBREAKPOINT is not documented on python --help (GH-8475)
Stéphane Wirtel [Sun, 29 Jul 2018 10:27:16 +0000 (12:27 +0200)]
bpo-34231: PYTHONBREAKPOINT is not documented on python --help (GH-8475)

6 years agoUpdated MSI README to mention dependency on .NET 3.5. (GH-8375)
Vinay Sajip [Sun, 29 Jul 2018 09:05:20 +0000 (10:05 +0100)]
Updated MSI README to mention dependency on .NET 3.5. (GH-8375)

6 years agobpo-8145: Improve isolation_level documentation (GH-8499)
Berker Peksag [Sun, 29 Jul 2018 09:01:38 +0000 (12:01 +0300)]
bpo-8145: Improve isolation_level documentation (GH-8499)

Initial patch by R. David Murray.

6 years agobpo-34251: Restore msilib.Win64 to preserve compatibility (GH-8510)
Berker Peksag [Sat, 28 Jul 2018 21:02:56 +0000 (00:02 +0300)]
bpo-34251: Restore msilib.Win64 to preserve compatibility (GH-8510)

6 years agobpo-42349: Switch to test.support.unlink per review by Serhiy Storchaka (GH-8529)
Tim Golden [Sat, 28 Jul 2018 17:27:11 +0000 (18:27 +0100)]
bpo-42349: Switch to test.support.unlink per review by Serhiy Storchaka (GH-8529)

Serhiy Storchaka pointed out that using test.support.unlink was preferable

6 years agobpo-33089: Multidimensional math.hypot() (GH-8474)
Raymond Hettinger [Sat, 28 Jul 2018 14:48:04 +0000 (07:48 -0700)]
bpo-33089: Multidimensional math.hypot() (GH-8474)

6 years agobpo-24356: Specify which Python binary will be used with venv (GH-6589)
Elena Oat [Sat, 28 Jul 2018 12:58:05 +0000 (05:58 -0700)]
bpo-24356: Specify which Python binary will be used with venv (GH-6589)

6 years agobpo-33476: Fix _header_value_parser when address group is missing final ';' (GH-7484)
Dong-hee Na [Sat, 28 Jul 2018 12:55:11 +0000 (21:55 +0900)]
bpo-33476: Fix _header_value_parser when address group is missing final ';' (GH-7484)

6 years agobpo-33666: Add what's new entry for os.errno removal (GH-#8497)
INADA Naoki [Sat, 28 Jul 2018 12:47:31 +0000 (21:47 +0900)]
bpo-33666: Add what's new entry for os.errno removal (GH-#8497)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
6 years agobpo-33921: Clarify how to bind to all interfaces using socket (GH-7877)
johnthagen [Sat, 28 Jul 2018 10:03:23 +0000 (06:03 -0400)]
bpo-33921: Clarify how to bind to all interfaces using socket (GH-7877)

Clarify how to bind to all interfaces using socket

6 years agobpo-5978: Document that profiling needs cmd/function to return (GH-7938)
Andrés Delfino [Sat, 28 Jul 2018 10:01:24 +0000 (07:01 -0300)]
bpo-5978: Document that profiling needs cmd/function to return (GH-7938)

<!-- issue-number: bpo-5978 -->
https://bugs.python.org/issue5978
<!-- /issue-number -->

6 years agobpo-29710: Clarify documentation for Bitwise binary operation (GH-1691)
Sanyam Khurana [Sat, 28 Jul 2018 05:15:50 +0000 (10:45 +0530)]
bpo-29710: Clarify documentation for Bitwise binary operation (GH-1691)

Mathematically, bitwise operations on integers behave as if there were an
infinite number of sign bits. Pragmatically, that gives the same answer as
using one extra sign bit for the bitwise logical operations.

6 years agobpo-30722: Fix NEWS entries (GH-8501)
Berker Peksag [Fri, 27 Jul 2018 15:49:58 +0000 (18:49 +0300)]
bpo-30722: Fix NEWS entries (GH-8501)

6 years agoRemove some unused code in _pysqlite_query_execute() (GH-8495)
Sergey Fedoseev [Fri, 27 Jul 2018 10:06:03 +0000 (15:06 +0500)]
Remove some unused code in _pysqlite_query_execute() (GH-8495)

Unused since commit ab994ed8b97e1b0dac151ec827c857f5e7277565.

6 years agovsts: Avoid conflict with Homebrew Python (GH-8430)
INADA Naoki [Fri, 27 Jul 2018 07:52:24 +0000 (16:52 +0900)]
vsts: Avoid conflict with Homebrew Python (GH-8430)

/usr/local/lib/pythonX.Y is used by Homebrew's Python already.

6 years agobpo-12743: Delete comment from marshal.rst (GH-8457)
Berker Peksag [Fri, 27 Jul 2018 04:35:11 +0000 (07:35 +0300)]
bpo-12743: Delete comment from marshal.rst (GH-8457)

Also, update the list of exceptions that may raised by PyMarshal_*
functions. We usually don't document exceptions raised by a
function, but in this case most of them were already documented
in C API and standard library documentation.

6 years agobpo-34239: Convert test_bz2 to use tempfile (#8485)
Tim Golden [Thu, 26 Jul 2018 21:05:00 +0000 (22:05 +0100)]
bpo-34239: Convert test_bz2 to use tempfile (#8485)

* bpo-34239: Convert test_bz2 to use tempfile

test_bz2 currently uses the test.support.TESTFN functionality which creates a temporary file local to the test directory named around the pid.

This can give rise to race conditions where tests are competing with each other to delete and recreate the file.

This change converts the tests to use tempfile.mkstemp which gives a different file every time from the system's temp area

6 years agobpo-34170, test_embed: write Py_Initialize() tests (GH-8484)
Victor Stinner [Thu, 26 Jul 2018 16:57:56 +0000 (18:57 +0200)]
bpo-34170, test_embed: write Py_Initialize() tests (GH-8484)

6 years agoFix typo: variables(s) (GH-8482)
Andrés Delfino [Thu, 26 Jul 2018 15:35:23 +0000 (12:35 -0300)]
Fix typo: variables(s) (GH-8482)

Remove extra `(s)` in the documentation of `compound_stmts`.

6 years agobpo-34201: Tweak test_buffer. (GH-8481)
Serhiy Storchaka [Thu, 26 Jul 2018 14:34:07 +0000 (17:34 +0300)]
bpo-34201: Tweak test_buffer. (GH-8481)

6 years agobpo-34170: Cleanup pymain_read_conf() (GH-8476)
Victor Stinner [Thu, 26 Jul 2018 14:04:56 +0000 (16:04 +0200)]
bpo-34170: Cleanup pymain_read_conf() (GH-8476)

* Config: Rename ignore_environment field to use_environment.
* _PyCoreConfig_Read(): if isolated is set, use_environment and
  site_import are now always set to 0.
* Inline pymain_free_raw() into pymain_free()
* Move config_init_warnoptions() call into pymain_read_conf_impl()
* _PyCoreConfig_Read(): don't replace values if they are already set:
  faulthandler, pycache_prefix, home.

6 years agobpo-34225: Ensure INCLUDE and LIB directories do not end with a backslash. (GH-8464)
Steve Dower [Thu, 26 Jul 2018 11:23:10 +0000 (04:23 -0700)]
bpo-34225: Ensure INCLUDE and LIB directories do not end with a backslash. (GH-8464)

6 years agobpo-34201: Make ndarray.readonly a bool and use stricter tests in test_buffer. (GH...
Serhiy Storchaka [Thu, 26 Jul 2018 10:23:03 +0000 (13:23 +0300)]
bpo-34201: Make ndarray.readonly a bool and use stricter tests in test_buffer. (GH-8414)

6 years agobpo-20260: Implement non-bitwise unsigned int converters for Argument Clinic. (GH...
Serhiy Storchaka [Thu, 26 Jul 2018 10:22:16 +0000 (13:22 +0300)]
bpo-20260: Implement non-bitwise unsigned int converters for Argument Clinic. (GH-8434)

6 years agobpo-34197: Make _csv.Dialect attributes booleans. (GH-8440)
Serhiy Storchaka [Thu, 26 Jul 2018 10:21:09 +0000 (13:21 +0300)]
bpo-34197: Make _csv.Dialect attributes booleans. (GH-8440)

Attributes skipinitialspace, doublequote and strict are now
booleans instead of integers 0 or 1.

6 years agobpo-34170: Enhance _PyCoreConfig_Read() (GH-8468)
Victor Stinner [Thu, 26 Jul 2018 00:37:22 +0000 (02:37 +0200)]
bpo-34170: Enhance _PyCoreConfig_Read() (GH-8468)

* Inline cmdline_get_env_flags() into config_read_env_vars():
  _PyCoreConfig_Read() now reads much more environment variables like
  PYTHONVERBOSE.
* Allow to override faulthandler and allocator even if dev_mode=1.
  PYTHONMALLOC is now the priority over PYTHONDEVMODE.
* Fix _PyCoreConfig_Copy(): copy also install_signal_handlers,
  coerce_c_locale and coerce_c_locale_warn
* _PyCoreConfig.install_signal_handlers default is now 1: install
  signals by default
* Fix also a compiler warning: don't define _PyPathConfig type twice.