- 13 Jun, 2019 12 commits
-
-
Victor Stinner authored
The __exit__() method of test.support.catch_unraisable_exception context manager now ignores unraisable exception raised when clearing self.unraisable attribute.
-
Victor Stinner authored
Allow pure Python implementation of pickle to work even when the C _pickle module is unavailable. Fix test_pickle when _pickle is missing: declare PyPicklerHookTests outside "if has_c_implementation:" block.
-
Victor Stinner authored
Remove the _tstate_lock from _shutdown_locks, don't remove None.
-
Jeroen Demeyer authored
-
Victor Stinner authored
PyAST_obj2mod_ex() is similar to PyAST_obj2mod() with an additional 'feature_version' parameter which is unused.
-
Jeffrey Kintscher authored
-
Makdon authored
-
Tim Peters authored
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.
-
Ned Deily authored
-
Victor Stinner authored
Remove ";" to fix Sphinx formatting.
-
Victor Stinner authored
Add a new _PyCompilerFlags_INIT macro to initialize PyCompilerFlags variables, rather than initializing cf_flags and cf_feature_version explicitly in each variable.
-
Victor Stinner authored
* 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.
-
- 12 Jun, 2019 15 commits
-
-
Victor Stinner authored
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.
-
Paul Monson authored
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
-
Victor Stinner authored
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.
-
Victor Stinner authored
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.
-
Andrew Svetlov authored
-
Paul Monson authored
-
Paul Monson authored
-
David Carlier authored
-
Michael Felt authored
because "getaddrinfo()" behaves different on AIX https://bugs.python.org/issue35545
-
Ammar Askar authored
* 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.
-
Yao Zuo authored
Python 3.6 changed the size of bytecode instruction, while the documentation for `EXTENDED_ARG` was not updated accordingly.
-
Victor Stinner authored
Fix MSVC warning: objects\codeobject.c(285): warning C4244: '=': conversion from 'Py_ssize_t' to 'unsigned char', possible loss of data
-
Victor Stinner authored
Mock the HTTPConnection.close() method in a few unit tests to avoid logging "Exception ignored in: ..." messages.
-
Victor Stinner authored
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.
-
Guido van Rossum authored
(A single int is still allowed, but undocumented.) https://bugs.python.org/issue35766
-
- 11 Jun, 2019 9 commits
-
-
Paul Monson authored
-
Guido van Rossum authored
-
Benjamin Peterson authored
If preadv2 is not available, preadv will raise NotImplementedError.
-
Benjamin Peterson authored
This test "works" if things are run in the right order, so it's better to use @skip than @expectedFailure here.
-
Andrew Svetlov authored
If internal tasks weak set is changed by another thread during iteration. https://bugs.python.org/issue36607
-
Raymond Hettinger authored
-
aaronpaulhurst authored
closes bpo-35184: Fix XML_POOR_ENTROPY option that breaks makesetup parsing 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.
-
Victor Stinner authored
Implement also MockNonBlockWriterIO.seek() method.
-
Victor Stinner authored
_pyio.IOBase destructor now does nothing if getting the closed attribute fails to better mimick _io.IOBase finalizer.
-
- 10 Jun, 2019 2 commits
-
-
Christian Heimes authored
Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue37215
-
Serhiy Storchaka authored
-
- 09 Jun, 2019 2 commits
-
-
Antoine Pitrou authored
-
Nick Coghlan authored
-