- 09 Sep, 2016 40 commits
-
-
Steve Dower authored
-
Steve Dower authored
-
Benjamin Peterson authored
-
Eric Snow authored
-
Zachary Ware authored
-
Zachary Ware authored
-
Steve Dower authored
-
Zachary Ware authored
-
Zachary Ware authored
-
Zachary Ware authored
-
Zachary Ware authored
-
Guido van Rossum authored
This is now an official "protected" API that can be used to write classes that are duck-type-compatible with Future without subclassing it. (For that purpose I also changed isinstance(result, Future) to check for this attribute instead.) Hopefully Amber Brown can use this to make Twisted.Deferred compatible with asyncio.Future. Tests and docs are TBD. (Also there are more isinstance() checks to fix.)
-
Zachary Ware authored
-
Zachary Ware authored
-
Guido van Rossum authored
This is now an official "protected" API that can be used to write classes that are duck-type-compatible with Future without subclassing it. (For that purpose I also changed isinstance(result, Future) to check for this attribute instead.) Hopefully Amber Brown can use this to make Twisted.Deferred compatible with asyncio.Future. Tests and docs are TBD.
-
Benjamin Peterson authored
-
Victor Stinner authored
-
Victor Stinner authored
Issue #27830: Add _PyObject_FastCallKeywords(): avoid the creation of a temporary dictionary for keyword arguments. Other changes: * Cleanup call_function() and fast_function() (ex: rename nk to nkwargs) * Remove now useless do_call(), replaced with _PyObject_FastCallKeywords()
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
issue14976.
-
issue14976.
-
-
Steve Dower authored
-
R David Murray authored
This is buggy in the old email code as well, but it doesn't affect anything there because only the default line length is ever used there.
-
Steve Dower authored
-
Steve Dower authored
-
Victor Stinner authored
Issue #27213: Rework CALL_FUNCTION* opcodes to produce shorter and more efficient bytecode: * CALL_FUNCTION now only accepts position arguments * CALL_FUNCTION_KW accepts position arguments and keyword arguments, but keys of keyword arguments are packed into a constant tuple. * CALL_FUNCTION_EX is the most generic, it expects a tuple and a dict for positional and keyword arguments. CALL_FUNCTION_VAR and CALL_FUNCTION_VAR_KW opcodes have been removed. 2 tests of test_traceback are currently broken: skip test, the issue #28050 was created to track the issue. Patch by Demur Rumed, design by Serhiy Storchaka, reviewed by Serhiy Storchaka and Victor Stinner.
-
-
Steve Dower authored
-
Eric Snow authored
-
Benjamin Peterson authored
-
Guido van Rossum authored
By Michael Lee.
-
Yury Selivanov authored
-
Steve Dower authored
-
Steve Dower authored
-
Benjamin Peterson authored
-
Zachary Ware authored
This test file is a holdover from the days before hashlib, and doesn't seem to have anything of value in it.
-
Eric Snow authored
-
Brett Cannon authored
-