]> granicus.if.org Git - python/log
python
6 years agobpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446)
Berker Peksag [Thu, 20 Sep 2018 15:08:57 +0000 (18:08 +0300)]
bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446)

6 years agobpo-34743: Fix test_database_source_name under SQLite 3.7.9 (GH-9426)
Berker Peksag [Thu, 20 Sep 2018 11:14:33 +0000 (14:14 +0300)]
bpo-34743: Fix test_database_source_name under SQLite 3.7.9 (GH-9426)

6 years agobpo-32215: Fix performance regression in sqlite3 (GH-8511)
Berker Peksag [Thu, 20 Sep 2018 11:10:49 +0000 (14:10 +0300)]
bpo-32215: Fix performance regression in sqlite3 (GH-8511)

6 years agobpo-34746: Fix stop -> close (GH-9437)
Yury Selivanov [Thu, 20 Sep 2018 05:17:09 +0000 (01:17 -0400)]
bpo-34746: Fix stop -> close (GH-9437)

6 years agoEnables test result collection for CI builds (GH-9433)
Steve Dower [Wed, 19 Sep 2018 23:25:25 +0000 (16:25 -0700)]
Enables test result collection for CI builds (GH-9433)

6 years agoRevert "bpo-34589: Add -X coerce_c_locale command line option (GH-9378)" (GH-9430)
Victor Stinner [Wed, 19 Sep 2018 21:56:36 +0000 (14:56 -0700)]
Revert "bpo-34589: Add -X coerce_c_locale command line option (GH-9378)" (GH-9430)

* Revert "bpo-34589: Add -X coerce_c_locale command line option (GH-9378)"

This reverts commit dbdee0073cf0b88fe541980ace1f650900f455cc.

* Revert "bpo-34589: C locale coercion off by default (GH-9073)"

This reverts commit 7a0791b6992d420dc52536257f2f093851ed7215.

* Revert "bpo-34589: Make _PyCoreConfig.coerce_c_locale private (GH-9371)"

This reverts commit 188ebfa475a6f6aa2d0ea14ca8e1fbe7865b6d27.

6 years agoIgnores failure to update lists (GH-9424)
Steve Dower [Wed, 19 Sep 2018 20:23:25 +0000 (13:23 -0700)]
Ignores failure to update lists (GH-9424)

6 years agobpo-25711: Remove outdated zipimport tests. (GH-9404)
Serhiy Storchaka [Wed, 19 Sep 2018 14:43:33 +0000 (17:43 +0300)]
bpo-25711: Remove outdated zipimport tests. (GH-9404)

They were specific to the C implementation.

6 years agobpo-34712: Fix style in examples in "Input and Output" (GH-9361)
Ben Hoyt [Wed, 19 Sep 2018 10:28:28 +0000 (06:28 -0400)]
bpo-34712: Fix style in examples in "Input and Output" (GH-9361)

A couple of fixes here to make this more PEP-8:

