summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* tbpo-36402: Fix threading.Thread._stop() (GH-14047)Victor Stinner2019-06-132-1/+25
| | | Remove the _tstate_lock from _shutdown_locks, don't remove None.
* bpo-37231: optimize calls of special methods (GH-13973)Jeroen Demeyer2019-06-132-72/+88
|
* bpo-37253: Remove PyAST_obj2mod_ex() function (GH-14020)Victor Stinner2019-06-133-12/+0
| | | | PyAST_obj2mod_ex() is similar to PyAST_obj2mod() with an additional 'feature_version' parameter which is unused.
* bpo-35070: test_getgrouplist may fail on macOS if too many groups (GH-13071)Jeffrey Kintscher2019-06-132-15/+19
|
* bpo-37216: update version to 3.9 in mac using document (GH-13966)Makdon2019-06-131-2/+2
|
* bpo-37257: obmalloc: stop simple arena thrashing (#14039)Tim Peters2019-06-132-2/+8
| | | | | GH-14039: allow (no more than) one wholly empty arena on the usable_arenas list. This prevents thrashing in some easily-provoked simple cases that could end up creating and destroying an arena on each loop iteration in client code. Intuitively, if the only arena on the list becomes empty, it makes scant sense to give it back to the system unless we know we'll never need another free pool again before another arena frees a pool. If the latter obtains, then - yes - this will "waste" an arena.
* Add 3.9 whatsnew file (GH-14040)Ned Deily2019-06-132-0/+116
|
* bpo-37253: Fix typo in PyCompilerFlags doc (GH-14036)Victor Stinner2019-06-131-1/+1
| | | Remove ";" to fix Sphinx formatting.
* bpo-37253: Add _PyCompilerFlags_INIT macro (GH-14018)Victor Stinner2019-06-138-29/+15
| | | | | Add a new _PyCompilerFlags_INIT macro to initialize PyCompilerFlags variables, rather than initializing cf_flags and cf_feature_version explicitly in each variable.
* bpo-37253: Document PyCompilerFlags.cf_feature_version (GH-14019)Victor Stinner2019-06-132-4/+20
| | | | | * Update PyCompilerFlags structure documentation. * Document the new cf_feature_version field in the Changes in the C API section of the What's New in Python 3.8 doc.
* bpo-36402: Fix threading._shutdown() race condition (GH-13948)Victor Stinner2019-06-123-12/+96
| | | | | | | | | | | | | Fix a race condition at Python shutdown when waiting for threads. Wait until the Python thread state of all non-daemon threads get deleted (join all non-daemon threads), rather than just wait until Python threads complete. * Add threading._shutdown_locks: set of Thread._tstate_lock locks of non-daemon threads used by _shutdown() to wait until all Python thread states get deleted. See Thread._set_tstate_lock(). * Add also threading._shutdown_locks_lock to protect access to threading._shutdown_locks. * Add test_finalization_shutdown() test.
* bpo-36779: time.tzname returns empty string on Windows if default cod… ↵Paul Monson2019-06-122-0/+16
| | | | | | | | | | | | | | | (GH-13073) Calling setlocale(LC_CTYPE, "") on a system where GetACP() returns CP_UTF8 results in empty strings in _tzname[]. This causes time.tzname to be an empty string. I have reported the bug to the UCRT team and will follow up, but it will take some time get a fix into production. In the meantime one possible workaround is to temporarily change the locale by calling setlocale(LC_CTYPE, "C") before calling _tzset and restore the current locale after if the GetACP() == CP_UTF8 or CP_UTF7 @zooba https://bugs.python.org/issue36779
* bpo-37069: regrtest uses sys.unraisablehook (GH-13759)Victor Stinner2019-06-124-1/+57
| | | | | | | | regrtest now uses sys.unraisablehook() to mark a test as "environment altered" (ENV_CHANGED) if it emits an "unraisable exception". Moreover, regrtest logs a warning in this case. Use "python3 -m test --fail-env-changed" to catch unraisable exceptions in tests.
* bpo-37223, test_io: silence last 'Exception ignored in:' (GH-14029)Victor Stinner2019-06-121-0/+5
| | | | | | Use catch_unraisable_exception() to ignore 'Exception ignored in:' error when the internal BufferedWriter of the BufferedRWPair is destroyed. The C implementation doesn't give access to the internal BufferedWriter, so just ignore the warning instead.
* Make asyncio stream sendfile fail on error (was hang) (GH-14025)Andrew Svetlov2019-06-121-5/+8
|
* bpo-37236: pragma optimize off for _Py_c_quot on Windows arm64 (GH-13983)Paul Monson2019-06-121-0/+7
|
* bpo-37201: fix test_distutils failures for Windows ARM64 (GH-13902)Paul Monson2019-06-125-3/+13
|
* bpo-37160: Thread native ID NetBSD support (GH-13835)David Carlier2019-06-125-3/+9
|
* bpo-35545: Skip `test_asyncio.test_create_connection_ipv6_scope` on AIX ↵Michael Felt2019-06-121-0/+2
| | | | | | | | | | | (GH-14011) because "getaddrinfo()" behaves different on AIX https://bugs.python.org/issue35545
* bpo-29505: Fuzz json module, enforce size limit on int(x) fuzz (GH-13991)Ammar Askar2019-06-1210-1/+171
| | | | | * bpo-29505: Enable fuzz testing of the json module, enforce size limit on int(x) fuzz and json input size to avoid timeouts. Contributed by by Ammar Askar for Google.
* bpo-32625: Updated documentation for EXTENDED_ARG. (GH-13985)Yao Zuo2019-06-121-4/+4
| | | Python 3.6 changed the size of bytecode instruction, while the documentation for `EXTENDED_ARG` was not updated accordingly.
* bpo-26219: Fix compiler warning in _PyCode_InitOpcache() (GH-13997)Victor Stinner2019-06-121-1/+1
| | | | | | | Fix MSVC warning: objects\codeobject.c(285): warning C4244: '=': conversion from 'Py_ssize_t' to 'unsigned char', possible loss of data
* bpo-36918: Fix "Exception ignored in" in test_urllib (GH-13996)Victor Stinner2019-06-121-6/+15
| | | | Mock the HTTPConnection.close() method in a few unit tests to avoid logging "Exception ignored in: ..." messages.
* bpo-35766: compile(): rename feature_version parameter (GH-13994)Victor Stinner2019-06-124-10/+16
| | | | | | Rename compile() feature_version parameter to _feature_version and convert it to a keyword-only parameter. Update also test_type_comments to pass feature_version as a tuple.
* bpo-35766: Change format for feature_version to (major, minor) (GH-13992)Guido van Rossum2019-06-124-10/+19
| | | | | | | (A single int is still allowed, but undocumented.) https://bugs.python.org/issue35766
* bpo-37238: Enable building for Windows using Visual Studio 2019 (GH-13988)Paul Monson2019-06-112-1/+2
|
* bpo-35766: What's new in the ast and typing modules (#13984)Guido van Rossum2019-06-111-0/+46
|
* Fix test_posix if RWF_HIPRI is defined but not preadv2. (GH-13980)Benjamin Peterson2019-06-111-0/+2
| | | If preadv2 is not available, preadv will raise NotImplementedError.
* closes bpo-33758: Skip test_get_type_hints_modules_forwardref. (GH-13977)Benjamin Peterson2019-06-111-2/+2
| | | This test "works" if things are run in the right order, so it's better to use @skip than @expectedFailure here.
* bpo-36607: Eliminate RuntimeError raised by asyncio.all_tasks() (GH-13971)Andrew Svetlov2019-06-112-6/+34
| | | | | | | If internal tasks weak set is changed by another thread during iteration. https://bugs.python.org/issue36607
* bpo-37219: Remove erroneous optimization for differencing an empty set ↵Raymond Hettinger2019-06-113-8/+7
| | | | | | (GH-13965)
* closes bpo-35184: Fix XML_POOR_ENTROPY option that breaks makesetup parsing ↵aaronpaulhurst2019-06-111-1/+1
| | | | | | | | of pyexpat line in Setup. (GH-13064) When the line is uncommented, the equals character causes it to be incorrectly interpreted as a macro definition by makesetup. This results in invalid Makefile output. The expat code only requires XML_POOR_ENTROPY to be defined; the value is unnecessary.
* bpo-37223: test_io: silence destructor errors (GH-13954)Victor Stinner2019-06-111-0/+10
| | | Implement also MockNonBlockWriterIO.seek() method.
* bpo-18748: Fix _pyio.IOBase destructor (closed case) (GH-13952)Victor Stinner2019-06-112-0/+12
| | | | _pyio.IOBase destructor now does nothing if getting the closed attribute fails to better mimick _io.IOBase finalizer.
* bpo-37215: Fix dtrace issue introduce by bpo-36842 (GH-13940)Christian Heimes2019-06-102-5/+6
| | | | | | Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue37215
* Do not use explicit inheritance from object in the documentation. (GH-13936)Serhiy Storchaka2019-06-103-14/+14
|
* bpo-36785: PEP 574 What's New entry (#13931)Antoine Pitrou2019-06-091-1/+17
|
* Add some placeholder notes for major 3.8 features (GH-13927)Nick Coghlan2019-06-091-0/+7
|
* bpo-11122: fix hardcoded path checking for rpmbuild in bdist_rpm.py (GH-10594)Marcin Niemira2019-06-082-4/+2
|
* bpo-37178: Allow a one argument form of math.perm() (GH-13905)Raymond Hettinger2019-06-086-9/+34
|
* bpo-34886: Fix subprocess.run handling of exclusive arguments (GH-11727)Rémi Lapeyre2019-06-082-2/+7
| | | | | | Fix an unintended ValueError from :func:`subprocess.run` when checking for conflicting `input` and `stdin` or `capture_output` and `stdout` or `stderr` args when they were explicitly provided but with `None` values within a passed in `**kwargs` dict rather than as passed directly by name.
* bpo-29505: Fix interpreter in fuzzing targets to be relocatable (GH-13907)Ammar Askar2019-06-081-0/+8
|
* bpo-37173: Show passed class in inspect.getfile error (GH-13861)Philipp A2019-06-083-3/+22
| | | | | | | | | | | | | Currently, inspect.getfile(str) will report nonsense: ```pytb >>> inspect.getfile(str) TypeError: <module 'builtins' (built-in)> is a built-in class ``` This fixes that https://bugs.python.org/issue37173
* cross port importlib-metadata PR #76 (#13903)Anthony Sottile2019-06-074-0/+4
| | | https://gitlab.com/python-devs/importlib_metadata/merge_requests/76
* bpo-37150: Throw ValueError if FileType class object was passed in ↵zygocephalus2019-06-073-0/+23
| | | | | | | | | | | | | | add_argument (GH-13805) There is a possibility that someone (like me) accidentally will omit parentheses with `FileType` arguments after `FileType`, and parser will contain wrong file until someone will try to use it. Example: ```python parser = argparse.ArgumentParser() parser.add_argument('-x', type=argparse.FileType) ``` https://bugs.python.org/issue37150
* bpo-37138: fix undefined behaviour with memcpy() on NULL array (GH-13867)Jeroen Demeyer2019-06-071-1/+5
|
* bpo-37181: Fix test_regrtest failures on Windows arm64 (GH-13872)Paul Monson2019-06-073-3/+8
|
* bpo-37191: Move TestPEP590 from test_capi to test_call (GH-13892)Victor Stinner2019-06-072-115/+123
|
* bpo-37169: Rewrite _PyObject_IsFreed() unit tests (GH-13888)Victor Stinner2019-06-073-27/+30
| | | | | Replace two Python function calls with a single one to ensure that no memory allocation is done between the invalid object is created and when _PyObject_IsFreed() is called.
* bpo-37151: simplify classmethoddescr_call (GH-13340)Jeroen Demeyer2019-06-072-30/+18
|