]> granicus.if.org Git - python/log
python
6 years agoFix astuple in dataclasses documentation (GH-9631)
방성범 (Bang Seongbeom) [Sat, 29 Sep 2018 10:50:31 +0000 (19:50 +0900)]
Fix astuple in dataclasses documentation (GH-9631)

6 years agoFix incorrect error handling in _pickle.Unpickler.__init__() (GH-9630)
Zackery Spytz [Sat, 29 Sep 2018 05:48:46 +0000 (23:48 -0600)]
Fix incorrect error handling in _pickle.Unpickler.__init__() (GH-9630)

_pickle.Unpickler.__init__() should return -1 if Pdata_New() fails, not 1.

6 years agobpo-34797: Convert heapq to the argument clinic (GH-9560)
Pablo Galindo [Fri, 28 Sep 2018 19:39:43 +0000 (20:39 +0100)]
bpo-34797: Convert heapq to the argument clinic (GH-9560)

6 years agobpo-34687: Update asyncio doc for ProactorEventLoop (GH-9623)
Victor Stinner [Fri, 28 Sep 2018 15:40:08 +0000 (08:40 -0700)]
bpo-34687: Update asyncio doc for ProactorEventLoop (GH-9623)

Since ProactorEventLoop is now the default in 3.8, remove examples
using it explicitly on Windows.

https://bugs.python.org/issue34687

