summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-35993: Fix _PyInterpreterState_DeleteExceptMain() (GH-11852)Stéphane Wirtel2019-02-202-2/+6
| | | Fix a crash on fork when using subinterpreters.
* bpo-12822: use monotonic clock for condvar if possible (GH-11723)Inada Naoki2019-02-208-51/+87
|
* bpo-36049: Fix compiler warning in Python/ast.c (GH-11949)Pablo Galindo2019-02-191-1/+1
|
* bpo-35584: Clarify role of caret in a class class (GH-11946)Raymond Hettinger2019-02-191-2/+3
| | | https://bugs.python.org/issue35584
* bpo-36037: Fix test_ssl for strict OpenSSL policy (GH-11940)Victor Stinner2019-02-192-1/+32
| | | | | Fix test_ssl for strict OpenSSL configuration like RHEL8 strict crypto policy. Use older TLS version for minimum TLS version of the server SSL context if needed, to test TLS version older than default minimum TLS version.
* bpo-35153: Add headers parameter to xmlrpc.client.ServerProxy (GH-10308)Cédric Krier2019-02-194-11/+86
| | | Allow to add HTTP headers to XML-RPC requests sent to the server.
* Doc: Fix typo. (GH-11315)Julien Palard2019-02-191-1/+1
| | | From: https://mail.python.org/pipermail/docs/2018-December/038583.html
* bpo-31506: Clarify error messages for object.__new__ and object.__init__ ↵Sanyam Khurana2019-02-193-10/+22
| | | | | | | | | (GH-11641) `object.__new__` and `object.__init__` do take one argument each, they just don't take extra user supplied arguments. Patch by Sanyam Khurana.
* Fix a misnamed test for lists. (GH-11933)Serhiy Storchaka2019-02-191-1/+7
|
* Fix syntax warnings in tests introduced in bpo-35942. (GH-11934)Serhiy Storchaka2019-02-191-12/+4
|
* Fix syntax warnings in tests introduced in bpo-15248. (GH-11932)Serhiy Storchaka2019-02-193-6/+10
|
* bpo-35798: Add test.support.check_syntax_warning(). (#11895)Serhiy Storchaka2019-02-195-55/+62
| | | | | | | It checks that a SyntaxWarning is raised when compile specified statement, that it is raised only once, that it is converted to a SyntaxError when raised as exception, and that both warning and exception objects have corresponding attributes.
* bpo-35689: IDLE: Add docstrings and unittests for colorizer.py (GH-11472)Cheryl Sabella2019-02-194-16/+408
|
* bpo-34572: change _pickle unpickling to use import rather than retrieving ↵tjb9002019-02-183-7/+75
| | | | | from sys.modules (GH-9047) Fix C implementation of pickle.loads to use importlib's locking mechanisms, and thereby avoid using partially-loaded modules.
* bpo-34294: re module, fix wrong capturing groups in rare cases. (GH-11546)animalize2019-02-185-1/+49
| | | | | | Need to reset capturing groups between two SRE(match) callings in loops, this fixes wrong capturing groups in rare cases. Also add a missing index in re.rst.
* bpo-35704: Include correct NEWS entry (GH-11914)Nick Coghlan2019-02-182-2/+4
| | | | | | | The wrong NEWS snippet was inadvertently included in GH-11500, this switches to the correct one. https://bugs.python.org/issue35704
* bpo-35704: Prevent test_shutil fail result when AIX is 32-bit and MAXDATA < ↵Michael Felt2019-02-182-0/+15
| | | | | 0x20000000 (GH-11500) https://bugs.python.org/issue35704
* bpo-35942: Improve the error message if __fspath__ returns invalid types in ↵Pablo Galindo2019-02-183-9/+36
| | | | | path_converter (GH-11831) The error message emitted when returning invalid types from __fspath__ in interfaces that allow passing PathLike objects has been improved and now it does explain the origin of the error.
* bpo-35992: Use PySequence_GetItem only if sq_item is not NULL (GH-11857)Ivan Levkivskyi2019-02-173-3/+15
| | | | Not using `__class_getitem__()` fallback if there is a non-subcriptable metaclass was caused by a certain asymmetry between how `PySequenceMethods` and `PyMappingMethods` are used in `PyObject_GetItem`. This PR removes this asymmetry. No tests failed, so I assume it was not intentional.
* bpo-34720: Fix test_importlib.test_bad_traverse for AIX (GH-9391)Michael Felt2019-02-172-0/+10
| | | | | | Fix Modules/_testmultiphase.c so that it exits with non-zero status on AIX just as other systems do (non zero exit status, e.g. as result of a segmentation fault) when a NULL pointer is accessed for data. https://bugs.python.org/issue34720
* bpo-36013: delete fragile interactive shell SIGINT test (GH-11902)Gregory P. Smith2019-02-171-33/+7
| | | | | It makes the existing smaller test more readable and robust at the same time. The execution of a shell in interactive mode from CI and buildbot test automation wasn't working out. What would work locally in our terminals would only work within a fraction of automation systems. The integration test was a nice to have. painful. deleting. :)
* Convert range to repeat for choices() (#11889)Raymond Hettinger2019-02-161-3/+3
|
* bpo-1054041: Exit properly after an uncaught ^C. (#11862)Gregory P. Smith2019-02-166-6/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-1054041: Exit properly by a signal after a ^C. An uncaught KeyboardInterrupt exception means the user pressed ^C and our code did not handle it. Programs that install SIGINT handlers are supposed to reraise the SIGINT signal to the SIG_DFL handler in order to exit in a manner that their calling process can detect that they died due to a Ctrl-C. https://www.cons.org/cracauer/sigint.html After this change on POSIX systems while true; do python -c 'import time; time.sleep(23)'; done can be stopped via a simple Ctrl-C instead of the shell infinitely restarting a new python process. What to do on Windows, or if anything needs to be done there has not yet been determined. That belongs in its own PR. TODO(gpshead): A unittest for this behavior is still needed. * Do the unhandled ^C check after pymain_free. * Return STATUS_CONTROL_C_EXIT on Windows. * Fix ifdef around unistd.h include. * 📜🤖 Added by blurb_it. * Add STATUS_CTRL_C_EXIT to the os module on Windows * Add unittests. * Don't send CTRL_C_EVENT in the Windows test. It was causing CI systems to bail out of the entire test suite. See https://dev.azure.com/Python/cpython/_build/results?buildId=37980 for example. * Correct posix test (fail on macOS?) check. * STATUS_CONTROL_C_EXIT must be unsigned. * Improve the error message. * test typo :) * Skip if the bash version is too old. ...and rename the windows test to reflect what it does. * min bash version is 4.4, detect no bash. * restore a blank line i didn't mean to delete. * PyErr_Occurred() before the Py_DECREF(co); * Don't add os.STATUS_CONTROL_C_EXIT as a constant. * Update the Windows test comment. * Refactor common logic into a run_eval_code_obj fn.
* bpo-35884: Add missing FIFO queue benchmark (GH-11898)Raymond Hettinger2019-02-161-1/+10
| | | https://bugs.python.org/issue35884
* bpo-33234: Add another attribution in Whatsnew (GH-11899)Raymond Hettinger2019-02-161-2/+2
| | | https://bugs.python.org/issue33234
* bpo-32492: Add missing whatsnew entries for itemgetter and namedtuple (GH-11897)Raymond Hettinger2019-02-161-0/+11
| | | https://bugs.python.org/issue32492
* bpo-33089: Add math.dist() and math.hypot() to Whatsnew (GH-11896)Raymond Hettinger2019-02-161-1/+8
| | | https://bugs.python.org/issue33089
* bpo-35798: Fix duplicate SyntaxWarning: "is" with a literal. (GH-11639)Serhiy Storchaka2019-02-161-3/+3
|
* bpo-15248: Emit a compiler warning when missed a comma before tuple or list. ↵Serhiy Storchaka2019-02-164-6/+239
| | | | (GH-11757)
* bpo-36007: Bump minimum sphinx version to 1.8 (GH-11887)Anthony Sottile2019-02-152-2/+3
| | | https://bugs.python.org/issue36007
* bpo-35984: _xxsubinterpreters: Fix memory leak in _channel_send() (GH-11845)Alexey Izbyshev2019-02-151-0/+1
| | | https://bugs.python.org/issue35984
* bpo-35931: Gracefully handle SyntaxError in pdb debug command (GH-11782)Daniel Hahler2019-02-153-1/+16
| | | | | | | | Previously, `debug print(` would cause the interpreter to exit on a SyntaxError whereas `print(` would properly display the error and return to the pdb prompt. This patch fixes this by pre-compiling the code before passing it to `Pdb.run`. https://bugs.python.org/issue35931
* Improve readability of random module examples (GH-11884)Raymond Hettinger2019-02-151-2/+6
| | | Based on reviewer feedback from Allen Downey, convert ``lambda`` to ``def``.
* Fix the versionadded info for typing.NoReturn (GH-11880)Jack Wilsdon2019-02-151-1/+1
| | | The earliest version that `typing.NoReturn` appears in is [3.5.4rc1](https://docs.python.org/3/whatsnew/changelog.html#python-3-5-4-release-candidate-1)
* bpo-36006: Fix versionchanged directive alignment in io module documentation ↵Emmanuel Arias2019-02-151-2/+2
| | | | | (GH-11881) https://bugs.python.org/issue36006
* bpo-35746: Credit Colin Read and Nicolas Edet (GH-11863)Victor Stinner2019-02-151-1/+2
| | | | Add credit for the cert parser vulnerability. Mention also Cisco TALOS-2018-0758 identifier.
* bpo-35994: add sub dir for sub2_tree in os.walk test if symlink is not ↵pxinwr2019-02-151-1/+1
| | | | | supported (GH-11853) https://bugs.python.org/issue35994
* bpo-30410: Documentation of sys.stdin/out/err update to reflect change in ↵Lysandros Nikolaou2019-02-141-7/+24
| | | | | | | | | | | 3.6 (GH-10264) Documentation of sys.stdin/out/err update to reflect change in 3.6 on Windows to use UTF-8. Wording by Eryk Sun and Paul Moore. https://bugs.python.org/issue30410
* Doc: Fix example in contextlib asynccontextmanager document (GH-8111)kk2019-02-140-0/+0
|
* bpo-35633: test_lockf() fails with "PermissionError: [Errno 13] Permission ↵Michael Felt2019-02-141-0/+4
| | | | | | | | | | | | denied" on AIX (GH-11424) [bpo-35633](https://bugs.python.org/issue35633): Fix a test regression introduced with [bpo-35189](https://bugs.python.org/issue35189) (PEP 475: fnctl functions are not retried if interrupted (EINTR)). Not only a blocking IO error needs to be ignored - permission errors also need to be ignored. p.s. - iirc as a "test" only correction a NEWS item is not required. If this is not correct - just mention, and I'll add a NEWS blurb. https://bugs.python.org/issue35633
* bpo-35976: Enable Windows projects to build with platform ARM32 (GH-11825)Paul Monson2019-02-1446-5/+959
| | | This change adds the necessary items to the build projects to avoid erroring out right at the start. It does not add _support_ for targeting Windows on ARM32, but is a necessary prerequisite for adding it.
* closes bpo-35991: Fix a potential double free in Modules/_randommodule.c. ↵Zackery Spytz2019-02-142-1/+1
| | | | (GH-11849)
* Fix typo: equivalent code of `async with cond` (GH-11681)Kevin Mai-Husan Chia2019-02-141-2/+2
|
* bpo-35500: align expected and actual calls on mock.assert_called_with error ↵Susan Su2019-02-143-9/+14
| | | | message. (GH-11804)
* bpo-35887: Add make regen-importlib step to importlib._bootstrap docstring ↵Nina Zakharenko2019-02-131-3/+3
| | | | (GH-11777)
* bpo-35961: Fix a crash in slice_richcompare() (GH-11830)Victor Stinner2019-02-132-24/+16
| | | | | | | | Fix a crash in slice_richcompare(): use strong references rather than stolen references for the two temporary internal tuples. The crash (or assertion error) occurred if a garbage collection occurred during slice_richcompare(), especially while calling PyObject_RichCompare(t1, t2, op).
* bpo-18283: Add support for bytes to shutil.which (GH-11818)Cheryl Sabella2019-02-134-14/+45
|
* Be consistent about the use of from-imports in random module (GH-11837)Raymond Hettinger2019-02-131-4/+4
| | | Minor code clean-up.
* Remove stray quote in os.replace docstring. (GH-11556)Anthony Sottile2019-02-132-4/+4
|
* Fix potential memory leak in parsetok.c (GH-11832)Pablo Galindo2019-02-131-1/+2
|