Serhiy Storchaka [Sun, 25 Jun 2017 04:33:01 +0000 (07:33 +0300)]
bpo-30746: Prohibited the '=' character in environment variable names (#2382)
in `os.putenv()` and `os.spawn*()`.
Antoine Pitrou [Sun, 25 Jun 2017 01:21:49 +0000 (03:21 +0200)]
Update `make patchcheck` for blurb and NEWS.d (#2381)
Brett Cannon [Sat, 24 Jun 2017 23:51:23 +0000 (16:51 -0700)]
Check the whitespace of pull requests on Travis (GH-2367)
Antoine Pitrou [Sat, 24 Jun 2017 17:22:23 +0000 (19:22 +0200)]
Fix bpo-30596: Add close() method to multiprocessing.Process (#2010)
* Fix bpo-30596: Add close() method to multiprocessing.Process
* Raise ValueError if close() is called before the Process is finished running
* Add docs
* Add NEWS blurb
Serhiy Storchaka [Sat, 24 Jun 2017 13:14:08 +0000 (16:14 +0300)]
bpo-30745: Fix compiler warnings introduced in bpo-30730. (#2376)
Johan de Jager [Sat, 24 Jun 2017 05:18:54 +0000 (07:18 +0200)]
Fix a typo in a comment in coroutines.py (GH-2267)
defiend -> defined
INADA Naoki [Sat, 24 Jun 2017 00:03:19 +0000 (09:03 +0900)]
bp-29304: Simplify dictobject.c (GH-2347)
replace `(i << 2) + 1` with `i*5`
csabella [Sat, 24 Jun 2017 00:00:58 +0000 (20:00 -0400)]
bpo-24813: IDLE: Add default title to help_about (#2366)
Patch by Cheryl Sabella.
Victor Stinner [Fri, 23 Jun 2017 23:08:56 +0000 (01:08 +0200)]
bpo-30726: expat: Fix compiler warnings on Windows 64-bit (#2368)
Explicitly cast on integer downcasting to fix compiler warnings.
(cherry picked from libexpat commit
788bff7a3baad1983b15b17c29e19e1a1a795c48)
Adrian Wielgosik [Fri, 23 Jun 2017 20:35:41 +0000 (13:35 -0700)]
Trivial cleanup: remove redundant variable stores in ceval.c (#2012)
Redundant code leftover from cleanup in #16191: the variable `err` is being written to, even though it wasn't used after that point.
Serhiy Storchaka [Fri, 23 Jun 2017 18:47:39 +0000 (21:47 +0300)]
bpo-30664: The description of a unittest subtest now preserves the (#2265)
order of keyword arguments of TestCase.subTest().
Alexandru Ardelean [Fri, 23 Jun 2017 17:35:03 +0000 (20:35 +0300)]
bpo-30645: don't append to an inner loop path in imp.load_package() (GH-2268)
Bug didn't manifest itself when importing a module with source as .py files are always the first on the search path. The issue only showed up in bytecode-only packages where the calculated file path would be ``__init__.py/__init__.pyc``.
Patch by Alexandru Ardelean.
Serhiy Storchaka [Fri, 23 Jun 2017 16:39:27 +0000 (19:39 +0300)]
bpo-30730: Prevent environment variables injection in subprocess on Windows. (#2325)
Prevent passing other invalid environment variables and command arguments.
csabella [Fri, 23 Jun 2017 16:00:29 +0000 (12:00 -0400)]
bpo-24813: IDLE: Add icon to help_about (#2335)
Patch by Cheryl Sabella
Victor Stinner [Fri, 23 Jun 2017 13:11:12 +0000 (15:11 +0200)]
bpo-21071: struct.Struct.format type is now str (#845)
Victor Stinner [Fri, 23 Jun 2017 13:08:55 +0000 (15:08 +0200)]
bpo-30604: Skip CoExtra tests if ctypes is missing (#2356)
Victor Stinner [Fri, 23 Jun 2017 13:04:46 +0000 (15:04 +0200)]
bpo-30602: Fix lastarg in os.spawnve() (#2287)
Fix a regression introduced by myself in the commit
526b22657cb18fe79118c2ea68511aca09430c2c.
Segev Finer [Fri, 23 Jun 2017 10:45:01 +0000 (13:45 +0300)]
bpo-30726: Fix elementtree warnings on Windows due to expat upgrade (#2319)
* bpo-30726: Fix elementtree warnings on Windows
Caused by usage of `getenv` which should be safe. And a few integer
truncations which should also be ok.
* bpo-30726: Don't ignore libexpat warnings which haypo intends to fix upstream
Serhiy Storchaka [Fri, 23 Jun 2017 10:36:36 +0000 (13:36 +0300)]
bpo-30727: Fix a race condition in test_threading. (#2334)
Victor Stinner [Fri, 23 Jun 2017 08:09:34 +0000 (10:09 +0200)]
bpo-30726: PCbuild _elementtree: remove duplicate defines (#2348)
bpo-30726, bpo-29591: libexpat 2.2.1 of Modules/expat/ now uses
a winconfig.h configuration file which already defines:
* XML_NS
* XML_DTD
* BYTEORDER=1234
* XML_CONTEXT_BYTES=1024
* HAVE_MEMMOVE
Remove these defines from PCbuild/_elementtree.vcxproj to prevent
compiler warnings.
Co-Authored-By: Jeremy Kloth <jeremy.kloth@gmail.com>
INADA Naoki [Fri, 23 Jun 2017 06:22:50 +0000 (15:22 +0900)]
bpo-29304: simplify lookdict_index() function. (GH-2273)
Benjamin Peterson [Fri, 23 Jun 2017 05:31:08 +0000 (22:31 -0700)]
bpo-30736: upgrade to Unicode 10.0 (#2344)
Straightforward. While we're at it, though, strip trailing whitespace from generated tables.
_ = NaN [Fri, 23 Jun 2017 03:54:35 +0000 (11:54 +0800)]
bpo-30709: Improve code example in Descriptor HowTo doc (GH-2339)
larryhastings [Thu, 22 Jun 2017 17:29:02 +0000 (10:29 -0700)]
Add "Misc/NEWS.d" directory tree for "blurb". (GH-2316)
Add "Misc/NEWS.d" directory tree for "blurb".
CPython workflow is changing! We're going to start using "blurb"
to manage Misc/NEWS entries:
https://github.com/python/core-workflow
(This will be a big win for release managers, honest.)
This checkin simply populates the "Misc/NEWS.d" subdirectory tree
so that people can start putting their news entries in there.
No other changes (yet).
khyox [Thu, 22 Jun 2017 13:14:57 +0000 (15:14 +0200)]
bpo-30619: Clarify typing.Union documentation (GH-2326)
When a class and its subclass are present, the latter is skipped.
Gregory P. Smith [Thu, 22 Jun 2017 06:41:13 +0000 (23:41 -0700)]
bpo-29212: Fix the ugly repr() ThreadPoolExecutor thread name. (#2315)
bpo-29212: Fix the ugly ThreadPoolExecutor thread name.
Fixes the newly introduced ugly default thread name for concurrent.futures
thread.ThreadPoolExecutor threads. They'll now resemble the old <=3.5
threading default Thread-x names by being named ThreadPoolExecutor-y_n.
terryjreedy [Thu, 22 Jun 2017 02:14:23 +0000 (22:14 -0400)]
Fix typo in idlelib.config_key.py (#2322)
Dino Viehland [Wed, 21 Jun 2017 21:44:36 +0000 (14:44 -0700)]
bpo-30604: clean up co_extra support (#2144)
bpo-30604: port fix from 3.6 dropping binary compatibility tweaks
haney [Wed, 21 Jun 2017 18:18:21 +0000 (11:18 -0700)]
bpo-30183: Fixes HP-UX cc compilation error in pytime.c (#1351)
* bpo-30183: Fixes HP-UX cc compilation error in pytime.c
HP-UX does not support the CLOCK_MONOTONIC identifier, and will fail to
compile:
"Python/pytime.c", line 723: error #2020: identifier
"CLOCK_MONOTONIC" is undefined
const clockid_t clk_id = CLOCK_MONOTONIC;
Add a new section for __hpux that calls 'gethrtime()' instead of
'clock_gettime()'.
* bpo-30183: Removes unnecessary return
Dong-hee Na [Wed, 21 Jun 2017 16:52:32 +0000 (01:52 +0900)]
bpo-30616: Functional API of enum allows to create empty enums. (#2304)
* bpo-30616: Functional API of enum allows to create empty enums.
* Update NEWS
move addition to avoid conflict
Victor Stinner [Wed, 21 Jun 2017 12:39:22 +0000 (14:39 +0200)]
bpo-30694: Upgrade Modules/expat/ to libexpat 2.2.1 (#2300)
New file: Modules/expat/siphash.h.
KunYuChen [Wed, 21 Jun 2017 04:30:45 +0000 (12:30 +0800)]
Fix trivial typo in idlelib/config.py (GH-2309)
Comceptually -> Conceptually
Daniel Porteous [Wed, 21 Jun 2017 00:21:48 +0000 (10:21 +1000)]
Fix typo in 3.7 whatsnew (#2308)
dong-jy [Tue, 20 Jun 2017 20:07:20 +0000 (04:07 +0800)]
Fix trivial typo in json module docstring (GH-2274)
Kojo Idrissa [Tue, 20 Jun 2017 19:32:00 +0000 (14:32 -0500)]
bpo-29933: Improve set_write_buffer_limits description (GH-2262)
Improve the description of the high and low parameters for set_write_buffer_limits.
Also fixed a small grammatical issue.
Victor Stinner [Tue, 20 Jun 2017 15:46:36 +0000 (17:46 +0200)]
bpo-30054: Expose tracemalloc C API (#1236)
* Make PyTraceMalloc_Track() and PyTraceMalloc_Untrack() functions
public (remove the "_" prefix)
* Remove the _PyTraceMalloc_domain_t type: use directly unsigned
int.
* Document methods
Note: methods are already tested in test_tracemalloc.
Serhiy Storchaka [Tue, 20 Jun 2017 14:13:29 +0000 (17:13 +0300)]
bpo-29755: Fixed the lgettext() family of functions in the gettext module. (#2266)
They now always return bytes.
Updated the gettext documentation.
Victor Stinner [Tue, 20 Jun 2017 14:09:22 +0000 (16:09 +0200)]
bpo-30500: Fix the NEWS entry (#2293)
splithost() expects an URL starting with "//" not with "http://".
Sanyam Khurana [Tue, 20 Jun 2017 13:31:32 +0000 (19:01 +0530)]
bpo-30597: Show expected input in custom 'print' error message. (#2009)
postmasters [Tue, 20 Jun 2017 13:02:44 +0000 (06:02 -0700)]
urllib: Simplify splithost by calling into urlparse. (#1849)
The current regex based splitting produces a wrong result. For example::
http://abc#@def
Web browsers parse that URL as ``http://abc/#@def``, that is, the host
is ``abc``, the path is ``/``, and the fragment is ``#@def``.
Motoki Naruse [Tue, 20 Jun 2017 08:10:12 +0000 (17:10 +0900)]
bpo-30629: Add Motoki Naruse to Misc/ACKS (#2284)
Steve Dower [Mon, 19 Jun 2017 17:34:25 +0000 (10:34 -0700)]
bpo-30687: Fixes build scripts to find msbuild.exe and stop relying on vcvarsall.bat (#2252)
* Fixes build scripts to find msbuild.exe and stop relying on vcvarsall.bat
Also fixes bdist_wininst.vcxproj to use correct version in generated name.
Nick Coghlan [Sun, 18 Jun 2017 02:29:42 +0000 (12:29 +1000)]
bpo-30565: Add PYTHONCOERCECLOCALE=warn runtime flag (GH-2260)
- removes PY_WARN_ON_C_LOCALE build time flag
- locale coercion and compatibility warnings are now always compiled
in, but are off by default
- adds PYTHONCOERCECLOCALE=warn runtime option to aid in
debugging potentially locale related compatibility problems
Due to not-yet-resolved test failures on *BSD systems (including
Mac OS X), this also temporarily disables UTF-8 as a locale coercion
target, and skips testing the interpreter's behavior in the POSIX locale.
Ned Deily [Sat, 17 Jun 2017 03:34:32 +0000 (23:34 -0400)]
bpo-30038: add Misc/NEWS entry. (#2258)
Ned Deily [Sat, 17 Jun 2017 02:43:31 +0000 (22:43 -0400)]
bpo-23894: add Misc/NEWS entry. (#2256)
Motoki Naruse [Sat, 17 Jun 2017 01:15:25 +0000 (10:15 +0900)]
bpo-30629: Remove second call of str.lower() in html.parser.parse_endtag. (#2099)
elem is the result of .lower() 6 lines above the handle_endtag call.
Patch by Motoki Naruse
Victor Stinner [Fri, 16 Jun 2017 12:38:34 +0000 (14:38 +0200)]
Revert "bpo-30673: test.bat: add -t option (timeout) (#2211)" (#2245)
This reverts commit
258bfc462b1e58689b43f662a10e44ece3a10bef.
Louie Lu [Fri, 16 Jun 2017 11:15:28 +0000 (19:15 +0800)]
bpo-30523: Add --list-cases unittest (#2243)
* bpo-30523: Add --list-cases unittest
* Addressed haypo's request
* Addressed haypo's request
ericvsmith [Fri, 16 Jun 2017 10:19:32 +0000 (06:19 -0400)]
bpo-30682: Removed a too-strict assertion that failed for certain f-strings. (#2232)
This caused a segfault on eval("f'\\\n'") and eval("f'\\\r'") in debug build.
mlouielu [Fri, 16 Jun 2017 09:36:19 +0000 (17:36 +0800)]
bpo-30523: regrtest: Add --list-cases option (#2238)
* bpo-30523: regrtest: Add --list-cases option
* bpo-30523: Enhance --list-cases
* Add get_abs_module() function, use it in list_cases()
* list_cases() now logs skipped tests into stderr
* Remove unused doctest
Victor Stinner [Fri, 16 Jun 2017 06:59:01 +0000 (08:59 +0200)]
bpo-29783: Replace codecs.open() with io.open() (#599)
terryjreedy [Fri, 16 Jun 2017 05:54:57 +0000 (01:54 -0400)]
Add IDLE items to NEWS and idlelib/NEWS.txt (#2239)
Zachary Ware [Fri, 16 Jun 2017 03:34:59 +0000 (22:34 -0500)]
bpo-30450: Add NEWS and whatsnew (GH-2236)
Xiang Zhang [Fri, 16 Jun 2017 03:20:07 +0000 (11:20 +0800)]
bpo-30176: Add missing curses cell attributes constants (GH-1302)
Segev Finer [Fri, 16 Jun 2017 03:12:05 +0000 (06:12 +0300)]
bpo-30631: Silence MSVC warnings in third-party code (GH-1963)
Zachary Ware [Fri, 16 Jun 2017 03:08:51 +0000 (22:08 -0500)]
bpo-30450: Pull Windows dependencies from GitHub rather than svn (GH-1783)
The Windows build now depends on Python 3.6 to fetch externals, but it will be downloaded via NuGet (which is downloaded via PowerShell) if it is not available via `py -3.6`. This means the only thing that must be installed on a modern Windows box to do a full build of CPython with all extensions is Visual Studio.
Also fixes an outdated note about _lzma in PCbuild/readme.txt
Jonathan Eunice [Fri, 16 Jun 2017 02:19:43 +0000 (22:19 -0400)]
bpo-30620: Remove dead lines from textwrap.dedent (GH-2064)
Jonathan Eunice [Fri, 16 Jun 2017 02:18:54 +0000 (22:18 -0400)]
bpo-30603: add tests to textwrap.dedent (GH-2206)
* test dedent with declining indent level
* add textwrap.dedent test cases
Victor Stinner [Thu, 15 Jun 2017 18:19:45 +0000 (20:19 +0200)]
bpo-30673: test.bat: add -t option (timeout) (#2211)
Serhiy Storchaka [Thu, 15 Jun 2017 17:54:38 +0000 (20:54 +0300)]
bpo-30626: Fix error handling in PyImport_Import(). (#2103)
In rare circumstances PyImport_Import() could return NULL without raising
an error.
Sylvain [Thu, 15 Jun 2017 15:05:23 +0000 (17:05 +0200)]
bpo-20627: Fix error message when keyword arguments are used (#2115)
Victor Stinner [Thu, 15 Jun 2017 13:30:40 +0000 (15:30 +0200)]
bpo-30602: Fix refleak in os.spawnv() (#2212)
When os.spawnv() fails while handling arguments, free correctly
argvlist: pass lastarg+1 rather than lastarg to free_string_array()
to also free the first item.
Nick Coghlan [Thu, 15 Jun 2017 09:11:39 +0000 (19:11 +1000)]
bpo-28180: Standard stream & FS encoding differ on Mac OS X (GH-2208)
In the C locale on Mac OS X, the default filesystem encoding
used for operating system interfaces is UTF-8, but the
default encoding used on the standard streams is still ASCII.
Setting the POSIX locale also behaves differently from setting
other locales on Mac OS X, so skip that in the test suite for now.
Victor Stinner [Wed, 14 Jun 2017 22:54:36 +0000 (00:54 +0200)]
bpo-29591: Upgrade Modules/expat to libexpat 2.2 (#2164)
* bpo-29591: Upgrade Modules/expat to libexpat 2.2
* bpo-29591: Restore Python changes on expat
* bpo-29591: Remove expat config of unsupported platforms
Remove the configuration (Modules/expat/*config.h) of unsupported
platforms:
* Amiga
* MacOS Classic on PPC32
* Open Watcom
* bpo-29591: Remove useless XML_HAS_SET_HASH_SALT
The XML_HAS_SET_HASH_SALT define of Modules/expat/expat.h became
useless since our local expat copy was upgrade to expat 2.1 (it's now
expat 2.2.0).
Victor Stinner [Wed, 14 Jun 2017 22:44:05 +0000 (00:44 +0200)]
bpo-30284: Fix regrtest for out of tree build (#1481)
Use a build/ directory in the build directory, not in the source
directory, since the source directory may be read-only and must not
be modified.
Fallback on the source directory if the build directory is not
available (missing "abs_builddir" sysconfig variable).
Milan Oberkirch [Wed, 14 Jun 2017 21:34:50 +0000 (07:34 +1000)]
bpo-30436: Raise ModuleNotFoundError for importlib.util.find_spec() when parent isn't a package (GH-1899)
Previously AttributeError was raised, but that's not very reflective of the fact that the requested module can't be found since the specified parent isn't actually a package.
terryjreedy [Wed, 14 Jun 2017 19:43:15 +0000 (15:43 -0400)]
bpo-15786: Fix IDLE autocomplete return problem. (#2198)
Before, <return> would not, for instance, complete 're.c' to 're.compile' even with 'compile' highlighted. Now it does. Before, <return> was inserted into text, which in Shell meant compile() and possibly execute. Now cursor is left after completion.
Victor Stinner [Wed, 14 Jun 2017 16:48:32 +0000 (18:48 +0200)]
bpo-30231: Remove skipped test_imaplib tests (#1419)
The public cyrus.andrew.cmu.edu IMAP server (port 993) doesn't accept
TLS connection using our self-signed x509 certificate. Remove the two
tests which are already skipped.
Write a new test_certfile_arg_warn() unit test for the certfile
deprecation warning.
mlouielu [Wed, 14 Jun 2017 15:13:19 +0000 (23:13 +0800)]
bpo-15786: IDLE: Fix mouse clicks on autocompletetion window (#1811)
The root problem was non-check for hide_event. When user clicks
on autocomplete window (acw), root widget gets focusOut event, then triggers hide_window to
close the acw. It should only be hide when acw is active, and acw didn't
get focus at FocusOut event (this event bind on acw and widget), or when
widget get a ButtonPress event (this event only bind on widget).
MacOS froze after double click on acw because when
doubleclick_event try to hide window at the end, hide_window function
destory whole acw, but tkinter didn't get focus back to widget. So set focus
on widget first, then destory acw.
Windows could not respond on double click event, because of the misbehavior
of Configure event. When acw was shown, tkinter called winconfig
event multiple times. That caused tkinter to not response to double
click event. When on Windows, unbind Configure event first
time get into winconfig_event to prevent multiple call of this event.
csabella [Wed, 14 Jun 2017 13:32:06 +0000 (09:32 -0400)]
Fix trivial typo in Readme (GH-2185)
Replace platform with platforms.
Victor Stinner [Wed, 14 Jun 2017 12:26:21 +0000 (14:26 +0200)]
bpo-30602: Fix refleak in os.spawnve() (#2184)
When os.spawnve() fails while handling arguments, free correctly
argvlist: pass lastarg+1 rather than lastarg to free_string_array()
to also free the first item.
Victor Stinner [Wed, 14 Jun 2017 09:55:17 +0000 (11:55 +0200)]
bpo-30649: Revert utime delta in test_os (#2176)
PPC64 Fedora 3.x buildbot requires at least a delta of 14 ms: revert
the utime delta to 20 ms.
I tried 10 ms, but test_os failed on the PPC64 Fedora 3.x buildbot.
terryjreedy [Wed, 14 Jun 2017 01:32:16 +0000 (21:32 -0400)]
bpo-25514: Improve IDLE's connection refused message (#2177)
When IDLE fail to start because the socket connection fails, direct people to a new subsection of the IDLE doc listing various causes and remedies.
Victor Stinner [Tue, 13 Jun 2017 21:48:47 +0000 (23:48 +0200)]
bpo-30595: Increase test_queue_feeder_donot_stop_onexc() timeout (#2148)
_test_multiprocessing.test_queue_feeder_donot_stop_onexc() now uses a
timeout of 1 second on Queue.get(), instead of 0.1 second, for slow
buildbots.
Victor Stinner [Tue, 13 Jun 2017 21:48:27 +0000 (23:48 +0200)]
bpo-30649: test_os tolerates 50 ms delta for utime (#2156)
On Windows, tolerate a delta of 50 ms instead of 20 ms in
test_utime_current() and test_utime_current_old() of test_os.
On other platforms, reduce the delta from 20 ms to 10 ms.
Ben Hoyt [Tue, 13 Jun 2017 19:20:51 +0000 (15:20 -0400)]
bpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-2173)
Jonathan Eunice [Tue, 13 Jun 2017 19:04:10 +0000 (15:04 -0400)]
bpo-30603: Add test case to textwrap.dedent (GH-2014)
terryjreedy [Tue, 13 Jun 2017 18:40:10 +0000 (14:40 -0400)]
bpo-27922: Stop gui flash from idle_test.test_parenmatch (#2171)
For unknown reasons, this does not work when running leak tests.
Emily Morehouse [Tue, 13 Jun 2017 17:58:18 +0000 (11:58 -0600)]
bpo-30656: Fix Python C API Module Objects documentation (GH-2170)
`PyModule_New()` now refers to `PyModule_NewObject()`
Sanyam Khurana [Tue, 13 Jun 2017 17:11:14 +0000 (22:41 +0530)]
bpo-24744: Raises error in pkgutil.walk_packages if path is str (#1926)
bpo-24744: Raise error in pkgutil.walk_packages if path is str
Previously an empty result list was accidentallly returned, since the
code iterated over the string as if it were the expected list of paths,
and of course found nothing.
Antoine Pitrou [Tue, 13 Jun 2017 15:10:39 +0000 (17:10 +0200)]
bpo-24484: Avoid race condition in multiprocessing cleanup (#2159)
* bpo-24484: Avoid race condition in multiprocessing cleanup
The finalizer registry can be mutated while inspected by multiprocessing
at process exit.
* Use test.support.start_threads()
* Add Misc/NEWS
terryjreedy [Tue, 13 Jun 2017 14:52:29 +0000 (10:52 -0400)]
Fix ref leak in idle_test.test_macosx (#2163)
messi Liao [Tue, 13 Jun 2017 14:30:43 +0000 (22:30 +0800)]
bpo-30650: Fixed a syntax error: missed right parentheses (#2154)
Nick Coghlan [Tue, 13 Jun 2017 12:49:44 +0000 (22:49 +1000)]
bpo-28180: assume UTF-8 for Mac OS X PEP 538 tests (GH-2130)
mlouielu [Tue, 13 Jun 2017 12:29:44 +0000 (20:29 +0800)]
bpo-30642: IDLE: Fix test_query refleak (#2147)
Patch by Louie Lu.
Victor Stinner [Tue, 13 Jun 2017 11:32:31 +0000 (13:32 +0200)]
bpo-30635: Fix refleak in test_c_locale_coercion (#2126)
When checking for reference leaks, test_c_locale_coercion is run
multiple times and so _LocaleCoercionTargetsTestCase.setUpClass() is
called multiple times. setUpClass() appends new value at each call,
so it looks like a reference leak.
Moving the setup from setUpClass() to setUpModule() avoids
this, eliminating the false alarm.
Victor Stinner [Tue, 13 Jun 2017 09:49:44 +0000 (11:49 +0200)]
bpo-28180: Fix test_capi.test_forced_io_encoding() (#2155)
Don't run Python in an empty environment, but copy the current
environment and set PYTHONIOENCODING. So the test works also on
Python compiled in shared mode (using libpython).
Antoine Pitrou [Tue, 13 Jun 2017 08:14:09 +0000 (10:14 +0200)]
Mention how to disable signal fd wakeup (#2140)
Antoine Pitrou [Tue, 13 Jun 2017 07:46:06 +0000 (09:46 +0200)]
bpo-30643: Fix race condition in signal wakeup in forkserver (followup to PR #1989) (#2139)
* Fix race condition in signal wakeup in forkserver (followup to PR #1989)
There's an admittedly well-known race condition where ECHILD can arrive
just before the C function epoll_wait() and the latter wouldn't therefore
return EINTR. The solution is to use set_wakeup_fd(), which was designed
to avoid such race conditions.
* Reset wakeup fd in child
Andrew Kuchling [Tue, 13 Jun 2017 05:31:01 +0000 (01:31 -0400)]
bpo-6519: Improve Python Input Output Tutorial (GH-2143)
Move up the discussion about 'with' keyword, so it appears earlier in the document.
Stéphane Wirtel [Tue, 13 Jun 2017 01:31:11 +0000 (03:31 +0200)]
bpo-30636: Fix the indentation for the help (#2131)
Antoine Pietri [Mon, 12 Jun 2017 16:40:13 +0000 (18:40 +0200)]
bpo-30177: add NEWS entry (#2135)
Antoine Pitrou [Mon, 12 Jun 2017 13:28:19 +0000 (15:28 +0200)]
Fix bpo-30589: improve Process.exitcode with forkserver (#1989)
* Fix bpo-30589: improve Process.exitcode with forkserver
When the child is killed, Process.exitcode should return -signum, not 255.
* Add Misc/NEWS
Giampaolo Rodola [Mon, 12 Jun 2017 12:43:40 +0000 (14:43 +0200)]
bpo-30624 remaining bare except (#2108)
bpo-30624 / selectors: use bare 'except' clause instead of 'except
Exception'
Stéphane Wirtel [Mon, 12 Jun 2017 11:30:33 +0000 (13:30 +0200)]
bpo-30636: Add PYTHONCOERCECLOCALE to the help of the command line (GH-2125)
mircea-cosbuc [Mon, 12 Jun 2017 06:43:41 +0000 (08:43 +0200)]
[email] bpo-29478: Fix passing max_line_length=None from Compat32 policy (GH-595)
If max_line_length=None is specified while using the Compat32 policy,
it is no longer ignored.
Serhiy Storchaka [Mon, 12 Jun 2017 05:25:04 +0000 (08:25 +0300)]
bpo-28994: Fixed errors handling in atexit._run_exitfuncs(). (#2034)
The traceback no longer displayed for SystemExit raised in a callback registered by atexit.
suketa [Mon, 12 Jun 2017 01:42:59 +0000 (10:42 +0900)]
bpo-30621: Update Input Output Tutorial Example(GH-2074)
import json before using json module
Yury Selivanov [Sun, 11 Jun 2017 14:46:35 +0000 (16:46 +0200)]
Revert "bpo-29406: asyncio SSL contexts leak sockets after calling close with certain servers (#409)" (#2111)
This reverts commit
a608d2d5a7f1aabe9bcbfc220135c5e126189390.
Yury Selivanov [Sun, 11 Jun 2017 13:49:18 +0000 (13:49 +0000)]
bpo-30508: Don't log exceptions if Task/Future "cancel()" method called (#2050)