- 17 Mar, 2017 2 commits
-
-
Marco Buttu authored
Initial patch by Vajrasky Kok.
-
Marco Buttu authored
-
- 16 Mar, 2017 1 commit
-
-
Steve Dower authored
-
- 15 Mar, 2017 3 commits
-
-
Nate authored
Many metaclasses in the standard library don't play nice with __init_subclass__. This bug makes ABCMeta in particular with __init_subclass__, which is an 80/20 solution for me personally. AFAICT, a general solution to this problem requires updating all metaclasses in the standard library to make sure they pass **kwargs to type.__new__, whereas this PR only fixes ABCMeta. For context, see https://bugs.python.org/issue29581. * added a test combining ABCMeta and __init_subclass__ * Added NEWS item
-
-
Michael Seifert authored
-
- 14 Mar, 2017 7 commits
-
-
Donald Stufft authored
-
Victor Stinner authored
* Add _PyObject_HasFastCall() * partial_call() now avoids temporary tuple to pass positional arguments if the callable supports the FASTCALL calling convention for positional arguments. * Fix also a performance regression in partial_call() if the callable doesn't support FASTCALL.
-
Jim Fasarakis-Hilliard authored
-
Ivan Levkivskyi authored
-
INADA Naoki authored
Call abs_paths() only if removeduppaths() changed sys.path
-
INADA Naoki authored
PyEval_Call* APIs are not documented and they doesn't respect PY_SSIZE_T_CLEAN. So add comment block which recommends PyObject_Call* APIs to ceval.h. This commit also changes PyEval_CallMethod and PyEval_CallFunction implementation same to PyObject_CallMethod and PyObject_CallFunction to reduce future maintenance cost. Optimization to avoid temporary tuple are copied too. PyEval_CallFunction(callable, "i", (int)i) now calls callable(i) instead of raising TypeError. But accepting this edge case is backward compatible.
-
Xiang Zhang authored
-
- 13 Mar, 2017 3 commits
-
-
Jelle Zijlstra authored
-
Jelle Zijlstra authored
-
Xiang Zhang authored
-
- 12 Mar, 2017 19 commits
-
-
Oren Milman authored
-
Yury Selivanov authored
-
Nikolay Kim authored
-
Serhiy Storchaka authored
FreeBSD is the only platforms with unsigned FD_SETSIZE.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
if attributes "encoding" or "errors" of sys.stdin or sys.stdout are not set or are not strings.
-
Serhiy Storchaka authored
-
Nick Coghlan authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
Based on patch by Vajrasky Kok.
-
Nick Coghlan authored
Directory and zipfile execution previously added the parent directory of the directory or zipfile as sys.path[0] and then subsequently overwrote it with the directory or zipfile itself. This caused problems in isolated mode, as it overwrote the "stdlib as a zip archive" entry in sys.path, as the parent directory was never added. The attempted fix to that issue in bpo-29319 created the opposite problem in *non*-isolated mode, by potentially leaving the parent directory on sys.path instead of overwriting it. This change fixes the root cause of the problem by removing the whole "add-and-overwrite" dance for sys.path[0], and instead simply never adds the parent directory to sys.path in the first place.
-
Nick Coghlan authored
In git worktree directories, `.git` is a configuration file rather than a subdirectory
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
Based on patch by Vajrasky Kok.
-
Serhiy Storchaka authored
-
Zachary Ware authored
support.unlink waits for the files to be removed before returning
-
Nick Coghlan authored
-
- 11 Mar, 2017 5 commits
-
-
Serhiy Storchaka authored
* bpo-26121: Use C library implementation for math functions: tgamma(), lgamma(), erf() and erfc(). * Don't use tgamma() and lgamma() from libc on OS X.
-
Zachary Ware authored
-
Jelle Zijlstra authored
-
Serhiy Storchaka authored
Based on patch by Vajrasky Kok.
-
Serhiy Storchaka authored
-