- 13 Jun, 2019 2 commits
-
-
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
-
- 08 Jun, 2019 5 commits
-
-
Marcin Niemira authored
-
Raymond Hettinger authored
-
Rémi Lapeyre authored
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.
-
Ammar Askar authored
-
Philipp A authored
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
-
- 07 Jun, 2019 5 commits
-
-
zygocephalus authored
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
-
Jeroen Demeyer authored
-
Paul Monson authored
-
Victor Stinner authored