6 years agobpo-34521: Fix tests in test_multiprocessing_spawn to use correctly CMSG_SPACE (GH...
Pablo Galindo [Fri, 28 Sep 2018 09:51:05 +0000 (10:51 +0100)]
bpo-34521: Fix tests in test_multiprocessing_spawn to use correctly CMSG_SPACE (GH-9613)

After some failures in AMD64 FreeBSD CURRENT Debug 3.x buildbots
regarding tests in test_multiprocessing_spawn and after examining
similar failures in test_socket, some errors in the calculation of
ancillary data buffers were found in multiprocessing.reduction.

CMSG_LEN() can often be used as the buffer size for recvmsg() to
receive a single item of ancillary data, but RFC 3542 requires portable
applications to use CMSG_SPACE() and thus include space for padding,
even when the item will be the last in the buffer.

The failures we experience are due to the usage of CMSG_LEN() instead of
CMSG_SPACE().

6 years agobpo-34736: improve error message for invalid length b64decode inputs (GH-9563)
Tal Einat [Fri, 28 Sep 2018 05:57:22 +0000 (08:57 +0300)]
bpo-34736: improve error message for invalid length b64decode inputs (GH-9563)

Improvements:
1. Include the number of valid data characters in the error message.
2. Mention "number of data characters" rather than "length".

https://bugs.python.org/issue34736

6 years agobpo-34248: Add filename to error raised in {gnu,ndbm}.open() (GH-8590)
Zsolt Cserna [Thu, 27 Sep 2018 19:54:34 +0000 (21:54 +0200)]
bpo-34248: Add filename to error raised in {gnu,ndbm}.open() (GH-8590)

Report the filename to the exception when raising {gdbm,dbm.ndbm}.error in
dbm.gnu.open() and dbm.ndbm.open() functions, so it gets printed when the
exception is raised, and can also be obtained by the filename attribute of the
exception object.

6 years agobpo-34802: Fix asyncio.iscoroutine() docs (GH-9611)
Yury Selivanov [Thu, 27 Sep 2018 19:48:30 +0000 (15:48 -0400)]
bpo-34802: Fix asyncio.iscoroutine() docs (GH-9611)

6 years agobpo-34762: Update PyContext* to PyObject* in asyncio and decimal (GH-9609)
Yury Selivanov [Thu, 27 Sep 2018 18:55:55 +0000 (14:55 -0400)]
bpo-34762: Update PyContext* to PyObject* in asyncio and decimal (GH-9609)

This fixes various compiler warnings.

6 years agobpo-32892: Use ast.Constant instead of specific constant AST types. (GH-9445)
Serhiy Storchaka [Thu, 27 Sep 2018 14:42:37 +0000 (17:42 +0300)]
bpo-32892: Use ast.Constant instead of specific constant AST types. (GH-9445)

6 years agobpo-34819: Use a monotonic clock to compute timeouts in concurrent.futures (GH-9599)
orlnub123 [Thu, 27 Sep 2018 11:16:26 +0000 (14:16 +0300)]
bpo-34819: Use a monotonic clock to compute timeouts in concurrent.futures (GH-9599)

Use a monotonic clock to compute timeouts in :meth:`Executor.map` and :func:`as_completed`, in order to prevent timeouts from deviating when the system clock is adjusted.

This may not be sufficient on all systems. On POSIX for example, the actual waiting (e.g. in ``sem_timedwait``) is specified to rely on the CLOCK_REALTIME clock.

6 years agoFix tests in test_socket to use correctly CMSG_LEN (GH-9594)
Pablo Galindo [Thu, 27 Sep 2018 09:25:03 +0000 (10:25 +0100)]
Fix tests in test_socket to use correctly CMSG_LEN (GH-9594)

After some failures in AMD64 FreeBSD CURRENT Debug 3.x buildbots
regarding tests in test_socket that are using
testFDPassSeparateMinSpace(), FreeBDS revision 337423 was pointed
out to be the reason the test started to fail.

A close examination of the manpage for cmsg_space(3) reveals that
the number of file descriptors needs to be taken into account when
using CMSG_LEN().

This commit fixes tests in test_socket to use correctly CMSG_LEN, taking
into account the number of FDs.

6 years agobpo-31425: fix versionadded in docs and add attribution in NEWS (GH-9595)
Tal Einat [Wed, 26 Sep 2018 21:20:38 +0000 (00:20 +0300)]
bpo-31425: fix versionadded in docs and add attribution in NEWS (GH-9595)

6 years agoClarify that Type[SomeTypeVar] is legal (#9585)
Michael Lee [Wed, 26 Sep 2018 15:13:28 +0000 (08:13 -0700)]
Clarify that Type[SomeTypeVar] is legal (#9585)

Currently, the docs state that when doing `Type[X]`, X is only allowed to
be a class, a union of classes, and Any. This pull request amends
that sentence to clarify X may also be a typevar (or a union involving
classes, Any, and TypeVars).

6 years agobpo-31425: Expose AF_QIPCRTR in socket module (GH-3706)
Bjorn Andersson [Wed, 26 Sep 2018 13:47:52 +0000 (06:47 -0700)]
bpo-31425: Expose AF_QIPCRTR in socket module (GH-3706)

The AF_QIPCRTR address family was introduced in Linux v4.7.

Co-authored-by: Bjorn Andersson <bjorn.andersson@linaro.org>
6 years agobpo-34320: Fix dict(o) didn't copy order of dict subclass (GH-8624)
INADA Naoki [Wed, 26 Sep 2018 03:59:00 +0000 (12:59 +0900)]
bpo-34320: Fix dict(o) didn't copy order of dict subclass (GH-8624)

When dict subclass overrides order (`__iter__()`, `keys()`, and `items()`), `dict(o)`
should use it instead of dict ordering.

https://bugs.python.org/issue34320

6 years agobpo-34334: Don't log traceback twice in QueueHandler (GH-9537)
Cheryl Sabella [Tue, 25 Sep 2018 23:00:08 +0000 (19:00 -0400)]
bpo-34334: Don't log traceback twice in QueueHandler (GH-9537)

6 years agoasyncio/docs: Replace Python 4.0 -> 3.10 (GH-9579)
Yury Selivanov [Tue, 25 Sep 2018 21:44:52 +0000 (17:44 -0400)]
asyncio/docs: Replace Python 4.0 -> 3.10 (GH-9579)

6 years agobpo-5950: Support reading zips with comments in zipimport (#9548)
Zackery Spytz [Tue, 25 Sep 2018 19:15:47 +0000 (13:15 -0600)]
bpo-5950: Support reading zips with comments in zipimport (#9548)

* bpo-5950: Support reading zips with comments in zipimport

6 years agobpo-34790: [docs] Passing coroutines to asyncio.wait() can be confusing. (GH-9543)
Yury Selivanov [Tue, 25 Sep 2018 18:51:21 +0000 (14:51 -0400)]
bpo-34790: [docs] Passing coroutines to asyncio.wait() can be confusing. (GH-9543)

6 years agobpo-34162: idlelib/NEWS.txt entry for squeezer (GH-9573)
Terry Jan Reedy [Tue, 25 Sep 2018 17:41:25 +0000 (13:41 -0400)]
bpo-34162: idlelib/NEWS.txt entry for squeezer (GH-9573)

6 years agobpo-1529353: IDLE - Squeezer What's New for 3.8 (#9572)
Terry Jan Reedy [Tue, 25 Sep 2018 16:45:27 +0000 (12:45 -0400)]
bpo-1529353: IDLE - Squeezer What's New for 3.8 (#9572)

6 years agobpo-1529353: IDLE - Squeezer What's New for 3.7.1 (#9568)
Terry Jan Reedy [Tue, 25 Sep 2018 16:09:43 +0000 (12:09 -0400)]
bpo-1529353: IDLE - Squeezer What's New for 3.7.1 (#9568)

6 years agobpo-1529353: IDLE: Squeezer What's New for 3.6.7 (#9567)
Terry Jan Reedy [Tue, 25 Sep 2018 16:08:54 +0000 (12:08 -0400)]
bpo-1529353: IDLE: Squeezer What's New for 3.6.7 (#9567)

6 years agobpo-33937: Catch ENOMEM error in test_socket (#9557)
Victor Stinner [Tue, 25 Sep 2018 15:30:15 +0000 (08:30 -0700)]
bpo-33937: Catch ENOMEM error in test_socket (#9557)

Fix test_socket.SendmsgSCTPStreamTest: catch ENOMEM error.
testSendmsgTimeout() and testSendmsgDontWait() randomly fail on
Travis CI with: "OSError: [Errno 12] Cannot allocate memory".

6 years agobpo-34687: Make asynico use ProactorEventLoop by default (GH-9538)
Victor Stinner [Tue, 25 Sep 2018 15:27:08 +0000 (08:27 -0700)]
bpo-34687: Make asynico use ProactorEventLoop by default (GH-9538)

6 years agobpo-32557: allow shutil.disk_usage to take a file path on Windows also (GH-9372)
Joe Pamer [Tue, 25 Sep 2018 14:57:36 +0000 (10:57 -0400)]
bpo-32557: allow shutil.disk_usage to take a file path on Windows also (GH-9372)

https://bugs.python.org/issue32557

6 years agobpo-1529353: IDLE: squeeze large output in the shell (GH-7626)
Tal Einat [Tue, 25 Sep 2018 12:10:14 +0000 (15:10 +0300)]
bpo-1529353: IDLE: squeeze large output in the shell (GH-7626)

6 years agoImproved the more elaborate multiprocessing example in the logging cookbook (GH-9326)
Géry Ogam [Tue, 25 Sep 2018 07:24:52 +0000 (09:24 +0200)]
Improved the more elaborate multiprocessing example in the logging cookbook (GH-9326)

6 years agobpo-34770: Fix a possible null pointer dereference in pyshellext.cpp (GH-9497)
Zackery Spytz [Tue, 25 Sep 2018 04:25:23 +0000 (22:25 -0600)]
bpo-34770: Fix a possible null pointer dereference in pyshellext.cpp (GH-9497)

The GlobalLock() call in UpdateDropDescription() was not checked for
failure.

https://bugs.python.org/issue34770

6 years agoFix wrong exception reference: BrokenThreadPool -> BrokenProcessPool (GH-9533)
Joni Kähärä [Tue, 25 Sep 2018 03:30:25 +0000 (06:30 +0300)]
Fix wrong exception reference: BrokenThreadPool -> BrokenProcessPool (GH-9533)

6 years agobpo-34162: Update idlelib/NEWS.txt to 2018-9-24. (GH-9551)
Terry Jan Reedy [Tue, 25 Sep 2018 00:11:45 +0000 (20:11 -0400)]
bpo-34162: Update idlelib/NEWS.txt to 2018-9-24. (GH-9551)

6 years agobpo-34162: Add entry for idlelib/NEWS.txt already included for 3.6/3.7 (GH-9549)
Terry Jan Reedy [Mon, 24 Sep 2018 23:15:40 +0000 (19:15 -0400)]
bpo-34162: Add entry for idlelib/NEWS.txt already included for 3.6/3.7 (GH-9549)

6 years agobpo-34683: Make SyntaxError column offsets consistently 1-indexed (gh-9338)
Ammar Askar [Mon, 24 Sep 2018 21:12:49 +0000 (17:12 -0400)]
bpo-34683: Make SyntaxError column offsets consistently 1-indexed (gh-9338)

Also point to start of tokens in parsing errors.

Fixes bpo-34683

6 years agobpo-34791: xml package obeys ignore env flags (GH-9544)
Christian Heimes [Mon, 24 Sep 2018 17:21:12 +0000 (19:21 +0200)]
bpo-34791: xml package obeys ignore env flags (GH-9544)

The xml.sax and xml.dom.domreg modules now obey
sys.flags.ignore_environment.

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

6 years agobpo-34783: Add test_cmd_line_script.test_nonexisting_script() (GH-9535)
Victor Stinner [Mon, 24 Sep 2018 15:06:29 +0000 (08:06 -0700)]
bpo-34783: Add test_cmd_line_script.test_nonexisting_script() (GH-9535)

Make sure that "./python script.py" does not crash if the script
file doesn't exist.

6 years agobpo-34582: Fixes Python version used for patch check (GH-9532)
Steve Dower [Mon, 24 Sep 2018 13:03:02 +0000 (09:03 -0400)]
bpo-34582: Fixes Python version used for patch check (GH-9532)

https://bugs.python.org/issue34582

6 years agoUpdate Azure Pipelines badge (GH-9529)
Steve Dower [Mon, 24 Sep 2018 12:04:33 +0000 (08:04 -0400)]
Update Azure Pipelines badge (GH-9529)

6 years agobpo-34582: Update syntax of Azure Pipelines builds (GH-9521)
Steve Dower [Mon, 24 Sep 2018 11:44:50 +0000 (07:44 -0400)]
bpo-34582: Update syntax of Azure Pipelines builds (GH-9521)

6 years agobpo-24937: Replace the extension module porting HOWTO by links to external projects...
Petr Viktorin [Mon, 24 Sep 2018 10:42:33 +0000 (12:42 +0200)]
bpo-24937: Replace the extension module porting HOWTO by links to external projects (GH-9317)

6 years agobpo-34728: Remove deprecate *loop* argument in asyncio.sleep (GH-9415)
João Júnior [Mon, 24 Sep 2018 09:51:22 +0000 (06:51 -0300)]
bpo-34728: Remove deprecate *loop* argument in asyncio.sleep (GH-9415)

* Insert the warn in the asyncio.sleep when the loop argument is used

* Insert the warn in the asyncio.wait and asyncio.wait_for when the loop argument is used

* Better format of the code

* Add news file

* change calls for get_event_loop() to calls for get_running_loop()

* Change message to be more clear in News

* Improve the comments in test_tasks

6 years agoMigrate datetime.date.fromtimestamp to Argument Clinic (GH-8535)
Tim Hoffmann [Mon, 24 Sep 2018 08:39:02 +0000 (10:39 +0200)]
Migrate datetime.date.fromtimestamp to Argument Clinic (GH-8535)

6 years agobpo-34659: Adds initial kwarg to itertools.accumulate() (GH-9345)
Lisa Roach [Mon, 24 Sep 2018 00:34:59 +0000 (17:34 -0700)]
bpo-34659: Adds initial kwarg to itertools.accumulate() (GH-9345)

6 years agobpo-34548: IDLE: use configured theme colors in TextView (GH-9008)
Tal Einat [Sun, 23 Sep 2018 12:23:15 +0000 (15:23 +0300)]
bpo-34548: IDLE: use configured theme colors in TextView (GH-9008)

https://bugs.python.org/issue34548

6 years agoUse in-memory streams instead of NamedTemporaryFile. (GH-9508)
Serhiy Storchaka [Sun, 23 Sep 2018 11:10:07 +0000 (14:10 +0300)]
Use in-memory streams instead of NamedTemporaryFile. (GH-9508)

6 years agobpo-17239: Disable external entities in SAX parser (GH-9217)
Christian Heimes [Sun, 23 Sep 2018 07:50:25 +0000 (09:50 +0200)]
bpo-17239: Disable external entities in SAX parser (GH-9217)

The SAX parser no longer processes general external entities by default
to increase security. Before, the parser created network connections
to fetch remote files or loaded local files from the file system for DTD
and entities.

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

6 years agobpo-34670: Add TLS 1.3 post handshake auth (GH-9460)
Christian Heimes [Sun, 23 Sep 2018 06:32:31 +0000 (08:32 +0200)]
bpo-34670: Add TLS 1.3 post handshake auth (GH-9460)

Add SSLContext.post_handshake_auth and
SSLSocket.verify_client_post_handshake for TLS 1.3 post-handshake
authentication.

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

6 years agobpo-34421: Improve distutils logging for non-ASCII strings. (GH-9126)
Serhiy Storchaka [Sun, 23 Sep 2018 06:12:59 +0000 (09:12 +0300)]
bpo-34421: Improve distutils logging for non-ASCII strings. (GH-9126)

Use "backslashreplace" instead of "unicode-escape".  It is not
implementation depended and escapes only non-encodable characters.

Also simplify the code.

6 years agobpo-32117: Iterable unpacking in return and yield documentation (GH-9487)
jChapman [Sun, 23 Sep 2018 01:13:10 +0000 (21:13 -0400)]
bpo-32117: Iterable unpacking in return and yield documentation (GH-9487)

News entry clean up, added to what's new

Requested by @gvanrossum in https://github.com/python/cpython/pull/4509

https://bugs.python.org/issue32117

6 years agoFix pickletools doc for NEWFALSE. (GH-9432)
Krzysztof Wroblewski [Sat, 22 Sep 2018 15:13:53 +0000 (16:13 +0100)]
Fix pickletools doc for NEWFALSE. (GH-9432)

Also make docs for NEWFALSE and NEWTRUE more consistent
with docs for other opcodes.

6 years agobpo-34759: Fix error handling in ssl 'unwrap()' (GH-9468)
Nathaniel J. Smith [Sat, 22 Sep 2018 04:44:12 +0000 (21:44 -0700)]
bpo-34759: Fix error handling in ssl 'unwrap()' (GH-9468)

OpenSSL follows the convention that whenever you call a function, it
returns an error indicator value; and if this value is negative, then
you need to go look at the actual error code to see what happened.

Commit c6fd1c1c3a introduced a small mistake in
_ssl__SSLSocket_shutdown_impl: instead of checking whether the error
indicator was negative, it started checking whether the actual error
code was negative, and it turns out that the error codes are never
negative. So the effect was that 'unwrap()' lost the ability to raise
SSL errors.

https://bugs.python.org/issue34759

6 years agobpo-34623: Mention CVE-2018-14647 in news entry (GH-9482)
Christian Heimes [Sat, 22 Sep 2018 04:42:29 +0000 (06:42 +0200)]
bpo-34623: Mention CVE-2018-14647 in news entry (GH-9482)

https://bugs.python.org/issue34623

6 years agobpo-29577: Enum: mixin classes don't mix well with already mixed Enums (GH-9328)
Ethan Furman [Sat, 22 Sep 2018 02:03:09 +0000 (19:03 -0700)]
bpo-29577: Enum: mixin classes don't mix well with already mixed Enums (GH-9328)

* bpo-29577: allow multiple mixin classes

6 years agobpo-32117: Allow tuple unpacking in return and yield statements (gh-4509)
David Cuthbert [Sat, 22 Sep 2018 01:31:15 +0000 (18:31 -0700)]
bpo-32117: Allow tuple unpacking in return and yield statements (gh-4509)

Iterable unpacking is now allowed without parentheses in yield and return
statements, e.g. ``yield 1, 2, 3, *rest``. Thanks to David Cuthbert for the
change and jChapman for added tests.

6 years agobpo-34537: Fix test_gdb:test_strings with LC_ALL=C (GH-9483)
Elvis Pranskevichus [Sat, 22 Sep 2018 01:13:16 +0000 (21:13 -0400)]
bpo-34537: Fix test_gdb:test_strings with LC_ALL=C (GH-9483)

We cannot simply call locale.getpreferredencoding() here,
as GDB might have been linked against a different version
of Python with a different encoding and coercion policy
with respect to PEP 538 and PEP 540.

Thanks to Victor Stinner for a hint on how to fix this.

6 years agobpo-32718: Make Activate.ps1 for venv cross-platform and available on all platforms...
Brett Cannon [Fri, 21 Sep 2018 22:27:26 +0000 (15:27 -0700)]
bpo-32718: Make Activate.ps1 for venv cross-platform and available on all platforms (GH-9321)

PowerShell Core 6.1 is the cross-platform port of Windows PowerShell. This change updates Activate.ps1 to not make Windows assumptions as well as installing it into the bin/Scripts directory on all operating systems.

Requires PowerShell Core 6.1 for proper readline support once the shell has been activated for the virtual environment.

6 years agobpo-33649: Fix gather() docs; fix title; few other nits. (GH-9475)
Yury Selivanov [Fri, 21 Sep 2018 20:23:15 +0000 (16:23 -0400)]
bpo-33649: Fix gather() docs; fix title; few other nits. (GH-9475)

6 years agoMake docs of exitcode for subprocess.getstatusoutput more clear. (GH-9477)
Xiang Zhang [Fri, 21 Sep 2018 20:18:20 +0000 (04:18 +0800)]
Make docs of exitcode for subprocess.getstatusoutput more clear. (GH-9477)

Make it more accurate and not limited to UNIX.

6 years agobpo-34762: Fix contextvars C API to use PyObject* pointer types. (GH-9473)
Yury Selivanov [Fri, 21 Sep 2018 19:33:56 +0000 (15:33 -0400)]
bpo-34762: Fix contextvars C API to use PyObject* pointer types. (GH-9473)

6 years agoMinor performance tweak for deque.index() with a start argument (GH-9440)
Raymond Hettinger [Fri, 21 Sep 2018 08:46:41 +0000 (01:46 -0700)]
Minor performance tweak for deque.index() with a start argument (GH-9440)

6 years agobpo-34755: Add few minor optimizations in _asynciomodule.c. (GH-9455)
Serhiy Storchaka [Fri, 21 Sep 2018 06:11:32 +0000 (09:11 +0300)]
bpo-34755: Add few minor optimizations in _asynciomodule.c. (GH-9455)

6 years agobpo-34735: Fix a memory leak in Modules/timemodule.c (GH-9418)
Zackery Spytz [Fri, 21 Sep 2018 06:09:48 +0000 (00:09 -0600)]
bpo-34735: Fix a memory leak in Modules/timemodule.c (GH-9418)

There was a missing PyMem_Free(format) in time_strftime().

6 years agoSimplify PyInit_timezone. (GH-9467)
Benjamin Peterson [Fri, 21 Sep 2018 02:52:18 +0000 (19:52 -0700)]
Simplify PyInit_timezone. (GH-9467)

Reduce the knotty preprocessor conditional logic, dedent unnecessarily nested
code, and handle errors properly.

The first edition of this change (afde1c1a05cc8a1e8adf6403c451f6708509a605)
failed (bpo-34715) because FreeBSD doesn't define the timezone globals. That's
why we're now checking for HAVE_DECL_TZNAME.

6 years agocloses bpo-34656: Avoid relying on signed overflow in _pickle memos. (GH-9261)
Benjamin Peterson [Fri, 21 Sep 2018 01:36:40 +0000 (18:36 -0700)]
closes bpo-34656: Avoid relying on signed overflow in _pickle memos. (GH-9261)

6 years agobpo-34011: Fixes missing venv files and other tests (GH-9458)
Steve Dower [Thu, 20 Sep 2018 20:38:34 +0000 (13:38 -0700)]
bpo-34011: Fixes missing venv files and other tests (GH-9458)

6 years agobpo-34754: Fix test_flush_return_value on FreeBSD (GH-9451)
Berker Peksag [Thu, 20 Sep 2018 16:53:06 +0000 (19:53 +0300)]
bpo-34754: Fix test_flush_return_value on FreeBSD (GH-9451)

Apparently, FreeBSD doesn't raise OSError when offset is
not a multiple of mmap.PAGESIZE.

6 years agobpo-33649: More improvements (GH-9439)
Yury Selivanov [Thu, 20 Sep 2018 16:43:59 +0000 (12:43 -0400)]
bpo-33649: More improvements (GH-9439)

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)