Serhiy Storchaka [Thu, 1 Jun 2017 05:18:25 +0000 (08:18 +0300)]
bpo-30509: Clean up calling type slots. (#1883)
Also speed up slot_sq_item.
csabella [Thu, 1 Jun 2017 00:14:19 +0000 (20:14 -0400)]
bpo-27618: Clarify that threading.Lock is a factory function (GH-1307)
Hiro Asari [Wed, 31 May 2017 22:34:00 +0000 (18:34 -0400)]
Fix Travis config to reinstate test build (GH-1879)
Albert-Jan Nijburg [Wed, 31 May 2017 14:00:21 +0000 (15:00 +0100)]
bpo-25324: copy tok_name before changing it (#1608)
* add test to check if were modifying token
* copy list so import tokenize doesnt have side effects on token
* shorten line
* add tokenize tokens to token.h to get them to show up in token
* move ERRORTOKEN back to its previous location, and fix nitpick
* copy comments from token.h automatically
* fix whitespace and make more pythonic
* change to fix comments from @haypo
* update token.rst and Misc/NEWS
* change wording
* some more wording changes
Gregory P. Smith [Tue, 30 May 2017 23:21:47 +0000 (16:21 -0700)]
subprocess test_empty_env typo fix. (#1877)
Mariatta [Tue, 30 May 2017 22:26:42 +0000 (15:26 -0700)]
bpo-17188: add missing periods at the end of sentences (GH-1875)
Gregory P. Smith [Tue, 30 May 2017 21:40:37 +0000 (14:40 -0700)]
bpo-12383: Refactor subprocess test_empty_env (#1874)
Bugfix: This test wasn't being run because it was skipping based on the
presence of Py_ENABLE_SHARED rather than its value. It is always present
on POSIX systems but defaults to 0.
Refactoring: Move the environment variables that can be ignored into a
function. Parse the list from the child process and filter out the ones
to exclude in the parent before checking that the rest is empty.
Feature: Adds always present environment variables to ignore when
running in a Gentoo sandbox so that the test can pass there.
kms70847 [Tue, 30 May 2017 16:12:33 +0000 (12:12 -0400)]
Improve grammar in The Import System documentation (GH-1862)
Replace `an ModuleNotFoundError` with `a ModuleNotFoundError`.
Replace `an path` with `a path`.
gfyoung [Mon, 29 May 2017 21:26:31 +0000 (17:26 -0400)]
bpo-30361: Use better example for mixed-type operands (#1701)
Jim Fasarakis-Hilliard [Mon, 29 May 2017 17:43:39 +0000 (20:43 +0300)]
Change error message for array methods to use 'array' instead of 'list'. (#1853)
Gregory P. Smith [Mon, 29 May 2017 17:03:41 +0000 (10:03 -0700)]
bpo-16500: Don't use string constants for os.register_at_fork() behavior (#1834)
Instead use keyword only arguments to os.register_at_fork for each of the scenarios.
Updates the documentation for clarity.
Antoine Pitrou [Mon, 29 May 2017 10:05:45 +0000 (12:05 +0200)]
Build docs in parallel (#1842)
Amit Kumar [Mon, 29 May 2017 01:02:26 +0000 (06:32 +0530)]
Add reference to help('FORMATTING') in format() builtin (GH-166)
Serhiy Storchaka [Sun, 28 May 2017 12:31:49 +0000 (15:31 +0300)]
bpo-30248: Convert boolean arguments only once in _json. (#1423)
Rather than saving the Python object and calling PyObject_IsTrue()
every time when the boolean argument is used, call it only once and
save C boolean value.
Antoine Pitrou [Sun, 28 May 2017 12:02:26 +0000 (14:02 +0200)]
bpo-16500: Use register_at_fork() in the threading module (#1843)
* bpo-16500: Use register_at_fork() in the threading module
* Update comment at top of _after_fork()
csabella [Sun, 28 May 2017 10:50:55 +0000 (06:50 -0400)]
bpo-30495: IDLE: Modernize textview.py with docstrings and PEP8 names (#1839)
Patch by Cheryl Sabella.
Antoine Pitrou [Sun, 28 May 2017 09:35:14 +0000 (11:35 +0200)]
Doc nits for bpo-16500 (#1841)
* Doc nits for bpo-16500
* Fix more references
terryjreedy [Sun, 28 May 2017 05:10:51 +0000 (01:10 -0400)]
IDLE test_help_about: edit and add test. (#1838)
Coverage is now 100%
Gregory P. Smith [Sat, 27 May 2017 23:40:45 +0000 (16:40 -0700)]
bpo-30492: Allow make clinic to work out of tree. (#1836)
* bpo-30492: Allow make clinic to work out of tree.
* Use os.curdir instead of "." as the default value.
csabella [Sat, 27 May 2017 19:49:26 +0000 (15:49 -0400)]
bpo-30290: IDLE: Refactor help_about to PEP8 names (#1714)
Patch by Cheryl Sabella.
xdegaye [Sat, 27 May 2017 16:25:03 +0000 (18:25 +0200)]
bpo-20210: Support the *disabled* marker in Setup files (GH-132)
Extension modules listed after the *disabled* marker are not built at all,
neither by the Makefile nor by setup.py.
Antoine Pitrou [Sat, 27 May 2017 15:50:54 +0000 (17:50 +0200)]
bpo-16500: Allow registering at-fork handlers (#1715)
* bpo-16500: Allow registering at-fork handlers
* Address Serhiy's comments
* Add doc for new C API
* Add doc for new Python-facing function
* Add NEWS entry + doc nit
Mariatta [Sat, 27 May 2017 14:23:26 +0000 (07:23 -0700)]
bpo-30470: Deprecate invalid ctypes call protection on Windows. (GH-1810)
Calling Ctypes functions is deprecated in 3.6.2 and will be removed in 3.7
Serhiy Storchaka [Sat, 27 May 2017 14:01:31 +0000 (17:01 +0300)]
bpo-30310: Add a test for non-ascii font family. (#1567) (#1832)
Serhiy Storchaka [Sat, 27 May 2017 13:12:48 +0000 (16:12 +0300)]
bpo-30398: Add a docstring for re.error. (#1647)
Also document that some attributes may be None.
Serhiy Storchaka [Sat, 27 May 2017 13:11:18 +0000 (16:11 +0300)]
Fix the signature of JSONDecodeError (no end parameter). (#1827)
Unlikely to the simplejson module, json.JSONDecodeError doesn't accept the end argument.
Sanyam Khurana [Sat, 27 May 2017 05:44:41 +0000 (11:14 +0530)]
bpo-22702: Clarify documentation of str.join & bytes.join (GH-156)
The "iterable iterable" phrasing created confusion between the term
reference and the parameter name.
This simplifies the phrasing to just use the parameter name
without linking directly to the term definition.
Aaron Hall, MBA [Fri, 26 May 2017 05:33:26 +0000 (22:33 -0700)]
bpo-30449 Terse slots (#1819)
* correct __slots__ documentation with minimal changes
* add multiple inheritance info
* remove mapping from description
Alex Gaynor [Fri, 26 May 2017 02:28:17 +0000 (22:28 -0400)]
bpo-30420: List cwd parameter in subprocess convenience APIs (GH-1685)
Partially clarify the subprocess convenience API documentation by
explicitly listing the `cwd` parameter in their abbreviated signatures.
While this has been merged as an improvement, it doesn't fully
resolve the issue, as the `cwd` should also be covered in the
"Frequently Used Arguments" section, and the fact these APIs
pass unlisted keyword arguments down to the lower level APIs
is currently still unclear.
Eric Snow [Thu, 25 May 2017 17:05:50 +0000 (10:05 -0700)]
Drop a duplicate line. (#1809)
grzgrzgrz3 [Thu, 25 May 2017 14:22:57 +0000 (16:22 +0200)]
bpo-30414: multiprocessing.Queue._feed do not break from main loop on exc (#1683)
* bpo-30414: multiprocesing.Queue._feed do not break from main loop on exc
Queue background running thread was not handling exceptions correctly.
Any exception occurred inside thread (putting unpickable object) cause
feeder to finish running. After that every message put into queue is
silently ignored.
* bpo-30414: multiprocesing.Queue._feed do not break from main loop on exc
Queue background running thread was not handling exceptions correctly.
Any exception occurred inside thread (putting unpickable object) cause
feeder to finish running. After that every message put into queue is
silently ignored.
Segev Finer [Thu, 25 May 2017 11:00:18 +0000 (14:00 +0300)]
Delete sigcheck.c since it appears unused (#1723)
Serhiy Storchaka [Thu, 25 May 2017 10:33:55 +0000 (13:33 +0300)]
bpo-29104: Fixed parsing backslashes in f-strings. (#490)
Eric Snow [Thu, 25 May 2017 00:19:47 +0000 (17:19 -0700)]
bpo-30447: Fix/skip the subinterpreters test on some platforms. (#1791)
Garvit Khatri [Wed, 24 May 2017 22:19:50 +0000 (03:49 +0530)]
bpo-29851: Have importlib.reload() raise ImportError if the module's spec is not found (GH-972)
codedragon [Wed, 24 May 2017 21:23:46 +0000 (14:23 -0700)]
bpo-30445: Allow appended output in RecursionError message
Running under coverage sometimes causes 'in comparison' to be added to the end of the RecursionError message, which is acceptable.
Patched by Maria Mckinley
Eric N. Vander Weele [Wed, 24 May 2017 19:27:47 +0000 (12:27 -0700)]
bpo-28845: Clean up known issues for AIX (GH-1670)
Clean up `Misc/README.AIX` for addressed known issues.
- Issues that have been marked fixed: #11184, #11185
- Issues resolved by new AIX version: #
1745108
- Issues resolved, but not yet marked fixed/closed: #11188
Signed-off-by: Eric N. Vander Weele <ericvw@gmail.com>
Kushal Das [Wed, 24 May 2017 18:46:43 +0000 (11:46 -0700)]
bpo-30442: Skips refcount test in test_xml_etree under coverage (#1767)
jugglinmike [Wed, 24 May 2017 18:25:50 +0000 (14:25 -0400)]
bpo-30160: Clarify intended usage of wfile (gh-1300)
The library does not enforce compliance with the HTTP protocol,
so violations are not technically disallowed. Extend the stream's
description to avoid suggesting that intentional protocol violations are
not supported.
Steve Dower [Wed, 24 May 2017 16:24:49 +0000 (09:24 -0700)]
Move directory in .gitignore (#1787)
gfyoung [Wed, 24 May 2017 15:57:37 +0000 (11:57 -0400)]
Add .idea and .iml to .gitignore (#1764)
Albert-Jan Nijburg [Wed, 24 May 2017 11:31:57 +0000 (12:31 +0100)]
bpo-30377: Simplify handling of COMMENT and NL in tokenize.py (#1607)
Stéphane Wirtel [Wed, 24 May 2017 07:29:06 +0000 (09:29 +0200)]
bpo-28707: Add the directory parameter to http.server.SimpleHTTPRequestHandler and http.server module (#1776)
* bpo-28707: call the constructor of SimpleHTTPRequestHandler in the test with a mock object
* bpo-28707: Add the directory parameter to http.server.SimpleHTTPRequestHandler and http.server module
Gregory P. Smith [Wed, 24 May 2017 07:04:38 +0000 (00:04 -0700)]
bpo-9146: Raise a ValueError if OpenSSL fails to init a hash func. (#1777)
This helps people in weird FIPS mode environments where common things
like MD5 are not available in the binary as a matter of policy.
Brian Ward [Wed, 24 May 2017 07:03:38 +0000 (00:03 -0700)]
Added effect of re.ASCII and reworded slightly (#1782)
Eric Snow [Wed, 24 May 2017 06:00:52 +0000 (23:00 -0700)]
bpo-22257: Private C-API for main interpreter initialization (PEP 432). (#1729)
(patch by Nick Coghlan)
Joel Hillacre [Wed, 24 May 2017 05:14:50 +0000 (23:14 -0600)]
bpo-30394: Fix a socket leak in smtplib.SMTP.__init__() (#1700)
Eric Snow [Wed, 24 May 2017 04:46:51 +0000 (21:46 -0700)]
bpo-22257: Private C-API for core runtime initialization (PEP 432). (#1772)
(patch by Nick Coghlan)
Serhiy Storchaka [Wed, 24 May 2017 04:20:45 +0000 (07:20 +0300)]
Revert "Fixed a typo in the HTMLParser.feed docstrings" (#1771)
* Revert "Fixed a typo in the HTMLParser.feed docstrings. The docstring started with an 'r', like a The docstring was correct. I read the patch in opposite direction, as *adding* the "r" prefix.
This reverts commit
5ba185039f1bd465d3f82531324fd3fe1ee42f0c.
Eric Snow [Tue, 23 May 2017 23:40:03 +0000 (16:40 -0700)]
Revert an invalid change to a test (from
6b4be19). (#1770)
Steve Dower [Tue, 23 May 2017 23:25:25 +0000 (16:25 -0700)]
Improves test_underpth_nosite_file to reveal why it fails. (#1763)
* Improves test_underpth_nosite_file to reveal why it fails.
* Enable building with Windows 10 SDK.
* Fix WinSDK detection
* Fix initialization on Windows when a ._pth file exists.
* Fix tabs
* Adds comment about Py_GetPath call.
Christian Heimes [Tue, 23 May 2017 23:02:02 +0000 (16:02 -0700)]
bpo-29334: Fix ssl.getpeercert for auto-handshake (#1769)
Drop handshake_done and peer_cert members from PySSLSocket struct. The
peer certificate can be acquired from *SSL directly.
SSL_get_peer_certificate() does not trigger any network activity.
Instead of manually tracking the handshake state, simply use
SSL_is_init_finished().
In combination these changes fix auto-handshake for non-blocking
MemoryBIO connections.
Signed-off-by: Christian Heimes <christian@python.org>
Eric Snow [Tue, 23 May 2017 19:26:17 +0000 (12:26 -0700)]
bpo-22257: Fix CLI by using int instead of char (compares to EOF). (#1765)
Zachary Ware [Tue, 23 May 2017 17:23:05 +0000 (12:23 -0500)]
Update importlib.h (GH-1762)
Gregory P. Smith [Tue, 23 May 2017 14:49:13 +0000 (07:49 -0700)]
bpo-29335 - apply suggested test_subprocess simplifications from haypo and Zach: (#1757)
use faulthandler._sigsegv() and ctypes.util.find_library('c')
Jani Šumak [Tue, 23 May 2017 13:40:54 +0000 (15:40 +0200)]
Fixed a typo in the HTMLParser.feed docstrings. The docstring started with an 'r', like a rawstring. (#1759)
jimmylai [Tue, 23 May 2017 05:32:46 +0000 (22:32 -0700)]
call remove_done_callback in finally section (#1688)
Roy Williams [Tue, 23 May 2017 05:24:17 +0000 (22:24 -0700)]
bpo-30432: FileInput doesn't accept PathLike objects for file names (#1732)
* Allow FileInput to accept a single PathLike object as a parameter for `files`
Fixes
bpo-30432: FileInput doesn't accept PathLike objects for file names
* Address comments from @ambv
Amit Kumar [Tue, 23 May 2017 05:09:42 +0000 (10:39 +0530)]
bpo-21056: Document return type of next method of csv reader (#146)
Eric Snow [Tue, 23 May 2017 04:36:03 +0000 (21:36 -0700)]
bpo-22257: Small changes for PEP 432. (#1728)
PEP 432 specifies a number of large changes to interpreter startup code, including exposing a cleaner C-API. The major changes depend on a number of smaller changes. This patch includes all those smaller changes.
Thomas Kluyver [Tue, 23 May 2017 03:27:52 +0000 (04:27 +0100)]
bpo-25532: Protect against infinite loops in inspect.unwrap() (#1717)
Some objects (like test mocks) auto-generate new objects on
attribute access, which can lead to an infinite loop in
inspect.unwrap().
Ensuring references are retained to otherwise temporary objects
and capping the size of the memo dict turns this case into a
conventional exception instead.
Eric Snow [Tue, 23 May 2017 02:46:40 +0000 (19:46 -0700)]
bpo-29102: Add a unique ID to PyInterpreterState. (#1639)
Berker Peksag [Tue, 23 May 2017 00:16:07 +0000 (03:16 +0300)]
bpo-30376: Update outdated WindowObject references (#1630)
Jason Fried [Mon, 22 May 2017 23:58:55 +0000 (16:58 -0700)]
bpo-30395 _PyGILState_Reinit deadlock fix (#1734)
head_lock could be held by another thread when fork happened. We should
reset it to avoid deadlock.
Łukasz Langa [Mon, 22 May 2017 23:35:48 +0000 (16:35 -0700)]
bpo-23894: make lib2to3 recognize f-strings (#1733)
Note: this doesn't unpack f-strings into the underlying JoinedStr AST.
Ideally we'd fully implement JoinedStr here but given its additional
complexity, I think this is worth bandaiding as is. This unblocks tools like
https://github.com/google/yapf to format 3.6 syntax using f-strings.
T. Wouters [Mon, 22 May 2017 23:30:49 +0000 (01:30 +0200)]
Add --with-assertions configure flag to enable C assertions(#1731)
Defaults to 'no', but as before assertions are implied by --with-pydebug.
Łukasz Langa [Mon, 22 May 2017 22:19:09 +0000 (15:19 -0700)]
Make rb'' strings work in lib2to3 (#1724)
This partially solves bpo-23894.
Stéphane Wirtel [Mon, 22 May 2017 21:28:28 +0000 (23:28 +0200)]
Remove .bzrignore (GH-1661)
Naomi Ceder [Mon, 22 May 2017 21:09:55 +0000 (14:09 -0700)]
bpo-30372: Clarify that '__builtins__' is a CPython Implementation detail (GH-1725)
Vijay Kumar [Mon, 22 May 2017 16:23:52 +0000 (21:53 +0530)]
Fix spelling mistakes in tkinter.py (#1716)
Ran the docstrings through spell checker, and fixed spelling issues.
Xiang Zhang [Mon, 22 May 2017 14:42:05 +0000 (22:42 +0800)]
bpo-30003: Fix handling escape characters in HZ codec (#1556)
Ben Lloyd [Mon, 22 May 2017 11:06:56 +0000 (12:06 +0100)]
Corrected grammar mistake in documentation (#1713)
There was an unneeded space before a closing parenthesis in the `unittest.mock` documentation.
xdegaye [Mon, 22 May 2017 09:15:08 +0000 (11:15 +0200)]
bpo-29619: Do not use HAVE_LARGEFILE_SUPPORT for type conversions (GH-1666).
bpo-29619: Do not use HAVE_LARGEFILE_SUPPORT for type conversions (GH-1666).
* Use only the LongLong form for the conversions.
mlouielu [Sun, 21 May 2017 22:19:35 +0000 (06:19 +0800)]
bpo-30290: IDLE: Add more tests for help_about dialog (#1697)
Increases coverage to 99%
Serhiy Storchaka [Sun, 21 May 2017 05:57:00 +0000 (08:57 +0300)]
bpo-30415: Add new tests for the fnmatch module. (#1684)
Giampaolo Rodola [Sat, 20 May 2017 09:34:44 +0000 (11:34 +0200)]
#30014: refactor poll-related classes (#1035)
* #30014: refactor poll-related classes so that poll(), epoll() and devpoll() share the same methods for register(), unregister(), close() and select()
* remove unused attribute
* use specific class attributes instead of select.* constants
* have all classes except SelectSelector a _selector attribute
* BaseException -> Exception
* be explicit in defining a close() method only for selectors which have it
* fix AttributeError
Serhiy Storchaka [Sat, 20 May 2017 09:30:02 +0000 (12:30 +0300)]
bpo-27945: Fixed various segfaults with dict. (#1657)
Based on patches by Duane Griffin and Tim Mitchell.
csabella [Sat, 20 May 2017 06:48:28 +0000 (02:48 -0400)]
bpo-17188: DOC: Document 'from None' in raise statement (#1671)
Original patch by Dennis Mårtensson.
Serhiy Storchaka [Sat, 20 May 2017 05:48:06 +0000 (08:48 +0300)]
bpo-25794: Fix `type.__setattr__()` for non-interned attribute names. (#1652)
Based on patch by Eryk Sun.
delirious-lettuce [Fri, 19 May 2017 20:37:57 +0000 (14:37 -0600)]
Fix typos in multiple `.rst` files (#1668)
remitamine [Fri, 19 May 2017 12:28:35 +0000 (14:28 +0200)]
Remove duplicate line in Lib/http/client.py (#1665)
delirious-lettuce [Fri, 19 May 2017 01:01:00 +0000 (19:01 -0600)]
Remove trailing semicolon in datetime doc example (GH-1653)
Victor Stinner [Thu, 18 May 2017 20:03:24 +0000 (13:03 -0700)]
bpo-27103: regrtest disables -W if -R is used (#1651)
Workaround for a regrtest bug.
Jon Dufresne [Thu, 18 May 2017 14:35:54 +0000 (07:35 -0700)]
bpo-30296 Remove unnecessary tuples, lists, sets, and dicts (#1489)
* Replaced list(<generator expression>) with list comprehension
* Replaced dict(<generator expression>) with dict comprehension
* Replaced set(<list literal>) with set literal
* Replaced builtin func(<list comprehension>) with func(<generator
expression>) when supported (e.g. any(), all(), tuple(), min(), &
max())
Senthil Kumaran [Thu, 18 May 2017 04:48:59 +0000 (21:48 -0700)]
bpo-29976: urllib.parse clarify '' in scheme values. (GH-984)
terryjreedy [Thu, 18 May 2017 02:59:46 +0000 (22:59 -0400)]
IDLE test_textview: add comments and test, increase coverage to 100% (#1641)
Louie Lu [Wed, 17 May 2017 21:51:31 +0000 (05:51 +0800)]
bpo-30303: IDLE: Add _utest argument to textview (#1499)
Nathaniel J. Smith [Wed, 17 May 2017 20:33:23 +0000 (13:33 -0700)]
bpo-30039: Don't run signal handlers while resuming a yield from stack (#1081)
If we have a chain of generators/coroutines that are 'yield from'ing
each other, then resuming the stack works like:
- call send() on the outermost generator
- this enters _PyEval_EvalFrameDefault, which re-executes the
YIELD_FROM opcode
- which calls send() on the next generator
- which enters _PyEval_EvalFrameDefault, which re-executes the
YIELD_FROM opcode
- ...etc.
However, every time we enter _PyEval_EvalFrameDefault, the first thing
we do is to check for pending signals, and if there are any then we
run the signal handler. And if it raises an exception, then we
immediately propagate that exception *instead* of starting to execute
bytecode. This means that e.g. a SIGINT at the wrong moment can "break
the chain" – it can be raised in the middle of our yield from chain,
with the bottom part of the stack abandoned for the garbage collector.
The fix is pretty simple: there's already a special case in
_PyEval_EvalFrameEx where it skips running signal handlers if the next
opcode is SETUP_FINALLY. (I don't see how this accomplishes anything
useful, but that's another story.) If we extend this check to also
skip running signal handlers when the next opcode is YIELD_FROM, then
that closes the hole – now the exception can only be raised at the
innermost stack frame.
This shouldn't have any performance implications, because the opcode
check happens inside the "slow path" after we've already determined
that there's a pending signal or something similar for us to process;
the vast majority of the time this isn't true and the new check
doesn't run at all.
Steve Dower [Wed, 17 May 2017 20:06:39 +0000 (13:06 -0700)]
Fixes encodings in vcxproj files and adds script to automatically do it. (#1631)
Steve Dower [Wed, 17 May 2017 20:06:11 +0000 (13:06 -0700)]
Adds lib.pyproj file to solution (#1633)
* Adds lib.pyproj file to solution so that VS with Python support can open all the files in the standard library.
* Remove unexpected solution configuration.
* Remove lib.pyproj from solution to avoid memory issues on VS 2015.
Dong-hee Na [Wed, 17 May 2017 19:00:51 +0000 (04:00 +0900)]
bpo-30149: Fix partialmethod without explicit self parameter (#1308)
Victor Stinner [Wed, 17 May 2017 18:58:50 +0000 (11:58 -0700)]
bpo-30387: Fix warning in test_threading (#1634)
test_is_alive_after_fork() now joins directly the thread to avoid the
following warning added by bpo-30357:
Warning -- threading_cleanup() failed to cleanup 0 threads
after 2 sec (count: 0, dangling: 21)
Use also a different exit code to catch generic exit code 1.
Xiang Zhang [Wed, 17 May 2017 13:04:00 +0000 (21:04 +0800)]
bpo-30301: Fix AttributeError when using SimpleQueue.empty() (#1601)
Under *spawn* and *forkserver* start methods, SimpleQueue.empty() could
raise AttributeError due to not setting _poll in __setstate__.
csabella [Tue, 16 May 2017 22:28:02 +0000 (18:28 -0400)]
bpo-30211: bdb: add docstrings (#1350)
Nathaniel J. Smith [Tue, 16 May 2017 21:12:11 +0000 (14:12 -0700)]
bpo-30038: fix race condition in signal delivery + wakeup fd (#1082)
Before, it was possible to get the following sequence of
events (especially on Windows, where the C-level signal handler for
SIGINT is run in a separate thread):
- SIGINT arrives
- trip_signal is called
- trip_signal writes to the wakeup fd
- the main thread wakes up from select()-or-equivalent
- the main thread checks for pending signals, but doesn't see any
- the main thread drains the wakeup fd
- the main thread goes back to sleep
- trip_signal sets is_tripped=1 and calls Py_AddPendingCall to notify
the main thread the it should run the Python-level signal handler
- the main thread doesn't notice because it's asleep
This has been causing repeated failures in the Trio test suite:
https://github.com/python-trio/trio/issues/119
Mariatta [Tue, 16 May 2017 20:48:25 +0000 (13:48 -0700)]
bpo-30380: Pin the version of Sphinx used to build the documentation (GH-1612)
Serhiy Storchaka [Tue, 16 May 2017 20:18:09 +0000 (23:18 +0300)]
bpo-30380: Fix Sphinx 1.6.1 warnings. (#1613)
* Use explicit numbering for footnotes referred by explicit number.
* Restore missed footnote reference in stdtypes.rst.
* Fix literal strings formatting in howto/urllib2.rst.
* Update susp-ignored.csv for zipapp.rst.
* Fix suspicious mark up in Misc/NEWS.
Dominik Miedziński [Tue, 16 May 2017 16:40:17 +0000 (18:40 +0200)]
Fix ModuleNotFoundError typo in import reference (#1606)
Serhiy Storchaka [Tue, 16 May 2017 12:16:15 +0000 (15:16 +0300)]
bpo-30375: Correct the stacklevel of regex compiling warnings. (#1595)
Warnings emitted when compile a regular expression now always point
to the line in the user code. Previously they could point into inners
of the re module if emitted from inside of groups or conditionals.
Berker Peksag [Tue, 16 May 2017 09:36:45 +0000 (12:36 +0300)]
bpo-29898: Fix incorrect env variable name (GH-1576)
It should read PYTHONLEGACYWINDOWSSTDIO as stated
in section "Add legacy mode" in PEP 528.