- 27 May, 2019 6 kayıt (commit)
-
-
Rémi Lapeyre yazdı
-
-
Xtreak yazdı
Handle late binding and attribute access in unittest.mock.AsyncMock setup for autospeccing.
-
Yury Selivanov yazdı
This will address the common mistake many asyncio users make: an "except Exception" clause breaking Tasks cancellation. In addition to this change, we stop inheriting asyncio.TimeoutError and asyncio.InvalidStateError from their concurrent.futures.* counterparts. There's no point for these exceptions to share the inheritance chain. In 3.9 we'll focus on implementing supervisors and cancel scopes, which should allow better handling of all exceptions, including SystemExit and KeyboardInterrupt
-
Yury Selivanov yazdı
This makes it easy to play with asyncio APIs with simply using async/await in the REPL.
-
Victor Stinner yazdı
* sys.unraisablehook: add 'err_msg' field to UnraisableHookArgs. * Use _PyErr_WriteUnraisableMsg() in _ctypes _DictRemover_call() and gc delete_garbage().
-
- 26 May, 2019 10 kayıt (commit)
-
-
Ivan Levkivskyi yazdı
-
Raymond Hettinger yazdı
-
Chih-Hsuan Yen yazdı
Constant.kind is added in https://bugs.python.org/issue36280. Current possible values for Constant.kind are "u" or None. For r'bar' and b'bar', Constant.kind value is None, so there's no need for special handling. https://bugs.python.org/issue37053
-
Antoine Pitrou yazdı
-
Anthony Sottile yazdı
-
Julien Palard yazdı
* No type cache for types with specialized mro, invalidation is hard. * FIX: Don't disable method cache custom types that do not implement mro(). * fixing implem. * Avoid storing error flags, also decref. * news entry * Clear as soon as we're getting an error. * FIX: Reference leak.
-
Ivan Levkivskyi yazdı
The implementation is straightforward and essentially is just copied from `typing_extensions`.
-
Ivan Levkivskyi yazdı
The implementation is straightforward and essentially is just copied from `typing_extensions`.
-
Ivan Levkivskyi yazdı
The implementation is straightforward, it just mimics `ClassVar` (since the latter is also a name/access qualifier, not really a type). Also it is essentially copied from `typing_extensions`.
-
Michael J. Sullivan yazdı
Update PyObject_CallMethodObjArgs and _PyObject_CallMethodIdObjArgs to use _PyObject_GetMethod to avoid creating a bound method object in many cases. On a microbenchmark of PyObject_CallMethodObjArgs calling a method on an interpreted Python class, this optimization resulted in a 1.7x speedup.
-
- 25 May, 2019 5 kayıt (commit)
-
-
Julien Palard yazdı
-
Jason R. Coombs yazdı
* bpo-34632: Also include the test data directory. * bpo-34632: remove the framework resources artifacts, accidentally added in 1bbf7b66 (ccbccce)
-
📝 Sviatoslav Sydorenko yazdı*
📝 Add a GitHub-specific security page It will show up @ https://github.com/python/cpython/security/policy allowing to navigate users who get there from "Security" tab in the GitHub repo to the full article explaining the security vulnerability reporting practices. Co-Authored-By:Hugo <hugovk@users.noreply.github.com>
-
Chih-Hsuan Yen yazdı
-
Terry Jan Reedy yazdı
-
- 24 May, 2019 19 kayıt (commit)
-
-
Jason R. Coombs yazdı
Add importlib.metadata module as forward port of the standalone importlib_metadata.
-
Victor Stinner yazdı
catch_unraisable_exception() now also removes its 'unraisable' attribute at the context manager exit.
-
Victor Stinner yazdı
-
Pablo Galindo yazdı
-
Victor Stinner yazdı
-
Rémi Lapeyre yazdı
-
Victor Stinner yazdı
-
Steve Dower yazdı
-
Berker Peksag yazdı
-
E. M. Bray yazdı
Add also missing AC_MSG_RESULT for AC_MSG_CHECKING(MACHDEP).
-
Victor Stinner yazdı
-
Paul Monson yazdı
-
E. M. Bray yazdı
It is also possible to link against a library or executable with a statically linked libpython, but not both with the same DLL. In fact building a statically linked python is currently broken on Cygwin for other (related) reasons. The same problem applies to other POSIX-like layers over Windows (MinGW, MSYS) but Python's build system does not seem to attempt to support those platforms at the moment.
-
Victor Stinner yazdı
* Fix a possible reference leak in _PyErr_Print() if exception is NULL. * PyErr_BadInternalCall(): replace PyErr_Format() with _PyErr_SetString(). * Add pycore_pyerrors.h header file. * New functions: * _PyErr_Clear() * _PyErr_Fetch() * _PyErr_Print() * _PyErr_Restore() * _PyErr_SetObject() * _PyErr_SetString() * Add 'tstate' parameter to _PyEval_AddPendingCall().
-
Nick Sung yazdı
-
Victor Stinner yazdı
PyOS_AfterFork_Child(): _PyInterpreterState_DeleteExceptMain() must be called after _PyRuntimeState_ReInitThreads(). _PyRuntimeState_ReInitThreads() resets interpreters mutex after fork, mutex used by _PyInterpreterState_DeleteExceptMain().
-
Victor Stinner yazdı
-
Victor Stinner yazdı
Add 'PyThreadState *tstate' parameter to errors.c functions to avoid relying on global variables (indirectly on _PyRuntime).
-
Victor Stinner yazdı
Remove main_thread and main_interp variables from signalmodule.c: reuse _PyRuntime which already track the main thread and the main interpreter. * Remove #include <sys/types.h> which became useless: getpid() call has been removed. * Add runtime argument to is_main() * is_main() now gets the interpreter from runtime.
-