- 22 Feb, 2019 2 commits
-
-
Julien Palard authored
-
Manjusaka authored
-
- 21 Feb, 2019 12 commits
-
-
Raymond Hettinger authored
-
Joe Jevnik authored
-
Raymond Hettinger authored
* Add tests for Counter order. No behavior change. * Update docs and tests * Fix doctest output and capitalization
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Stéphane Wirtel authored
Trying to assign a value to __debug__ using the assignment operator is supposed to fail, but a missing check for forbidden names when setting the context in the ast was preventing this behaviour.
-
Sergey Fedoseev authored
-
Raymond Hettinger authored
-
Cristian Ciupitu authored
read() returns bytes for a file opened in binary mode, so b'' should be used as a sentinel instead of ''. Otherwise the loop will be infinite.
-
Zackery Spytz authored
-
Sergey Fedoseev authored
-
Gregory P. Smith authored
Explicitly reinitialize this every eval *just in case* someone is calling into an embedded Python where they don't care about an uncaught KeyboardInterrupt exception (why didn't they leave `config.install_signal_handlers` set to `0`?!?) but then later call `Py_Main()` itself (which *checks* this flag and dies with a signal after its interpreter exits). We don't want a previous embedded interpreter's uncaught exception to trigger an unexplained signal exit from a future `Py_Main()` based one.
-
- 20 Feb, 2019 4 commits
-
-
-
Stefan Behnel authored
-
Stéphane Wirtel authored
Fix a crash on fork when using subinterpreters.
-
Inada Naoki authored
-
- 19 Feb, 2019 11 commits
-
-
Pablo Galindo authored
-
-
Victor Stinner authored
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.
-
Cédric Krier authored
Allow to add HTTP headers to XML-RPC requests sent to the server.
-
-
Sanyam Khurana authored
`object.__new__` and `object.__init__` do take one argument each, they just don't take extra user supplied arguments. Patch by Sanyam Khurana.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
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.
-
Cheryl Sabella authored
-
- 18 Feb, 2019 5 commits
-
-
tjb900 authored
bpo-34572: change _pickle unpickling to use import rather than retrieving from sys.modules (GH-9047) Fix C implementation of pickle.loads to use importlib's locking mechanisms, and thereby avoid using partially-loaded modules.
-
animalize authored
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.
-
Nick Coghlan authored
The wrong NEWS snippet was inadvertently included in GH-11500, this switches to the correct one. https://bugs.python.org/issue35704
-
-
Pablo Galindo authored
bpo-35942: Improve the error message if __fspath__ returns invalid types in 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.
-
- 17 Feb, 2019 3 commits
-
-
Ivan Levkivskyi authored
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.
-
Michael Felt authored
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
-
Gregory P. Smith authored
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. :)
-
- 16 Feb, 2019 3 commits
-
-
Raymond Hettinger authored
-
Gregory P. Smith authored
* 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. -
-