]> granicus.if.org Git - python/log
python
7 years ago[3.5] bpo-30726: Also fix pyexpat.vcxproj (GH-2375) (#2571)
Segev Finer [Tue, 4 Jul 2017 18:39:28 +0000 (21:39 +0300)]
[3.5] bpo-30726: Also fix pyexpat.vcxproj (GH-2375) (#2571)

(cherry picked from commit 7526cadd64566725ffc56071a7208828a46ddbd8)

7 years agoRemove outdated FOX from GUI FAQ (GH-2538)
Berker Peksag [Tue, 4 Jul 2017 06:28:02 +0000 (09:28 +0300)]
Remove outdated FOX from GUI FAQ (GH-2538)

FXpy doesn't have a Python 3 port and it only
supports Python 2.2 and older versions.

Reported by Alex Walters on docs@p.o.

(cherry picked from commit d3ed2877a798d07df75422afe136b4727e500c99)

7 years ago[3.5] bpo-30441: Fix bug when modifying os.environ while iterating over it (GH-2409...
Serhiy Storchaka [Tue, 4 Jul 2017 04:55:45 +0000 (07:55 +0300)]
[3.5] bpo-30441: Fix bug when modifying os.environ while iterating over it (GH-2409). (#2557)

(cherry picked from commit 8a8d28501fc8ce25926d168f1c657656c809fd4c)

7 years ago[3.5] bpo-29512, bpo-30764, bpo-30776: Backport regrtest enhancements from 3.6 to...
Victor Stinner [Mon, 3 Jul 2017 11:16:57 +0000 (13:16 +0200)]
[3.5] bpo-29512, bpo-30764, bpo-30776: Backport regrtest enhancements from 3.6 to 3.5 (#2540)

* [3.6] bpo-29512, bpo-30776: Backport regrtest enhancements from master to 3.6 (#2513)

* bpo-29512: Add test.bisect, bisect failing tests (#2452)

Add a new "python3 -m test.bisect" tool to bisect failing tests.

It can be used to find which test method(s) leak references, leak
files, etc.
(cherry picked from commit 84d9d14a1fa395fbd21262ba195490be25a7b3bc)

* bpo-30776: regrtest: reduce memleak false positive (#2484)

Only report a leak if each run leaks at least one memory block.
(cherry picked from commit beeca6e1e5fd01531b1db7059498b13d07dca525)

(cherry picked from commit a3ca94d0504157a112a1f89bfe8be1307116fc73)

* bpo-30764: Fix regrtest --fail-env-changed --forever (#2536) (#2539)

--forever now stops if a fail changes the environment.
(cherry picked from commit 5e87592fd12e0b7c41edc11d4885ed7298d5063b)
(cherry picked from commit 4132adb4b8f90893d8f19ff46edff56f189faca0)

7 years ago[3.5] bpo-29933: Improve set_write_buffer_limits description (GH-2262) (GH-2533)
Kojo Idrissa [Sun, 2 Jul 2017 02:47:56 +0000 (11:47 +0900)]
[3.5] bpo-29933: Improve set_write_buffer_limits description (GH-2262) (GH-2533)

Improve the description of the high and low parameters for set_write_buffer_limits.
Also fixed a small grammatical issue.
(cherry picked from commit 5200a7c7f9ea65a96330c5f276f4acc6ec70854e)

7 years agobpo-30280: Cleanup threads in ayncio tests (#2501) (#2512)
Victor Stinner [Fri, 30 Jun 2017 15:20:31 +0000 (17:20 +0200)]
bpo-30280: Cleanup threads in ayncio tests (#2501) (#2512)

* bpo-30280: asyncio now cleans up threads

asyncio base TestCase now uses threading_setup() and
threading_cleanup() of test.support to cleanup threads.

* asyncio: Fix TestBaseSelectorEventLoop cleanup

bpo-30280: TestBaseSelectorEventLoop of
test.test_asyncio.test_selector_events now correctly closes the event
loop: cleanup its executor to not leak threads.

Don't override the close() method of the event loop, only override
the_close_self_pipe() method.

(cherry picked from commit b9030674624c181d6e9047cdb14ad65bb6c84c66)

7 years agobpo-30813: Fix unittest when hunting refleaks (#2502) (#2506)
Victor Stinner [Fri, 30 Jun 2017 11:12:15 +0000 (13:12 +0200)]
bpo-30813: Fix unittest when hunting refleaks (#2502) (#2506)

bpo-11798, bpo-16662, bpo-16935, bpo-30813: Skip
test_discover_with_module_that_raises_SkipTest_on_import() and
test_discover_with_init_module_that_raises_SkipTest_on_import() of
test_unittest when hunting reference leaks using regrtest.
(cherry picked from commit e4f9a2d2be42d5a2cdd624f8ed7cdf5028c5fbc3)

7 years ago[3.5] bpo-30807: signal.setitimer() may disable the timer by mistake (GH-2493) (...
Antoine Pitrou [Fri, 30 Jun 2017 08:54:32 +0000 (10:54 +0200)]
[3.5] bpo-30807: signal.setitimer() may disable the timer by mistake (GH-2493) (#2498)

* bpo-30807: signal.setitimer() may disable the timer by mistake

* Add NEWS blurb
(cherry picked from commit 729780a810bbcb12b245a1b652302a601fc9f6fd)

7 years ago[3.5] Clear potential ref cycle between Process and Process target (GH-2470) (#2472)
Antoine Pitrou [Wed, 28 Jun 2017 11:15:58 +0000 (13:15 +0200)]
[3.5] Clear potential ref cycle between Process and Process target (GH-2470) (#2472)

* Clear potential ref cycle between Process and Process target

Besides Process.join() not being called, this was an indirect cause of bpo-30775.
The threading module already does this.

* Add issue reference.
(cherry picked from commit 79d37ae979a65ada0b2ac820279ccc3b1cd41ba6)

7 years ago[3.5] bpo-30775: Fix refleaks in test_multiprocessing (GH-2467) (#2469)
Antoine Pitrou [Wed, 28 Jun 2017 09:50:44 +0000 (11:50 +0200)]
[3.5] bpo-30775: Fix refleaks in test_multiprocessing (GH-2467) (#2469)

Forgetting to call Process.join() can keep some resources alive.
(cherry picked from commit a79f8faccf5e26f55e8b9496ad49d2071b5e299c)

7 years ago[3.5] bpo-13617: Reject embedded null characters in wchar* strings. (GH-2302) (#2463)
Serhiy Storchaka [Wed, 28 Jun 2017 07:31:00 +0000 (10:31 +0300)]
[3.5] bpo-13617: Reject embedded null characters in wchar* strings. (GH-2302) (#2463)

Based on patch by Victor Stinner.

Add private C API function _PyUnicode_AsUnicode() which is similar to
PyUnicode_AsUnicode(), but checks for null characters..
(cherry picked from commit f7eae0adfcd4c50034281b2c69f461b43b68db84)

7 years agoClarification to the `break` statement (GH-2453) (GH-2458)
regexaurus [Wed, 28 Jun 2017 02:37:05 +0000 (22:37 -0400)]
Clarification to the `break` statement (GH-2453) (GH-2458)

Clarify that the break statement breaks out of the innermost enclosing for or while loop.
(cherry picked from commit 36fc896740319d2c03aa2054a90a999c162517ef)

7 years ago[3.5] bpo-30708: Add private C API function _PyUnicode_AsWideCharString(). (GH-2285...
Serhiy Storchaka [Tue, 27 Jun 2017 18:52:10 +0000 (21:52 +0300)]
[3.5] bpo-30708: Add private C API function _PyUnicode_AsWideCharString(). (GH-2285) (GH-2443)  (#2448)

And use it instead of PyUnicode_AsWideCharString() if appropriate.

_PyUnicode_AsWideCharString(unicode) is like PyUnicode_AsWideCharString(unicode, NULL), but
raises a ValueError if the wchar_t* string contains null characters.
(cherry picked from commit e613e6add5f07ff6aad5802924596b631b707d2a).
(cherry picked from commit 0edffa3073b551ffeca34952529e7b292f1bd350)

7 years ago[3.5] bpo-30769: Fix reference leak introduced in 7770394 (GH-2416) (#2447)
Emily Morehouse [Tue, 27 Jun 2017 16:08:47 +0000 (10:08 -0600)]
[3.5] bpo-30769: Fix reference leak introduced in 7770394 (GH-2416) (#2447)

7 years ago[3.5] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2442)
Victor Stinner [Tue, 27 Jun 2017 14:35:18 +0000 (16:35 +0200)]
[3.5] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2442)

* bpo-30523: regrtest --list-cases --match (#2401)

* regrtest --list-cases now supports --match and --match-file options.
  Example: ./python -m test --list-cases -m FileTests test_os
* --list-cases now also sets support.verbose to False to prevent
  messages to stdout when loading test modules.
* Add support._match_test() private function.
(cherry picked from commit ace56d583664f855d89d1219ece7c21c2fddcf30)

* bpo-30764: regrtest: add --fail-env-changed option (#2402)

* bpo-30764: regrtest: change exit code on failure

* Exit code 2 if failed tests ("bad")
* Exit code 3 if interrupted

* bpo-30764: regrtest: add --fail-env-changed option

If the option is set, mark a test as failed if it alters the
environment, for example if it creates a file without removing it.

(cherry picked from commit 63f54c68936d648c70ca411661e4208329edcf26)

* bpo-30776: reduce regrtest -R false positives (#2422)

* Change the regrtest --huntrleaks checker to decide if a test file
  leaks or not. Require that each run leaks at least 1 reference.
* Warmup runs are now completely ignored: ignored in the checker test
  and not used anymore to compute the sum.
* Add an unit test for a reference leak.

Example of reference differences previously considered a failure
(leak) and now considered as success (success, no leak):

    [3, 0, 0]
    [0, 1, 0]
    [8, -8, 1]
(cherry picked from commit 48b5c422ffb03affb00c184b9a99e5537be92732)

7 years agobpo-30383: Add NEWS entry for backported regrtest (#2438)
Victor Stinner [Tue, 27 Jun 2017 12:03:12 +0000 (14:03 +0200)]
bpo-30383: Add NEWS entry for backported regrtest (#2438)

7 years ago[3.5] bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to (GH...
Antoine Pitrou [Mon, 26 Jun 2017 20:07:20 +0000 (22:07 +0200)]
[3.5] bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to (GH-2403) (#2419)

* bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to lock

This is especially important if PyThread_acquire_lock() is called reentrantly
(for example from a signal handler).

* Update 2017-06-26-14-29-50.bpo-30765.Q5iBmf.rst

* Avoid core logic when taking the mutex failed.
(cherry picked from commit f84ac420c2af98339678744953869cad3c253281)

7 years agobpo-30764: test_subprocess uses SuppressCrashReport (#2405) (#2411)
Victor Stinner [Mon, 26 Jun 2017 16:05:21 +0000 (18:05 +0200)]
bpo-30764: test_subprocess uses SuppressCrashReport (#2405) (#2411)

bpo-30764, bpo-29335: test_child_terminated_in_stopped_state() of
test_subprocess now uses support.SuppressCrashReport() to prevent the
creation of a core dump on FreeBSD.
(cherry picked from commit cdee3f14f7f4c995e7eedb0bf6a67e260c739f7d)

7 years ago[3.5] bpo-30746: Prohibited the '=' character in environment variable names (GH-2382...
Serhiy Storchaka [Sun, 25 Jun 2017 06:49:40 +0000 (09:49 +0300)]
[3.5] bpo-30746: Prohibited the '=' character in environment variable names (GH-2382) (#2392)

in `os.putenv()` and `os.spawn*()`..
(cherry picked from commit 77703942c5997dff00c48f10df1b29b11645624c)

7 years ago[3.5] Check the whitespace of pull requests on Travis (GH-2367) (GH-2387)
Brett Cannon [Sun, 25 Jun 2017 01:00:08 +0000 (18:00 -0700)]
[3.5] Check the whitespace of pull requests on Travis (GH-2367) (GH-2387)

(cherry picked from commit 70cb1875bb5343e31d7268f4b2d231a5fecdf989)

7 years ago[3.5] bpo-30745: Fix compiler warnings introduced in bpo-30730. (GH-2376) (#2379)
Serhiy Storchaka [Sat, 24 Jun 2017 13:42:44 +0000 (16:42 +0300)]
[3.5] bpo-30745: Fix compiler warnings introduced in bpo-30730. (GH-2376) (#2379)

(cherry picked from commit 0ee32c1)

7 years ago[3.5] Fix a typo in a comment in coroutines.py (GH-2267) (GH-2371)
Mariatta [Sat, 24 Jun 2017 05:50:31 +0000 (22:50 -0700)]
[3.5] Fix a typo in a comment in coroutines.py (GH-2267) (GH-2371)

defiend -> defined
(cherry picked from commit cab469245d7635447c5e04fa6ed860b067dfc26b)

7 years ago[3.5] bpo-30645: don't append to an inner loop path in imp.load_package() (GH-2268...
Brett Cannon [Fri, 23 Jun 2017 18:39:53 +0000 (11:39 -0700)]
[3.5] bpo-30645: don't append to an inner loop path in imp.load_package() (GH-2268) (GH-2365)

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.
(cherry picked from commit c38e32a10061a7c6d54e7e53ffabf7af7998f045)

7 years ago[3.5] bpo-30730: Prevent environment variables injection in subprocess on Windows...
Serhiy Storchaka [Fri, 23 Jun 2017 17:27:02 +0000 (20:27 +0300)]
[3.5] bpo-30730: Prevent environment variables injection in subprocess on Windows. (GH-2325) (#2361)

Prevent passing other invalid environment variables and command arguments..
(cherry picked from commit d174d24a5d37d1516b885dc7c82f71ecd5930700)

7 years ago[3.5] bpo-30726: PCbuild _elementtree: remove duplicate defines (#2348) (#2350)
Victor Stinner [Fri, 23 Jun 2017 13:14:18 +0000 (15:14 +0200)]
[3.5] bpo-30726: PCbuild _elementtree: remove duplicate defines (#2348) (#2350)

* 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>
(cherry picked from commit c8fb58bd7917151e63398587a7fc2126db7c26de)

* 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

(cherry picked from commit 87c65550730a8f85ce339ba197bce4fb7e836619)

7 years ago[3.5] bpo-30727: Fix a race condition in test_threading. (GH-2334) (#2352)
Serhiy Storchaka [Fri, 23 Jun 2017 10:52:22 +0000 (13:52 +0300)]
[3.5] bpo-30727: Fix a race condition in test_threading. (GH-2334) (#2352)

(cherry picked from commit 32cb968)

7 years ago[3.5] bpo-30709: Improve code example in Descriptor HowTo doc (GH-2339) (GH-2341)
Mariatta [Fri, 23 Jun 2017 04:24:33 +0000 (21:24 -0700)]
[3.5] bpo-30709: Improve code example in Descriptor HowTo doc (GH-2339) (GH-2341)

(cherry picked from commit b066edfb1b268e90ea11f45dd1827f46d7ceec88)

7 years ago[3.5] bpo-30619: Clarify typing.Union documentation (GH-2326) (GH-2338)
Mariatta [Fri, 23 Jun 2017 02:18:05 +0000 (19:18 -0700)]
[3.5] bpo-30619: Clarify typing.Union documentation (GH-2326) (GH-2338)

When a class and its subclass are present, the latter is skipped.
(cherry picked from commit 6580c19bbbe7bc9bc0884699afd69184f523b32e)

7 years agoAdd "Misc/NEWS.d" directory tree for "blurb". GH-2330
larryhastings [Thu, 22 Jun 2017 23:01:00 +0000 (16:01 -0700)]
Add "Misc/NEWS.d" directory tree for "blurb". GH-2330

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).

7 years agobpo-30694: Upgrade Modules/expat/ to libexpat 2.2.1 (#2300) (#2314)
Victor Stinner [Wed, 21 Jun 2017 14:05:14 +0000 (16:05 +0200)]
bpo-30694: Upgrade Modules/expat/ to libexpat 2.2.1 (#2300) (#2314)

New file: Modules/expat/siphash.h.
(cherry picked from commit 5ff7132313eb651107b179d20218dfe5d4e47f13)

7 years ago[3.5] bpo-29755: Fixed the lgettext() family of functions in the gettext module....
Serhiy Storchaka [Tue, 20 Jun 2017 15:06:45 +0000 (18:06 +0300)]
[3.5] bpo-29755: Fixed the lgettext() family of functions in the gettext module. (GH-2266) (#2298)

They now always return bytes.

Updated the gettext documentation.
(cherry picked from commit 26cb465)

7 years agobpo-30500: Fix the NEWS entry (#2295)
Victor Stinner [Tue, 20 Jun 2017 14:09:06 +0000 (16:09 +0200)]
bpo-30500: Fix the NEWS entry (#2295)

splithost() expects an URL starting with "//" not with "http://".

7 years agobpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849) (#2290)
Victor Stinner [Tue, 20 Jun 2017 13:33:35 +0000 (15:33 +0200)]
bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849) (#2290)

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``.
(cherry picked from commit 90e01e50ef8a9e6c91f30d965563c378a4ad26de)

7 years ago[3.5] bpo-29887: Test normalization now fails if download fails (GH-905) (#2272)
Mariatta [Tue, 20 Jun 2017 06:31:11 +0000 (23:31 -0700)]
[3.5] bpo-29887: Test normalization now fails if download fails (GH-905) (#2272)

* [3.5] bpo-29887: Test normalization now fails if download fails (GH-905)

* test_normalization fails if download fails

bpo-29887. The test is still skipped if "-u urlfetch" option is not
passed to regrtest (python3 -m test -u urlfetch test_normalization).

* Fix ResourceWarning in test_normalization

bpo-29887: Fix ResourceWarning in test_normalization if tests are
interrupted by CTRL+c.
(cherry picked from commit 722a3af092b94983aa26f5e591fb1b45e2c2a0ff)

* bpo-29887: test_normalization handles PermissionError (#1196)

Skip test_normalization.test_main() if download raises a permission
error.
(cherry picked from commit d13d54748d3a7db023d9db37223ea7d40bb8f8e3)

* no f-strings :(

7 years agobpo-30687: Fixes build scripts to find msbuild.exe and stop relying on vcvarsall...
Steve Dower [Mon, 19 Jun 2017 18:32:34 +0000 (11:32 -0700)]
bpo-30687: Fixes build scripts to find msbuild.exe and stop relying on vcvarsall.bat (#2252) (#2281)

* 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.

7 years ago[3.5] bpo-30383: Backport regrtest and test_regrtest enhancements from master to...
Victor Stinner [Mon, 19 Jun 2017 16:33:21 +0000 (18:33 +0200)]
[3.5] bpo-30383: Backport regrtest and test_regrtest enhancements from master to 3.5 (#2279)

* bpo-30383: regrtest: prepend testdir to sys.path

* bpo-30383: Backport test_regrtest

* regrtest: rename --slow option to --slowest

The old --slow syntax is still accepted.

* regrtest: add a single oneliner summary

Example: "Tests result: SUCCESS"

* test_regrtest: add test_coverage()

regrtest now also displays the number of successful tests when
coverage is used.

* test_regrtest: add test_crashed()

Handle correctly crashing test: account the crash has a failed test,
but continue to run other tests.

* regrtest: backport --list-tests feature

* regrtest: backport --fromfile enhancements

* regrtest: backport displaying progress enhancements

* test_regrtest: backport test_randseed()

* regrtest: Fix --coverage on Windows

Don't ignore any directory anymore. Change backported from master.

7 years agobpo-30176: Add missing curses cell attributes constants (#2277)
Xiang Zhang [Mon, 19 Jun 2017 14:06:59 +0000 (22:06 +0800)]
bpo-30176: Add missing curses cell attributes constants (#2277)

7 years ago[3.5] bpo-30540, bpo-30523: Add --matchfile and --list-cases options to regrtest...
Victor Stinner [Fri, 16 Jun 2017 16:04:38 +0000 (18:04 +0200)]
[3.5] bpo-30540, bpo-30523: Add --matchfile and --list-cases options to regrtest (#2250)

* bpo-30540: regrtest: add --matchfile option

* Add a new option taking a filename to get a list of test names to
  filter tests.
* support.match_tests becomes a list.
* Modify run_unittest() to accept to match the whole test identifier,
  not just a part of a test identifier.

For example, the following command only runs test_access()
of the FileTests class of test_os:

$ ./python -m test -v -m test.test_os.FileTests.test_access test_os

* bpo-30523: regrtest: Add --list-cases option

* Add --list-cases option to regrtest
* Add get_abs_module() function, use it in list_cases()
* Add ns mandatory positional argument to runtest()
  and runtest_inner()
* Add file optional parameter to printlist()

Co-Authored-By: Louie Lu <git@louie.lu>
7 years agoRevert "bpo-30673: test.bat: add -t option (timeout) (#2211) (#2226)" (#2247)
Victor Stinner [Fri, 16 Jun 2017 12:38:50 +0000 (14:38 +0200)]
Revert "bpo-30673: test.bat: add -t option (timeout) (#2211) (#2226)" (#2247)

This reverts commit ab4ea09604ea7754a80e4fc36280f5772bf4a8b2.

7 years ago[email] bpo-29478: Fix passing max_line_length=None from Compat32 policy (GH-595...
Mariatta [Fri, 16 Jun 2017 02:38:12 +0000 (19:38 -0700)]
[email] bpo-29478: Fix passing max_line_length=None from Compat32 policy (GH-595) (GH-2234)

If max_line_length=None is specified while using the Compat32 policy,
it is no longer ignored..
(cherry picked from commit b459f7482612d340b88b62edc024628595ec6337)

7 years agobpo-30656: Fix Python C API Module Objects documentation (GH-2170) (GH-2231)
Mariatta [Fri, 16 Jun 2017 01:49:54 +0000 (18:49 -0700)]
bpo-30656: Fix Python C API Module Objects documentation (GH-2170) (GH-2231)

`PyModule_New()` now refers to `PyModule_NewObject()`
(cherry picked from commit 2d0afef82a07afdb666f2ca0c533aac5d39155cd)

7 years agoFix ref cycles in TestCase.assertRaises() (#193) (#2228)
Victor Stinner [Thu, 15 Jun 2017 22:51:24 +0000 (00:51 +0200)]
Fix ref cycles in TestCase.assertRaises() (#193) (#2228)

bpo-23890: unittest.TestCase.assertRaises() now manually breaks a
reference cycle to not keep objects alive longer than expected.
(cherry picked from commit bbd3cf8f1ef1e91a8d6dac6411e18b4b9084abf5)

7 years agobpo-30673: test.bat: add -t option (timeout) (#2211) (#2226)
Victor Stinner [Thu, 15 Jun 2017 22:14:45 +0000 (00:14 +0200)]
bpo-30673: test.bat: add -t option (timeout) (#2211) (#2226)

(cherry picked from commit 258bfc462b1e58689b43f662a10e44ece3a10bef)

7 years agobpo-30675: Fix multiprocessing code in regrtest (#2220)
Victor Stinner [Thu, 15 Jun 2017 22:08:39 +0000 (00:08 +0200)]
bpo-30675: Fix multiprocessing code in regrtest (#2220)

* Rewrite code to pass slaveargs from the master process to worker
  processes: reuse the same code of the Python master branch
* Move code to initialize tests in a new setup_tests() function,
  similar change was done in the master branch
* In a worker process, call setup_tests() with the namespace built
  from slaveargs to initialize correctly tests

Before this change, warm_caches() was not called in worker processes
because the setup was done before rebuilding the namespace from
slaveargs. As a consequence, the huntrleaks feature was unstable. For
example, test_zipfile reported randomly false positive on reference
leaks.

7 years ago[3.5] bpo-30626: Fix error handling in PyImport_Import(). (GH-2103) (#2222)
Serhiy Storchaka [Thu, 15 Jun 2017 18:15:26 +0000 (21:15 +0300)]
[3.5] bpo-30626: Fix error handling in PyImport_Import(). (GH-2103) (#2222)

In rare circumstances PyImport_Import() could return NULL without raising
an error.
(cherry picked from commit 145541c)

7 years agobpo-30149: Fix partialmethod without explicit self parameter (#1308) (#1663)
Dong-hee Na [Thu, 15 Jun 2017 14:42:01 +0000 (23:42 +0900)]
bpo-30149: Fix partialmethod without explicit self parameter (#1308) (#1663)

7 years ago[3.5] bpo-29931 fix __lt__ check in ipaddress.ip_interface for both v4 and v6. (GH...
Serhiy Storchaka [Thu, 15 Jun 2017 14:16:55 +0000 (17:16 +0300)]
[3.5] bpo-29931 fix __lt__ check in ipaddress.ip_interface for both v4 and v6. (GH-879) (#2218)

the original logic was just comparing the network address
but this is wrong because if the network address is equal then
we need to compare the ip address for breaking the tie

add more ip_interface comparison tests.
(cherry picked from commit 7bd8d3e794782582a4ad1c9749424fff86802c3e)

7 years ago[3.5] bpo-30650: Fixed a syntax error: missed right parentheses (GH-2154) (#2216)
Serhiy Storchaka [Thu, 15 Jun 2017 13:58:15 +0000 (16:58 +0300)]
[3.5] bpo-30650: Fixed a syntax error: missed right parentheses (GH-2154) (#2216)

(cherry picked from commit 0d32218)

7 years agobpo-29591: Upgrade Modules/expat to libexpat 2.2 (#2164) (#2201)
Victor Stinner [Thu, 15 Jun 2017 00:16:38 +0000 (02:16 +0200)]
bpo-29591: Upgrade Modules/expat to libexpat 2.2 (#2164) (#2201)

* 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).

(cherry picked from commit 23ec4b57e1359f9c539b8defc317542173ae087e)

7 years agobpo-30231: Remove skipped test_imaplib tests (#1419) (#2193)
Victor Stinner [Wed, 14 Jun 2017 20:43:02 +0000 (22:43 +0200)]
bpo-30231: Remove skipped test_imaplib tests (#1419) (#2193)

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.

7 years agobpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-2173) (GH-2197)
Mariatta [Wed, 14 Jun 2017 19:07:55 +0000 (12:07 -0700)]
bpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-2173) (GH-2197)

(cherry picked from commit 184bd82ba8106785ba22f0d2477dbd08bef821fb)

7 years agoFix trivial typo in Python Setup documentation (GH-2185) (GH-2189)
csabella [Wed, 14 Jun 2017 16:26:22 +0000 (12:26 -0400)]
Fix trivial typo in Python Setup documentation (GH-2185) (GH-2189)

Replace platform with platforms.
(cherry picked from commit 4ebf03d109f827c91a23256a447c1d74a203dfee)

7 years ago[3.5] bpo-24484: Avoid race condition in multiprocessing cleanup (GH-2159) (#2167)
Antoine Pitrou [Tue, 13 Jun 2017 15:54:10 +0000 (17:54 +0200)]
[3.5] bpo-24484: Avoid race condition in multiprocessing cleanup (GH-2159) (#2167)

* 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.
(cherry picked from commit 1eb6c0074d17f4fd425cacfdda893d65f5f77f0a)

7 years ago[3.5] bpo-29514: Check magic number for bugfix releases (#2158)
Nick Coghlan [Tue, 13 Jun 2017 10:32:24 +0000 (20:32 +1000)]
[3.5] bpo-29514: Check magic number for bugfix releases (#2158)

Add a test to check the current MAGIC_NUMBER against the
expected number for the release if the current release is
at candidate or final level. On test failure, describe to
the developer the procedure for changing the magic number.

This ensures that pre-merge CI will automatically pick up
on magic number changes in maintenance releases (and
explain why those are problematic), rather than relying on
all core developers to be aware of the implications of
such changes.

7 years ago[3.5] Mention how to disable signal fd wakeup (GH-2140) (#2150)
Antoine Pitrou [Tue, 13 Jun 2017 08:21:54 +0000 (10:21 +0200)]
[3.5] Mention how to disable signal fd wakeup (GH-2140) (#2150)

(cherry picked from commit d79c1d4a9406384f10a37f26a7515ce79f9fdd78)

7 years agobpo-6519: Improve Python Input Output Tutorial (GH-2143) (GH-2146)
Mariatta [Tue, 13 Jun 2017 05:40:43 +0000 (22:40 -0700)]
bpo-6519: Improve Python Input Output Tutorial (GH-2143) (GH-2146)

Move up the discussion about 'with' keyword, so it appears earlier in the document.
(cherry picked from commit bd4e9e0ca96dabf33605d9b1fd1e0562ece8ae18)

7 years agobpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2138)
Marco Buttu [Mon, 12 Jun 2017 19:43:52 +0000 (21:43 +0200)]
bpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2138)

(cherry picked from commit dc980dfbcfce4695ccde056c3983160ba97b5a36)

7 years ago[3.5] bpo-28994: Fixed errors handling in atexit._run_exitfuncs(). (GH-2034) (#2122)
Serhiy Storchaka [Mon, 12 Jun 2017 06:02:33 +0000 (09:02 +0300)]
[3.5] bpo-28994: Fixed errors handling in atexit._run_exitfuncs(). (GH-2034) (#2122)

The traceback no longer displayed for SystemExit raised in a callback registered by atexit.
(cherry picked from commit 3fd54d4a7e604067e2bc0f8cfd58bdbdc09fa7f4)

7 years agobpo-30621: Update Input Output Tutorial Example(GH-2074) (GH-2119)
Mariatta [Mon, 12 Jun 2017 01:59:17 +0000 (18:59 -0700)]
bpo-30621: Update Input Output Tutorial Example(GH-2074) (GH-2119)

import json before using json module
(cherry picked from commit 1dbce04d0e3e93b715eb0d8024da396361759d16)

7 years ago[3.5] Use Travis to make sure all generated files are up to date (GH-2080) (GH-2093)
Zachary Ware [Sun, 11 Jun 2017 16:32:45 +0000 (11:32 -0500)]
[3.5] Use Travis to make sure all generated files are up to date (GH-2080) (GH-2093)

(cherry picked from commit 0afbabe245)

Also fixes some line endings missed in GH-840 backport.

7 years agoRevert "[3.5] bpo-29406: asyncio SSL contexts leak sockets after calling close with...
Yury Selivanov [Sun, 11 Jun 2017 14:46:53 +0000 (16:46 +0200)]
Revert "[3.5] bpo-29406: asyncio SSL contexts leak sockets after calling close with certain servers (GH-409) (#2063)" (#2113)

This reverts commit 1395c58ef7b98f087d1d5d50962fe7a8c032f34d.

7 years agobpo-30508: Don't log exceptions if Task/Future "cancel()" method was called. (#2110)
Yury Selivanov [Sun, 11 Jun 2017 14:11:47 +0000 (14:11 +0000)]
bpo-30508: Don't log exceptions if Task/Future "cancel()" method was called. (#2110)

7 years agobpo-28556: Updates to typing module (GH-2076) (GH-2088)
Mariatta [Sat, 10 Jun 2017 21:41:38 +0000 (14:41 -0700)]
bpo-28556: Updates to typing module (GH-2076) (GH-2088)

This PR contains two updates to typing module:

- Support ContextManager on all versions (original PR by Jelle Zijlstra).
- Add generic AsyncContextManager..
(cherry picked from commit 29fda8db16e0edab92841277fa223f844f5a92cc)

7 years ago[3.5] bpo-27425: Be more explicit in .gitattributes (GH-840) (GH-2084)
Zachary Ware [Sat, 10 Jun 2017 20:40:08 +0000 (15:40 -0500)]
[3.5] bpo-27425: Be more explicit in .gitattributes (GH-840) (GH-2084)

Also updates checked-in line endings on some files.

7 years agobpo-25409: Clarify fnmatch and fnmatchcase documentation (GH-1535) (GH-2066)
Mariatta [Sat, 10 Jun 2017 14:26:08 +0000 (07:26 -0700)]
bpo-25409: Clarify fnmatch and fnmatchcase documentation (GH-1535) (GH-2066)

Mention that fnmatchcase does not call normcase, and fnmatch does.
(cherry picked from commit e5f6e86c48c7b2eb9e1d6a0e72867b4d8b4720f3)

7 years ago[3.5] bpo-29406: asyncio SSL contexts leak sockets after calling close with certain...
Yury Selivanov [Sat, 10 Jun 2017 14:01:17 +0000 (10:01 -0400)]
[3.5] bpo-29406: asyncio SSL contexts leak sockets after calling close with certain servers (GH-409) (#2063)

* bpo-29406: asyncio SSL contexts leak sockets after calling close with certain servers (#409)

(cherry picked from commit a608d2d5a7f1aabe9bcbfc220135c5e126189390)

* [3.5] bpo-29406: asyncio SSL contexts leak sockets after calling close with certain servers (GH-409)

* asyncio SSL contexts leak sockets after calling close with certain servers

* cleanup _shutdown_timeout_handle on _fatal_error.
(cherry picked from commit a608d2d5a7f1aabe9bcbfc220135c5e126189390)

7 years ago[3.5] Fix TypeError is asyncio/proactor_events (GH-993) (#2060)
Yury Selivanov [Sat, 10 Jun 2017 04:15:41 +0000 (00:15 -0400)]
[3.5] Fix TypeError is asyncio/proactor_events (GH-993) (#2060)

(cherry picked from commit 34792d25ab7329241ea24595286d65d54c266274)

7 years ago[3.5] bpo-30417: Disable `cpu` resource on AppVeyor (GH-1951)
Zachary Ware [Sat, 10 Jun 2017 03:26:48 +0000 (22:26 -0500)]
[3.5] bpo-30417: Disable `cpu` resource on AppVeyor (GH-1951)

(cherry picked from commit 42e3acda86829def9adc354fbee77597b849bf9e)

7 years ago[3.5] bpo-30335: Add deprecation alias entry for assertNotRegexpMatches (GH-1536...
Mariatta [Sat, 10 Jun 2017 01:33:50 +0000 (18:33 -0700)]
[3.5] bpo-30335: Add deprecation alias entry for assertNotRegexpMatches (GH-1536) (GH-2056)

Document that assertNotRegexpMatches is a deprecated alias for assertNotRegex.
(cherry picked from commit 74921ed8941fce14c2a53dc7280f43eb01fe4ed8)

7 years ago[3.5] Make codecov config on master the only config used (GH-2041) (GH-2053)
Brett Cannon [Sat, 10 Jun 2017 00:02:18 +0000 (17:02 -0700)]
[3.5] Make codecov config on master the only config used (GH-2041) (GH-2053)

This will allow for centralized management of the Codecov config to prevent skew as well as easier management going forward.

Closes python/core-workflowGH-81.
(cherry picked from commit 11ffb4543bc000dea527bcc0417e2f8bda13790f)

7 years agoBreak circular references when closing SSLTransport objects (#981) (#2048)
Yury Selivanov [Fri, 9 Jun 2017 23:14:24 +0000 (19:14 -0400)]
Break circular references when closing SSLTransport objects (#981) (#2048)

7 years agoClosing transport during handshake process leaks socket (#480) (#2045)
Yury Selivanov [Fri, 9 Jun 2017 22:27:45 +0000 (18:27 -0400)]
Closing transport during handshake process leaks socket (#480) (#2045)

7 years ago[3.5] Clarify what --enable-optimizations does (GH-1847) (GH-2040)
Brett Cannon [Fri, 9 Jun 2017 21:35:31 +0000 (14:35 -0700)]
[3.5] Clarify what --enable-optimizations does (GH-1847) (GH-2040)

(cherry picked from commit b4e5fee6f5bcc50500ea6261a22021db58955b55)

7 years agoFix waiter cancellation in asyncio.Lock (#1031) (#2038)
Yury Selivanov [Fri, 9 Jun 2017 21:08:23 +0000 (17:08 -0400)]
Fix waiter cancellation in asyncio.Lock (#1031) (#2038)

Avoid a deadlock when the waiter who is about to take the lock is
cancelled

Issue #27585

7 years agobpo-24755: Document asyncio.wrap_future (GH-603) (GH-2020)
Mariatta [Fri, 9 Jun 2017 14:33:24 +0000 (07:33 -0700)]
bpo-24755: Document asyncio.wrap_future (GH-603) (GH-2020)

(cherry picked from commit 824f6879121413e09439fffef54580413e44bf46)

7 years agobpo-30418: Popen.communicate() always ignore EINVAL (#2002) (#2005)
Victor Stinner [Thu, 8 Jun 2017 16:20:46 +0000 (18:20 +0200)]
bpo-30418: Popen.communicate() always ignore EINVAL (#2002) (#2005)

On Windows, subprocess.Popen.communicate() now also ignore EINVAL
on stdin.write() if the child process is still running but closed the
pipe.
(cherry picked from commit d52aa31378ae43e044a300edfe8285954c167216)

7 years ago[3.5] bpo-30584: Fix test_os fails on non-English Windows (GH-1980) (#2000)
Denis Osipov [Thu, 8 Jun 2017 12:16:48 +0000 (17:16 +0500)]
[3.5] bpo-30584: Fix test_os fails on non-English Windows (GH-1980) (#2000)

* Fix bpo-30584

* Adding a comment mentionning the bpo and explaining what is the identifier

* Add Denis Osipov to Misc/ACKS
(cherry picked from commit 897bba75632dfce87c355e3cd4700468357715a7)

7 years ago[3.5] bpo-30594: Fixed refcounting in newPySSLSocket (GH-1992) (#1993)
Nathaniel J. Smith [Thu, 8 Jun 2017 11:14:44 +0000 (04:14 -0700)]
[3.5] bpo-30594: Fixed refcounting in newPySSLSocket (GH-1992) (#1993)

If pass a server_hostname= that fails IDNA decoding to SSLContext.wrap_socket or SSLContext.wrap_bio, then the SSLContext object had a spurious Py_DECREF called on it, eventually leading to segfaults.
(cherry picked from commit 65ece7ca2366308fa91a39a8dfa255e6bdce3cca)

7 years ago[3.5] trivial: update config.{guess,sub} from gnu.org. (GH-1987) (#1991)
Matthias Klose [Thu, 8 Jun 2017 01:08:57 +0000 (18:08 -0700)]
[3.5] trivial: update config.{guess,sub} from gnu.org. (GH-1987) (#1991)

* Update config.{guess,sub} from gnu.org..
(cherry picked from commit 6f46683a6257f22f25d136ed080d58d0c060a43b)

7 years agobpo-29596: Improve clinic howto documentation (GH-1710) (GH-1975)
gfyoung [Tue, 6 Jun 2017 21:38:08 +0000 (17:38 -0400)]
bpo-29596: Improve clinic howto documentation (GH-1710) (GH-1975)

Clarify that `two-pass` buffer can only be dumped once, and it prints out all text sent to it during all processing, even from Clinic blocks *after* the dumping point.

7 years ago[3.5] bpo-30567: Fix refleak in sys.getwindowsversion (GH-1940) (#1971)
Serhiy Storchaka [Tue, 6 Jun 2017 16:23:21 +0000 (19:23 +0300)]
[3.5] bpo-30567: Fix refleak in sys.getwindowsversion (GH-1940) (#1971)

(cherry picked from commit 48fb766)

7 years ago[3.5] Install dependencies in Travis OSX build (GH-1952)
Zachary Ware [Tue, 6 Jun 2017 03:41:26 +0000 (22:41 -0500)]
[3.5] Install dependencies in Travis OSX build (GH-1952)

(cherry picked from commit 167e0fc211c06df)

7 years ago[3.5] bpo-30417: Disable 'cpu' resource on Travis (GH-1928)
Zachary Ware [Tue, 6 Jun 2017 01:02:18 +0000 (20:02 -0500)]
[3.5] bpo-30417: Disable 'cpu' resource on Travis (GH-1928)

Also weakens the 'should this be run?' regex to allow all builds when .travis.yml changes.
(cherry picked from commit c53b13b270767948fddb58b287149c499f9a03c4)

7 years agobpo-30538: Update count() in Functional Programming HOWTO (GH-1919) (GH-1944)
csabella [Mon, 5 Jun 2017 03:11:58 +0000 (23:11 -0400)]
bpo-30538: Update count() in Functional Programming HOWTO (GH-1919) (GH-1944)

* bpo-30538: Update count() in Functional HOWTO
* bpo-30538: Update enumerate() arguments in Functional HOWTO
(cherry picked from commit 9be4ff359daa67cde6246494f643ed7cd2825d46)

7 years agobpo-30530: Update Descriptor How To Documentation (GH-1845) (GH-1954)
Mariatta [Mon, 5 Jun 2017 03:09:16 +0000 (20:09 -0700)]
bpo-30530: Update Descriptor How To Documentation (GH-1845) (GH-1954)

Update the code example in Functions and Methods section
Remove objtype argument in MethodType
(cherry picked from commit 1bced56567335745f91676192fc39c06aab30da9)

7 years ago[3.5] Only run AppVeyor on long-lived branches (GH-1941)
Zachary Ware [Mon, 5 Jun 2017 00:51:30 +0000 (19:51 -0500)]
[3.5] Only run AppVeyor on long-lived branches (GH-1941)

Also on the short-lived `buildbot-custom` branch.
(cherry picked from commit d3bedf356aca04ed9135a84b08)

7 years ago[3.5] Fix skipping test_UNC_path on AppVeyor due to a different error being raised...
Zachary Ware [Sun, 4 Jun 2017 22:19:32 +0000 (17:19 -0500)]
[3.5] Fix skipping test_UNC_path on AppVeyor due to a different error being raised (GH-1920)

We get `ERROR_BAD_NETPATH` (53) on AppVeyor which is translated to
ENOENT (2).
(cherry picked from commit 7a99625e0d95cd88ed8842d8677b5beea1fde5ae)

7 years ago[3.5] Turn on macOS builds for Travis (GH-1846) (GH-1930)
Brett Cannon [Sat, 3 Jun 2017 17:34:15 +0000 (10:34 -0700)]
[3.5] Turn on macOS builds for Travis (GH-1846) (GH-1930)

Initially the macOS builds are allowed to fail until such time that they can be determined to be stable and not add an unacceptable amount of time to the overall Travis-passing process.
(cherry picked from commit 21c2dd7cf8414c903f0e83cf1d6b7f02f645f422)

7 years agobpo-29660: traceback: Document that etype is ignored in some places. (GH-344) (GH...
Matthias Bussonnier [Fri, 2 Jun 2017 03:26:57 +0000 (20:26 -0700)]
bpo-29660: traceback: Document that etype is ignored in some places. (GH-344) (GH-1914)

(cherry picked from commit cdb89cd)

7 years agobpo-30378: Fix the problem that SysLogHandler can't handle IPv6 addresses (#1676...
Xiang Zhang [Thu, 1 Jun 2017 14:19:58 +0000 (22:19 +0800)]
bpo-30378: Fix the problem that SysLogHandler can't handle IPv6 addresses (#1676) (#1902)

7 years agobpo-30499: Remove a deprecated note about sets. (GH-1848) (GH-1906)
Mariatta [Thu, 1 Jun 2017 14:12:09 +0000 (07:12 -0700)]
bpo-30499: Remove a deprecated note about sets. (GH-1848) (GH-1906)

(cherry picked from commit 0737ee20671d60802a7ef40f653fe449f1921de0)

7 years agobpo-22702: Clarify documentation of str.join & bytes.join (GH-156) (GH-1896)
Mariatta [Thu, 1 Jun 2017 02:48:28 +0000 (19:48 -0700)]
bpo-22702: Clarify documentation of str.join & bytes.join (GH-156) (GH-1896)

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.
(cherry picked from commit 08e2f355d04d3cbea5751ce1275306ee3f569b32)

7 years agobpo-27618: Clarify that threading.Lock is a factory function (GH-1307) (GH-1895)
csabella [Thu, 1 Jun 2017 01:53:08 +0000 (21:53 -0400)]
bpo-27618: Clarify that threading.Lock is a factory function (GH-1307) (GH-1895)

(cherry picked from commit 56ddfd2eea4d98456a9a99bf2a718f21ee6b2be2)

7 years ago[3.5] Fix Travis config to reinstate test build (GH-1879) (GH-1890)
Brett Cannon [Wed, 31 May 2017 22:52:58 +0000 (15:52 -0700)]
[3.5] Fix Travis config to reinstate test build (GH-1879) (GH-1890)

(cherry picked from commit a5aa72ac789052411797c6f079ffff0a9fdbf82c)

7 years ago[3.5] Fix a trivial typo in global section (GH-1497) (GH-1881)
Mariatta [Wed, 31 May 2017 05:08:12 +0000 (22:08 -0700)]
[3.5] Fix a trivial typo in global section (GH-1497) (GH-1881)

(cherry picked from commit f34c6850203a2406c4950af7a9c8a134145df4ea)

7 years agoBuild docs in parallel (GH-1842) (GH-1871)
Mariatta [Tue, 30 May 2017 22:29:07 +0000 (15:29 -0700)]
Build docs in parallel (GH-1842) (GH-1871)

(cherry picked from commit eba68e2c42e149acecb15bbeb692786e2540157d)

7 years agobpo-30354: Update data model documentation for super() (GH-1561) (GH-1869)
csabella [Tue, 30 May 2017 20:47:47 +0000 (16:47 -0400)]
bpo-30354: Update data model documentation for super() (GH-1561) (GH-1869)

The data model section of the language reference was written well
before the zero-argument form of super() was added.

To avoid giving the impression that they're doing something
unusual, this updates the description of `__new__` and `__init__`
to use the zero-argument form.

Patch by Cheryl Sabella.
(cherry picked from commit 12b1c180986fc744331b8f30d3d2f49a0fdb43dd)

7 years ago[3.5] bpo-30361: Use better example for mixed-type operands (GH-1701) (#1857)
Mariatta [Mon, 29 May 2017 22:20:47 +0000 (15:20 -0700)]
[3.5] bpo-30361: Use better example for mixed-type operands (GH-1701) (#1857)

(cherry picked from commit e405d4b8dfb8b497e1c3d1f0f8e28030040c165e)

7 years ago[3.5] bpo-29960 _random.Random corrupted on exception in setstate(). … (#1288)
Mariatta [Sat, 27 May 2017 14:19:40 +0000 (07:19 -0700)]
[3.5] bpo-29960 _random.Random corrupted on exception in setstate(). … (#1288)

(cherry picked from commit 9616a82e7802241a4b74cf7ae38d43c37bf66e48)

7 years ago[3.5] bpo-30398: Add a docstring for re.error. (GH-1647) (#1831)
Serhiy Storchaka [Sat, 27 May 2017 13:38:12 +0000 (16:38 +0300)]
[3.5] bpo-30398: Add a docstring for re.error. (GH-1647) (#1831)

Also document that some attributes may be None.
(cherry picked from commit 12d6b5d)