summaryrefslogtreecommitdiff
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
...
| * bpo-36043: FileCookieJar supports os.PathLike (GH-11945)Stéphane Wirtel2019-03-011-0/+1
| | | | | | https://bugs.python.org/issue36043
| * bpo-36146: Add TEST_EXTENSIONS to setup.py (GH-12129)Victor Stinner2019-03-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Add TEST_EXTENSIONS constant to setup.py to allow to not build test extensions like _testcapi. Changes: * Add add_ldflags_cppflags() subfunction * Rename add_compiler_directories() to configure_compiler(). * Remove unused COMPILED_WITH_PYDEBUG constant. * Use self.add() rather than accessing directly self.extensions. * Remove module_enabled() function: check differently if curses extension is built or not.
| * bpo-35178: Fix warnings._formatwarnmsg() (GH-12033)Xtreak2019-03-011-0/+2
| | | | | | | | | | Ensure custom formatwarning function can receive line as positional argument. Co-Authored-By: Tashrif Billah <tashrifbillah@gmail.com>
| * bpo-36146: Fix inc_dirs in setup.py on macOS (GH-12098)Victor Stinner2019-03-011-0/+2
| | | | | | | | Fix setup.py on macOS: only add /usr/include/ffi to include directories of _ctypes, not for all extensions.
| * bpo-36152: IDLE: Remove unused parameter from colorizer (GH-12109)Cheryl Sabella2019-03-011-0/+3
| | | | | | | | Remove colorizer.ColorDelegator.close_when_done and the corresponding argument of .close(). In IDLE, both have always been None or False since 2007.
| * bpo-36142: Exclude coreconfig.h from Py_LIMITED_API (GH-12111)Victor Stinner2019-03-011-0/+2
| | | | | | | | | | | | | | | | | | The whole coreconfig.h header is now excluded from Py_LIMITED_API. Move functions definitions into a new internal pycore_coreconfig.h header. * Move Include/coreconfig.h to Include/cpython/coreconfig.h * coreconfig.h header is now excluded from Py_LIMITED_API * Move functions to pycore_coreconfig.h
| * bpo-29571: Fix test_re.test_locale_flag() (GH-12099)Victor Stinner2019-03-011-0/+3
| | | | | | | | | | | | | | | | | | Use locale.getpreferredencoding() rather than locale.getlocale() to get the locale encoding. With some locales, locale.getlocale() returns the wrong encoding. For example, on Fedora 29, locale.getlocale() returns ISO-8859-1 encoding for the "en_IN" locale, whereas locale.getpreferredencoding() reports the correct encoding: UTF-8.
| * bpo-36096: IDLE: Refactor class variables in colorizer (GH-12002)Cheryl Sabella2019-02-271-0/+1
| |
| * bpo-31904: Add cross-build support for VxWorks RTOS (GH-11968)pxinwr2019-02-271-0/+1
| |
| * bpo-36123: Fix test_socket.testWithTimeoutTriggeredSend() race condition ↵Joannah Nanjekye2019-02-261-0/+1
| | | | | | | | | | | | (GH-12053) Use longer timeout for accept() in the server and block on accept in the client. The client now only sets the timeout once the socket is connected.
| * bpo-35652: shutil.copytree(copy_function=...) erroneously pass DirEntry ↵Giampaolo Rodola2019-02-261-0/+2
| | | | | | | | instead of path str (GH-11997)
| * bpo-36106: Resolve sinpi name clash with libm (IEEE-754 violation). (GH-12027)Dima Pasechnik2019-02-261-0/+1
| | | | | | | | | | | | | | | | | | The standard math library (libm) may follow IEEE-754 recommendation to include an implementation of sinPi(), i.e. sinPi(x):=sin(pi*x). And this triggers a name clash, found by FreeBSD developer Steve Kargl, who worken on putting sinpi into libm used on FreeBSD (it has to be named "sinpi", not "sinPi", cf. e.g. https://en.cppreference.com/w/c/experimental/fpext4).
| * bpo-24643: Fix "#define timezone _timezone" clashes on Windows (GH-12019)Zackery Spytz2019-02-251-0/+1
| |
| * Clean up code which checked presence of os.{stat,lstat,chmod} (#11643)Anthony Sottile2019-02-251-0/+2
| |
| * Autospec functions should propagate mock calls to parent GH-11273Xtreak2019-02-251-0/+2
| |
| * Merge tag 'v3.8.0a2'Łukasz Langa2019-02-2554-113/+544
| |\ | | | | | | | | | Python 3.8.0a2
| | * v3.8.0a2v3.8.0a2Łukasz Langa2019-02-2554-113/+544
| | |
| * | bpo-36048: Use __index__() instead of __int__() for implicit conversion if ↵Serhiy Storchaka2019-02-251-0/+4
| |/ | | | | | | | | | | available. (GH-11952) Deprecate using the __int__() method in implicit conversions of Python numbers to C integers.
| * closes bpo-36083: Fix formatting of the manpage Synopsis. (GH-12017)Miro Hrončok2019-02-242-1/+6
| | | | | | More specifically, the options of --check-hash-based-pycs.
| * bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). ↵Eric Snow2019-02-241-0/+5
| | | | | | | | | | | | | | (GH-11617) This involves moving the global "pending calls" state to PyInterpreterState. https://bugs.python.org/issue33608
| * bpo-35512: Resolve string target to patch.dict decorator during function ↵Xtreak2019-02-241-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | call GH#12000 * Resolve string target to patch.dict during function call * Add NEWS entry * Remove unneeded call * Restore original value for support.target and refactor assertions * Add extra assertion to verify unpatched dict
| * bpo-27313: Avoid test_ttk_guionly ComboboxTest fail with macOS Cocoa Tk ↵Ned Deily2019-02-241-0/+1
| | | | | | | | (GH-12011)
| * bpo-24310: Document IDLE settings dialog font tab sample (GH-12007)Terry Jan Reedy2019-02-231-0/+1
| |
| * bpo-36018: Add the NormalDist class to the statistics module (GH-11973)Raymond Hettinger2019-02-231-0/+3
| |
| * bpo-35724: Explicitly require the main interpreter for signal-handling. ↵Eric Snow2019-02-231-0/+2
| | | | | | | | | | | | | | (GH-11530) Ensure that the main interpreter is active (in the main thread) for signal-handling operations. This is increasingly relevant as people use subinterpreters more. https://bugs.python.org/issue35724
| * bpo-1054041: Add What's New docs. (GH-11999)Gregory P. Smith2019-02-231-0/+0
| | | | | | Add What's New docs about the Ctrl-C improvement. Correct the issue number in the NEWS entry.
| * bpo-35886: Make PyInterpreterState an opaque type in the public API. (GH-11731)Eric Snow2019-02-231-0/+2
| | | | | | Move PyInterpreterState into the "internal" header files.
| * bpo-36016: Add generation option to gc.getobjects() (GH-11909)Pablo Galindo2019-02-231-0/+2
| |
| * bpo-36019: Use pythontest.net instead of example.com in network tests (GH-11941)Stéphane Wirtel2019-02-221-0/+2
| |
| * bpo-35904: Add statistics.fmean() (GH-11892)Raymond Hettinger2019-02-211-0/+2
| |
| * bpo-36052: Raise a SyntaxError when assigning a value to __debug__ with := ↵Stéphane Wirtel2019-02-211-0/+2
| | | | | | | | | | | | | | (GH-11958) 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.
| * bpo-33989: Ensure that ms.key_compare is always initialized in ↵Zackery Spytz2019-02-211-0/+2
| | | | | | | | list_sort_impl(). (GH-8710)
| * bpo-36012: Avoid linear slot search for non-dunder methods (GH-11907)Stefan Behnel2019-02-201-0/+2
| |
| * bpo-35993: Fix _PyInterpreterState_DeleteExceptMain() (GH-11852)Stéphane Wirtel2019-02-201-0/+1
| | | | | | Fix a crash on fork when using subinterpreters.
| * bpo-12822: use monotonic clock for condvar if possible (GH-11723)Inada Naoki2019-02-201-0/+2
| |
| * bpo-36037: Fix test_ssl for strict OpenSSL policy (GH-11940)Victor Stinner2019-02-191-0/+3
| | | | | | | | | | 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-191-0/+3
| | | | | | Allow to add HTTP headers to XML-RPC requests sent to the server.
| * bpo-31506: Clarify error messages for object.__new__ and object.__init__ ↵Sanyam Khurana2019-02-191-0/+3
| | | | | | | | | | | | | | | | | | (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.
| * bpo-35798: Add test.support.check_syntax_warning(). (#11895)Serhiy Storchaka2019-02-191-0/+1
| | | | | | | | | | | | | | 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-191-0/+1
| |
| * bpo-34572: change _pickle unpickling to use import rather than retrieving ↵tjb9002019-02-181-0/+3
| | | | | | | | | | 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-181-0/+4
| | | | | | | | | | | | 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-181-0/+2
| | | | | | | | | | 0x20000000 (GH-11500) https://bugs.python.org/issue35704
| * bpo-35942: Improve the error message if __fspath__ returns invalid types in ↵Pablo Galindo2019-02-181-0/+3
| | | | | | | | | | 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-171-0/+2
| | | | | | | | 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.
* | automatize -> automateGregory P. Smith2019-02-181-1/+1
| |
* | merge from masterGiampaolo Rodola2019-02-1719-1/+35
|\ \ | |/
| * bpo-34720: Fix test_importlib.test_bad_traverse for AIX (GH-9391)Michael Felt2019-02-171-0/+2
| | | | | | | | | | | | 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-1054041: Exit properly after an uncaught ^C. (#11862)Gregory P. Smith2019-02-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.