* Avoid multiple statements on one line with `;` statement separator -- this is very rare in Python and is "generally discouraged" in PEP 8 (and if used, per PEP 8 there shouldn't be a space before the `;`)
* Add output for the first "Formatted String Literals" example. (Side note: are the doctests for this being run? If so, why didn't it fail?)
* Avoid space before `!r`. I have generally not seen spaces before the `!`, and this also matches the style used in the docs here: https://docs.python.org/3/library/string.html#format-string-syntax

https://bugs.python.org/issue34712

6 years agobpo-34125: Enable profiling of method_descriptor in all cases (GH-8416)
jdemeyer [Wed, 19 Sep 2018 10:06:20 +0000 (12:06 +0200)]
bpo-34125: Enable profiling of method_descriptor in all cases (GH-8416)

`list.append([], None)` was profiled but `list.append([], None, **{})` was not profiled.
Enable profiling for later case.

https://bugs.python.org/issue34125

6 years agorun autoconf (GH-9411)
Benjamin Peterson [Wed, 19 Sep 2018 06:49:05 +0000 (23:49 -0700)]
run autoconf (GH-9411)

Follow up to 2a9c3805ddedf282881ef7811a561c70b74f80b1 (bpo-34585).

6 years agobpo-25711: Move _ZipImportResourceReader from importlib to zipimport. (GH-9406)
Serhiy Storchaka [Wed, 19 Sep 2018 06:28:06 +0000 (09:28 +0300)]
bpo-25711: Move _ZipImportResourceReader from importlib to zipimport. (GH-9406)

6 years agocloses bpo-34585: Don't do runtime test to get float byte order. (GH-9085)
Ross Burton [Wed, 19 Sep 2018 06:25:48 +0000 (07:25 +0100)]
closes bpo-34585: Don't do runtime test to get float byte order. (GH-9085)

Currently configure.ac uses AC_RUN_IFELSE to determine the byte order of doubles, but this silently fails under cross compilation and Python doesn't do floats properly.

Instead, steal a macro from autoconf-archive which compiles code using magic doubles (which encode to ASCII) and grep for the representation in the binary.

RFC because this doesn't yet handle the weird ancient ARMv4 OABI 'mixed-endian' encoding properly. This encoding is ancient and I don't believe the union of "Python 3.8 users" and "OABI users" has anything in. Should the support for this just be dropped too? Alternatively, someone will need to find an OABI toolchain to verify the encoding of the magic double.

6 years agobpo-33649: Add a high-level section about Futures; few quick fixes (GH-9403)
Yury Selivanov [Tue, 18 Sep 2018 21:55:44 +0000 (17:55 -0400)]
bpo-33649: Add a high-level section about Futures; few quick fixes (GH-9403)

Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
6 years agoClarify that AsyncExitStack works with coroutine functions (GH-9405)
Nathaniel J. Smith [Tue, 18 Sep 2018 21:27:59 +0000 (14:27 -0700)]
Clarify that AsyncExitStack works with coroutine functions (GH-9405)

The docs were ambiguous about whether you pass in a coroutine function
or a coroutine object, e.g. is it:

  aestack.push_async_exit(some_async_func)

or

  aestack.push_async_exit(some_async_func())

(It's the first one.)

6 years agobpo-25711: Rewrite zipimport in pure Python. (GH-6809)
Serhiy Storchaka [Tue, 18 Sep 2018 19:22:29 +0000 (22:22 +0300)]
bpo-25711: Rewrite zipimport in pure Python. (GH-6809)

6 years agobpo-34472: Add data descriptor signature to zipfile (GH-8871)
Silas Sewell [Tue, 18 Sep 2018 17:00:05 +0000 (13:00 -0400)]
bpo-34472: Add data descriptor signature to zipfile (GH-8871)

This makes streamed zips compatible with MacOS Archive Utility and
other applications.

6 years agobpo-34582: Adds JUnit XML output for regression tests (GH-9210)
Steve Dower [Tue, 18 Sep 2018 16:10:26 +0000 (09:10 -0700)]
bpo-34582: Adds JUnit XML output for regression tests (GH-9210)

6 years agobpo-34623: Use XML_SetHashSalt in _elementtree (GH-9146)
Christian Heimes [Tue, 18 Sep 2018 12:38:58 +0000 (14:38 +0200)]
bpo-34623: Use XML_SetHashSalt in _elementtree (GH-9146)

The C accelerated _elementtree module now initializes hash randomization
salt from _Py_HashSecret instead of libexpat's default CPRNG.

Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue34623

6 years ago bpo-33721: Make some os.path functions and pathlib.Path methods be tolerant to inval...
Serhiy Storchaka [Tue, 18 Sep 2018 08:28:51 +0000 (11:28 +0300)]
 bpo-33721: Make some os.path functions and pathlib.Path methods be tolerant to invalid paths.  (#7695)

Such functions as os.path.exists(), os.path.lexists(), os.path.isdir(),
os.path.isfile(), os.path.islink(), and os.path.ismount() now return False
instead of raising ValueError or its subclasses UnicodeEncodeError
and UnicodeDecodeError for paths that contain characters or bytes
unrepresentative at the OS level.

6 years agobpo-32455: Add jump parameter to dis.stack_effect(). (GH-6610)
Serhiy Storchaka [Tue, 18 Sep 2018 06:54:26 +0000 (09:54 +0300)]
bpo-32455: Add jump parameter to dis.stack_effect(). (GH-6610)

Add C API function PyCompile_OpcodeStackEffectWithJump().

6 years agobpo-33649: Fix markup; add another note that asyncio.run is 3.7+ (GH-9389)
Yury Selivanov [Tue, 18 Sep 2018 06:47:54 +0000 (02:47 -0400)]
bpo-33649: Fix markup; add another note that asyncio.run is 3.7+ (GH-9389)

6 years agobpo-34681: Rename class Pattern in sre_parse to State. (GH-9310)
Serhiy Storchaka [Tue, 18 Sep 2018 06:16:26 +0000 (09:16 +0300)]
bpo-34681: Rename class Pattern in sre_parse to State. (GH-9310)

Also rename corresponding attributes, parameters and variables.

6 years agoFix syntax error on Asyncio example in doc (GH-9387)
Miguel Ángel García [Tue, 18 Sep 2018 06:01:26 +0000 (08:01 +0200)]
Fix syntax error on Asyncio example in doc (GH-9387)

The `gather` method requires to close the parenthesis, but it is being closed twice.

6 years agoChange "set_after" reference to `say_after`. (GH-9384)
Danny Hermes [Tue, 18 Sep 2018 04:49:21 +0000 (21:49 -0700)]
Change "set_after" reference to `say_after`. (GH-9384)

6 years agobpo-33649: Note that asyncio.run() calls shutdown_asyncgens() (GH-9380)
Yury Selivanov [Tue, 18 Sep 2018 03:58:00 +0000 (23:58 -0400)]
bpo-33649: Note that asyncio.run() calls shutdown_asyncgens() (GH-9380)

6 years agobpo-34589: Add -X coerce_c_locale command line option (GH-9378)
Victor Stinner [Tue, 18 Sep 2018 00:19:26 +0000 (17:19 -0700)]
bpo-34589: Add -X coerce_c_locale command line option (GH-9378)

Add a new -X coerce_c_locale command line option to control C locale
coercion (PEP 538).

6 years agobpo-34589: C locale coercion off by default (GH-9073)
Victor Stinner [Mon, 17 Sep 2018 23:22:29 +0000 (16:22 -0700)]
bpo-34589: C locale coercion off by default (GH-9073)

Py_Initialize() and Py_Main() cannot enable the C locale coercion
(PEP 538) anymore: it is always disabled. It can now only be enabled
by the Python program ("python3).

test_embed: get_filesystem_encoding() doesn't have to set PYTHONUTF8
nor PYTHONCOERCECLOCALE, these variables are already set in the
parent.

6 years agobpo-33649: A copy-editing pass on asyncio documentation (GH-9376)
Elvis Pranskevichus [Mon, 17 Sep 2018 23:16:44 +0000 (19:16 -0400)]
bpo-33649: A copy-editing pass on asyncio documentation (GH-9376)

6 years agobpo-33649: Add a hello world example to asyncio.rst (GH-9374)
Yury Selivanov [Mon, 17 Sep 2018 22:41:59 +0000 (18:41 -0400)]
bpo-33649: Add a hello world example to asyncio.rst (GH-9374)

6 years agobpo-34589: Make _PyCoreConfig.coerce_c_locale private (GH-9371)
Victor Stinner [Mon, 17 Sep 2018 22:13:17 +0000 (15:13 -0700)]
bpo-34589: Make _PyCoreConfig.coerce_c_locale private (GH-9371)

_PyCoreConfig:

* Rename coerce_c_locale to _coerce_c_locale
* Rename coerce_c_locale_warn to _coerce_c_locale_warn

These fields are now private (name prefixed by "_").

6 years agobpo-34717: Stop numbering stdlib titles/sections in the docs (GH-9370)
Yury Selivanov [Mon, 17 Sep 2018 22:12:21 +0000 (18:12 -0400)]
bpo-34717: Stop numbering stdlib titles/sections in the docs (GH-9370)

6 years agobpo-34267: Update find_python.bat to use 3.7 if available (GH-8552)
Steve Dower [Mon, 17 Sep 2018 21:41:53 +0000 (14:41 -0700)]
bpo-34267: Update find_python.bat to use 3.7 if available (GH-8552)

6 years agobpo-34587, test_socket: remove RDSTest.testCongestion() (GH-9277)
Victor Stinner [Mon, 17 Sep 2018 21:01:20 +0000 (14:01 -0700)]
bpo-34587, test_socket: remove RDSTest.testCongestion() (GH-9277)

The test tries to fill the receiver's socket buffer and expects an
error. But the RDS protocol doesn't require that. Moreover, the Linux
implementation of RDS expects that the producer of the messages
reduces its rate, it's not the role of the receiver to trigger an
error.

The test fails on Fedora 28 by design, so remove it.

6 years agobpo-34715: Revert "Simplify PyInit_timezone. (GH-9323)" (GH-9366)
Victor Stinner [Mon, 17 Sep 2018 20:56:17 +0000 (13:56 -0700)]
bpo-34715: Revert "Simplify PyInit_timezone. (GH-9323)" (GH-9366)

This reverts commit afde1c1a05cc8a1e8adf6403c451f6708509a605.

6 years agobpo-33649: Add low-level APIs index. (GH-9364)
Yury Selivanov [Mon, 17 Sep 2018 19:35:24 +0000 (15:35 -0400)]
bpo-33649: Add low-level APIs index. (GH-9364)

6 years agobpo-32533: Fixed thread-safety of error handling in _ssl. (GH-7158)
Steve Dower [Mon, 17 Sep 2018 18:34:47 +0000 (11:34 -0700)]
bpo-32533: Fixed thread-safety of error handling in _ssl. (GH-7158)

6 years agoConvert os.readlink() to Argument Clinic. (GH-8778)
Serhiy Storchaka [Mon, 17 Sep 2018 12:38:27 +0000 (15:38 +0300)]
Convert os.readlink() to Argument Clinic. (GH-8778)

Also convert os.get_blocking() and os.set_blocking().

6 years agobpo-34341: Fix appending to ZIP archives with the ZIP64 extension. (GH-8683)
Serhiy Storchaka [Mon, 17 Sep 2018 12:36:40 +0000 (15:36 +0300)]
bpo-34341: Fix appending to ZIP archives with the ZIP64 extension. (GH-8683)

6 years agobpo-12458: Fix line numbers for multiline expressions. (GH-8774)
Serhiy Storchaka [Mon, 17 Sep 2018 12:17:29 +0000 (15:17 +0300)]
bpo-12458: Fix line numbers for multiline expressions. (GH-8774)

6 years agobpo-33216: Improve the documentation for CALL_FUNCTION_* (GH-8338) (GH-8784)
Serhiy Storchaka [Mon, 17 Sep 2018 12:15:03 +0000 (15:15 +0300)]
bpo-33216: Improve the documentation for CALL_FUNCTION_* (GH-8338) (GH-8784)

6 years agobpo-34710: fix SSL module build (GH-9347)
Alexandru Ardelean [Mon, 17 Sep 2018 11:53:31 +0000 (14:53 +0300)]
bpo-34710: fix SSL module build (GH-9347)

Include ``openssl/dh.h`` header file to fix implicit function declaration of ``DH_free()``.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
6 years agobpo-34610: Fixed iterator of multiprocessing.managers.DictProxy. (GH-9113)
Serhiy Storchaka [Mon, 17 Sep 2018 11:24:01 +0000 (14:24 +0300)]
bpo-34610: Fixed iterator of multiprocessing.managers.DictProxy. (GH-9113)

6 years agocloses bpo-34673: Tweaks to make ceval more editable. (GH-9289)
Benjamin Peterson [Mon, 17 Sep 2018 05:38:02 +0000 (22:38 -0700)]
closes bpo-34673: Tweaks to make ceval more editable. (GH-9289)

Two major changes:
- Move case statements out of the TARGET macro.
- Move PREDICT macro invocations after the case label.

6 years agobpo-33649: Clarify protocol_factory as a method parameter (GH-9330)
Bumsik Kim [Sun, 16 Sep 2018 23:40:44 +0000 (19:40 -0400)]
bpo-33649: Clarify protocol_factory as a method parameter (GH-9330)

6 years agobpo-34603, ctypes/libffi_msvc: Fix returning structs from functions (GH-9258)
Vladimir Matveev [Sun, 16 Sep 2018 05:36:29 +0000 (22:36 -0700)]
bpo-34603, ctypes/libffi_msvc: Fix returning structs from functions (GH-9258)

6 years agocloses bpo-34515: Support non-ASCII identifiers in lib2to3. (GH-8950)
Monson Shao [Sat, 15 Sep 2018 17:32:29 +0000 (01:32 +0800)]
closes bpo-34515: Support non-ASCII identifiers in lib2to3. (GH-8950)

6 years agobpo-34579: Fix test_embed DEFAULT_CON AIX (GH-9063)
Michael Felt [Sat, 15 Sep 2018 09:28:31 +0000 (11:28 +0200)]
bpo-34579: Fix test_embed DEFAULT_CON AIX (GH-9063)

* Modify DEFAULT_CONFIG for AIX

* bedevere/news did not like old name

* Modify NEWS entry

* Modified per peer review

* Define and use NULL_STR constant to account for AIX libc behavior

* Modify per peer review

* Modify NEWS

6 years agoAdd myself for HTML-related modules (#9325)
Ezio Melotti [Sat, 15 Sep 2018 03:14:16 +0000 (20:14 -0700)]
Add myself for HTML-related modules (#9325)

6 years agobpo-33649: Fix asyncio-dev (GH-9324)
Yury Selivanov [Fri, 14 Sep 2018 23:57:11 +0000 (16:57 -0700)]
bpo-33649: Fix asyncio-dev (GH-9324)

6 years agoSimplify PyInit_timezone. (GH-9323)
Benjamin Peterson [Fri, 14 Sep 2018 23:21:32 +0000 (16:21 -0700)]
Simplify PyInit_timezone. (GH-9323)

Assume tzname exists. Only use a hack to compute altzone if it's not defined.

6 years agobpo-33486: regen autotools files using autoupdate+autoreconf (GH-6853)
Eitan Adler [Fri, 14 Sep 2018 22:55:20 +0000 (15:55 -0700)]
bpo-33486: regen autotools files using autoupdate+autoreconf (GH-6853)

6 years agobpo-34685: Skip posix_spawn scheduler tests on BSD (GH-9316)
Pablo Galindo [Fri, 14 Sep 2018 22:12:22 +0000 (15:12 -0700)]
bpo-34685: Skip posix_spawn scheduler tests on BSD (GH-9316)

* Skip posix_spawn scheduler tests on BSD. We were already skyping similar tests as the behaviour can depend on the implementation in some cases.

6 years agobpo-33649: Add high-level APIs cheat-sheet (GH-9319)
Yury Selivanov [Fri, 14 Sep 2018 22:11:24 +0000 (15:11 -0700)]
bpo-33649: Add high-level APIs cheat-sheet (GH-9319)

6 years agobpo-33649: Refresh asyncio docs landing page (GH-9322)
Yury Selivanov [Fri, 14 Sep 2018 21:57:39 +0000 (14:57 -0700)]
bpo-33649: Refresh asyncio docs landing page (GH-9322)

6 years agoGrammar fix (GH-9318)
Grant [Fri, 14 Sep 2018 21:37:48 +0000 (14:37 -0700)]
Grammar fix (GH-9318)

6 years agobpo-34651: Only allow the main interpreter to fork. (gh-9279)
Eric Snow [Fri, 14 Sep 2018 21:17:20 +0000 (14:17 -0700)]
bpo-34651: Only allow the main interpreter to fork. (gh-9279)

When os.fork() is called (on platforms that support it) all threads but the current one are destroyed in the child process. Consequently we must ensure that all but the associated interpreter are likewise destroyed. The main interpreter is critical for runtime operation, so we must ensure that fork only happens in the main interpreter.

https://bugs.python.org/issue34651

6 years agobpo-33649: Refresh Tasks and Futures pages (#9314)
Yury Selivanov [Fri, 14 Sep 2018 20:32:07 +0000 (13:32 -0700)]
bpo-33649: Refresh Tasks and Futures pages (#9314)

* bpo-33649: Refresh Tasks and Futures pages

* Fixes

* Fix markup

6 years agocloses bpo-28955: Clarified comparisons between NaN and number in reference documenta...
Tony Flury [Fri, 14 Sep 2018 17:48:50 +0000 (18:48 +0100)]
closes bpo-28955: Clarified comparisons between NaN and number in reference documentation (GH-5982)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
6 years agobpo-34672: Don't pass NULL to gmtime_r. (GH-9312)
Benjamin Peterson [Fri, 14 Sep 2018 17:39:13 +0000 (10:39 -0700)]
bpo-34672: Don't pass NULL to gmtime_r. (GH-9312)

6 years agoFix "Python" casing in a few places (GH-9001)
Andrés Delfino [Fri, 14 Sep 2018 17:13:09 +0000 (14:13 -0300)]
Fix "Python" casing in a few places (GH-9001)

6 years agobpo-33649 Polish asyncio docs on queues, protocols, and subproccesses (#9306)
Carol Willing [Fri, 14 Sep 2018 17:06:55 +0000 (10:06 -0700)]
bpo-33649 Polish asyncio docs on queues, protocols, and subproccesses (#9306)

* small clarification

* edits to protocols doc

* Edit async queue doc

6 years agobpo-34672: Try to pass the C library's own timezone strings back to it. (GH-9288)
Benjamin Peterson [Fri, 14 Sep 2018 16:09:04 +0000 (09:09 -0700)]
bpo-34672: Try to pass the C library's own timezone strings back to it. (GH-9288)

6 years agoDon't run AC_STRUCT_TIMEZONE twice. (GH-9305)
Benjamin Peterson [Fri, 14 Sep 2018 15:58:57 +0000 (08:58 -0700)]
Don't run AC_STRUCT_TIMEZONE twice. (GH-9305)

6 years agobpo-34363: dataclasses.asdict() and .astuple() now handle fields which are namedtuple...
Eric V. Smith [Fri, 14 Sep 2018 15:32:16 +0000 (11:32 -0400)]
bpo-34363: dataclasses.asdict() and .astuple() now handle fields which are namedtuples. (GH-9151)

6 years agoFix compiler warning with a type cast (GH-9300)
Raymond Hettinger [Fri, 14 Sep 2018 08:35:59 +0000 (01:35 -0700)]
Fix compiler warning with a type cast (GH-9300)

6 years agoFix-up parenthesis, organization, and NULL check (GH-9297)
Raymond Hettinger [Fri, 14 Sep 2018 08:00:11 +0000 (01:00 -0700)]
Fix-up parenthesis, organization, and NULL check (GH-9297)

6 years agoNote that distinct argument patterns can be cached separately (GH-9298)
Raymond Hettinger [Fri, 14 Sep 2018 07:53:20 +0000 (00:53 -0700)]
Note that distinct argument patterns can be cached separately (GH-9298)

6 years agobpo-33073: Adding as_integer_ratio to ints. (GH-8750)
Lisa Roach [Fri, 14 Sep 2018 06:56:23 +0000 (23:56 -0700)]
bpo-33073: Adding as_integer_ratio to ints. (GH-8750)

6 years agoChange the xkcd link in comment over https. (GH-5452)
[Fri, 14 Sep 2018 05:45:00 +0000 (13:45 +0800)]
Change the xkcd link in comment over https. (GH-5452)

6 years agobpo-6721: Hold logging locks across fork() (GH-4071)
Gregory P. Smith [Fri, 14 Sep 2018 05:08:31 +0000 (22:08 -0700)]
bpo-6721: Hold logging locks across fork() (GH-4071)

bpo-6721: When os.fork() was called while another thread holds a logging lock, the child process may deadlock when it tries to log.  This fixes that by acquiring all logging locks before fork and releasing them afterwards.

A regression test that fails before this change is included.

Within the new unittest itself: There is a small _potential_ due to mixing of fork and a thread in the child process if the parent's thread happened to hold a non-reentrant library call lock (malloc?) when the os.fork() happens.  buildbots and time will tell if this actually manifests itself in this test or not.  :/  A functionality test that avoids that would be a challenge.

An alternate test that isn't trying to produce the deadlock itself but just checking that the release and acquire calls are made would be the next best alternative if so.

6 years agobpo-34674: Assume unistd.h exists on Unix. (GH-9290)
Benjamin Peterson [Fri, 14 Sep 2018 04:57:31 +0000 (21:57 -0700)]
bpo-34674: Assume unistd.h exists on Unix. (GH-9290)

6 years agobpo-34552: Clarify built-in types comparisons (GH-9035)
Windson yang [Fri, 14 Sep 2018 04:50:18 +0000 (12:50 +0800)]
bpo-34552: Clarify built-in types comparisons (GH-9035)

Some updates to ancient text about comparisons; fixes bp-34552.

6 years agoRemove wording that could be deemed to be perjorative (GH-9287)
Raymond Hettinger [Fri, 14 Sep 2018 04:17:40 +0000 (21:17 -0700)]
Remove wording that could be deemed to be perjorative (GH-9287)

6 years agobpo-33649: Polish asyncio subprocess and sync docs (GH-9285)
Carol Willing [Fri, 14 Sep 2018 01:28:19 +0000 (18:28 -0700)]
bpo-33649: Polish asyncio subprocess and sync docs (GH-9285)

Second pass for asyncio subprocess and sync docs.

https://bugs.python.org/issue33649

6 years agobpo-34666: Implement stream.awrite() and stream.aclose() (GH-9274)
Andrew Svetlov [Thu, 13 Sep 2018 23:53:49 +0000 (16:53 -0700)]
bpo-34666: Implement stream.awrite() and stream.aclose() (GH-9274)

6 years agoFix test_asyncio for AIX - do not call transport.get_extra_info('sockname') (#8907)
Michael Felt [Thu, 13 Sep 2018 23:35:56 +0000 (01:35 +0200)]
Fix test_asyncio for AIX - do not call transport.get_extra_info('sockname') (#8907)

6 years agopolish exceptions and platforms (GH-9272)
Carol Willing [Thu, 13 Sep 2018 23:14:41 +0000 (16:14 -0700)]
polish exceptions and platforms (GH-9272)

6 years agobpo-31132: Remove prlimit permission test. (GH-9280)
Benjamin Peterson [Thu, 13 Sep 2018 21:53:09 +0000 (14:53 -0700)]
bpo-31132: Remove prlimit permission test. (GH-9280)

This test is doesn't work when the test process is privledged, which is hard to detect.

https://bugs.python.org/issue34668

6 years agocloses bpo-34664: Only check file permission bits of newly created directories. ...
Benjamin Peterson [Thu, 13 Sep 2018 19:00:14 +0000 (12:00 -0700)]
closes bpo-34664: Only check file permission bits of newly created directories. (GH-9273)

6 years agobpo-34247: add porting note to 3.7 What's New (GH-9223)
Ned Deily [Thu, 13 Sep 2018 18:49:47 +0000 (11:49 -0700)]
bpo-34247: add porting note to 3.7 What's New (GH-9223)

6 years agobpo-34661: Fix test skipping call. (GH-9266)
Benjamin Peterson [Thu, 13 Sep 2018 17:57:23 +0000 (10:57 -0700)]
bpo-34661: Fix test skipping call. (GH-9266)

6 years agocloses bpo-34661: Fix test_shutil if unzip doesn't support -t. (GH-9262)
Benjamin Peterson [Thu, 13 Sep 2018 17:08:46 +0000 (10:08 -0700)]
closes bpo-34661: Fix test_shutil if unzip doesn't support -t. (GH-9262)

6 years agobpo-34653: Removed unused function PyParser_SimpleParseStringFilename. (GH-9260)
Eric V. Smith [Thu, 13 Sep 2018 16:34:55 +0000 (12:34 -0400)]
bpo-34653: Removed unused function PyParser_SimpleParseStringFilename. (GH-9260)

This function was not in any .h file and was not used by Python, so removing it is safe.

https://bugs.python.org/issue34653

6 years agobpo-34658: Fix rare subprocess prexec_fn fork error. (GH-9255)
Gregory P. Smith [Thu, 13 Sep 2018 11:30:10 +0000 (04:30 -0700)]
bpo-34658: Fix rare subprocess prexec_fn fork error. (GH-9255)

[bpo-34658](https://www.bugs.python.org/issue34658): Fix a rare interpreter unhandled exception state SystemError only
seen when using subprocess with a preexec_fn while an after_parent handler has
been registered with os.register_at_fork and the fork system call fails.

https://bugs.python.org/issue34658

6 years agoPolish doc as part of asyncio doc improvement (GH-9185)
Carol Willing [Thu, 13 Sep 2018 05:40:37 +0000 (22:40 -0700)]
Polish doc as part of asyncio doc improvement (GH-9185)

6 years agobpo-34200: Fix non-determinism of test_pkg (GH-9248)
Gregory P. Smith [Thu, 13 Sep 2018 00:58:40 +0000 (17:58 -0700)]
bpo-34200: Fix non-determinism of test_pkg (GH-9248)

This causes the tearDown code to only unimport the test modules specifically created as part of each test via the self.mkhier method rather than abusing test.support.modules_setup() and the scary test.support.modules_cleanup() code.

https://bugs.python.org/issue34200

6 years agobpo-34652: Remove lchmod from the big func checking block. (GH-9247)
Benjamin Peterson [Thu, 13 Sep 2018 00:22:11 +0000 (17:22 -0700)]
bpo-34652: Remove lchmod from the big func checking block. (GH-9247)

A fix for 883702ebb8bbfa749ef0040d1b58d6222bf589ee.

6 years agocloses bpo-34641: Further restrict the LHS of keyword argument function call syntax...
Benjamin Peterson [Thu, 13 Sep 2018 00:14:39 +0000 (17:14 -0700)]
closes bpo-34641: Further restrict the LHS of keyword argument function call syntax. (GH-9212)

6 years agoedit async policy doc - second pass (GH-9235)
Carol Willing [Thu, 13 Sep 2018 00:09:08 +0000 (17:09 -0700)]
edit async policy doc - second pass (GH-9235)

6 years agobpo-33649: Edit asyncio eventloop doc - second pass (GH-9233)
Carol Willing [Thu, 13 Sep 2018 00:05:17 +0000 (17:05 -0700)]
bpo-33649: Edit asyncio eventloop doc - second pass (GH-9233)

6 years agocloses bpo-34654: Tolerate + at the beginning of large years. (GH-9238)
Benjamin Peterson [Wed, 12 Sep 2018 23:21:36 +0000 (16:21 -0700)]
closes bpo-34654: Tolerate + at the beginning of large years. (GH-9238)

6 years agocloses bpo-34652: Always disable lchmod on Linux. (GH-9234)
Benjamin Peterson [Wed, 12 Sep 2018 22:52:40 +0000 (15:52 -0700)]
closes bpo-34652: Always disable lchmod on Linux. (GH-9234)

6 years agobpo-32933: Implement __iter__ method on mock_open() (GH-5974)
Tony Flury [Wed, 12 Sep 2018 22:21:16 +0000 (23:21 +0100)]
bpo-32933: Implement __iter__ method on mock_open() (GH-5974)

6 years agocloses bpo-34650: Check if sched_getscheduler returns ENOSYS before declaring it...
Benjamin Peterson [Wed, 12 Sep 2018 22:12:24 +0000 (15:12 -0700)]
closes bpo-34650: Check if sched_getscheduler returns ENOSYS before declaring it supported. (GH-9228)

musl doesn't support the scheduler API, but declares stubs that alway return ENOSYS.

6 years agobpo-34649: Add missing NULL checks to _encoded_const() (GH-9225)
Alexey Izbyshev [Wed, 12 Sep 2018 21:05:20 +0000 (00:05 +0300)]
bpo-34649: Add missing NULL checks to _encoded_const() (GH-9225)

Reported by Svace static analyzer.

6 years agobpo-34630: Skip logging SSL certificate errors by asyncio code (GH-9169)
Andrew Svetlov [Wed, 12 Sep 2018 21:03:54 +0000 (14:03 -0700)]
bpo-34630: Skip logging SSL certificate errors by asyncio code (GH-9169)

6 years agocloses bpo-34004: Skip lock interruption tests on musl. (GH-9224)
Benjamin Peterson [Wed, 12 Sep 2018 20:48:03 +0000 (13:48 -0700)]
closes bpo-34004: Skip lock interruption tests on musl. (GH-9224)

Returning EINTR from pthread semaphore or lock acquisition is an optional POSIX
feature. musl does not provide this feature, so some threadsignal tests fail
when Python is built against it.

There's no good way to test for musl, so we skip if we're on Linux and not using
glibc pthreads.

Also, hedge in the threading documentation about when we can provide interrupts
from lock acquisition.

6 years agobpo-31577: Fix a crash in os.utime() in case of a bad ns argument. (GH-3752)
Oren Milman [Wed, 12 Sep 2018 19:14:35 +0000 (22:14 +0300)]
bpo-31577: Fix a crash in os.utime() in case of a bad ns argument. (GH-3752)

6 years agocloses bpo-34646: Remove PyAPI_* macros from declarations. (GH-9218)
Benjamin Peterson [Wed, 12 Sep 2018 19:06:42 +0000 (12:06 -0700)]
closes bpo-34646: Remove PyAPI_* macros from declarations. (GH-9218)