90 Commits (3746619b84158dfdceaa837fc3e400a98d52fb17)

Author SHA1 Message Date
Victor Stinner f7d199ff32 Fix _PyGen_yf() 9 years ago
Yury Selivanov 41782e4970 Issue #28721: Fix asynchronous generators aclose() and athrow() 9 years ago
Yury Selivanov 29310c47a7 Issue #28003: Make WrappedVal, ASend and AThrow GC types 9 years ago
Yury Selivanov 33499b7eed genobject: Remove unnecessary tp_free slots from aiter_wrapper and coro_wrapper 9 years ago
Serhiy Storchaka 24411f8a8d Issue #23996: Added _PyGen_SetStopIterationValue for safe raising 9 years ago
Serhiy Storchaka 467ab194fc Issue #28410: Added _PyErr_FormatFromCause() -- the helper for raising 9 years ago
Serhiy Storchaka ab8740058a Issue #27129: Replaced wordcode related magic constants with macros. 10 years ago
Yury Selivanov eb6364557f Issue #28003: Implement PEP 525 -- Asynchronous Generators. 10 years ago
Christian Heimes 884332b45a Add NULL check for gen->gi_code in gen_send_ex() 10 years ago
Benjamin Peterson b88db8745b supress coroutine warning when an exception is pending (#27968) 10 years ago
Benjamin Peterson bdddb11b0e clear out f_gen during generator finalization (closes #27812) 10 years ago
Benjamin Peterson 2f40ed4b94 do not allow _PyGen_Finalize to fail (closes #27811) 10 years ago
Victor Stinner 3466bde1cc Avoid calling functions with an empty string as format string 10 years ago
Yury Selivanov a6f6edbda8 Issue #27243: Fix __aiter__ protocol 10 years ago
Serhiy Storchaka b0f80b0312 Issue #26647: Python interpreter now uses 16-bit wordcode instead of bytecode. 10 years ago
Yury Selivanov c724bae51c coroutines: Error when awaiting on coroutine that's being awaited 10 years ago
Yury Selivanov 77c96813ab Issue #25887: Raise a RuntimeError when a coroutine is awaited more than once. 10 years ago
Martin Panter 7e3a91a5fc Issue #26136: Upgrade the generator_stop warning to DeprecationWarning 10 years ago
Serhiy Storchaka 576f132b98 Issue #20440: Cleaning up the code by using Py_SETREF. 10 years ago
Yury Selivanov e13f8f3cab Issue #24450: Add gi_yieldfrom to generators; cr_await to coroutines. 11 years ago
Yury Selivanov 66f8828bfc Issue #24439: Improve PEP 492 related docs. 11 years ago
Yury Selivanov 5376ba9630 Issue #24400: Introduce a distinct type for 'async def' coroutines. 11 years ago
Yury Selivanov 6ef059097c Issue 24017: Drop getawaitablefunc and friends in favor of unaryfunc. 11 years ago
Yury Selivanov 683333955a Issue 24237: Raise PendingDeprecationWarning per PEP 479 11 years ago
Serhiy Storchaka 08d230a540 Issue #24257: Fixed incorrect uses of PyObject_IsInstance(). 11 years ago
Yury Selivanov df52e67d85 Fix warnings for gen_get_iter() 11 years ago
Yury Selivanov 7544508f02 PEP 0492 -- Coroutines with async and await syntax. Issue #24017. 11 years ago
Yury Selivanov 18c30a29f8 Issue #22906: Do incref before SetCause/SetContext 11 years ago
Yury Selivanov 80e4dbea0e Issue 22906: Increment refcount after PyException_SetContext 11 years ago
Yury Selivanov 8170e8c0d1 PEP 479: Change StopIteration handling inside generators. 11 years ago
Antoine Pitrou 7403e91630 Issue #23996: Avoid a crash when a delegated generator raises an unnormalized StopIteration exception. Patch by Stefan Behnel. 11 years ago
Antoine Pitrou 667f545e03 Issue #21938: simplify gen_iternext() 12 years ago
Victor Stinner 40ee30181f Issue #21205: Add a new ``__qualname__`` attribute to generator, the qualified 12 years ago
Victor Stinner 1310510793 Issue #14432: Generator now clears the borrowed reference to the thread state 12 years ago
Antoine Pitrou 58720d6145 Issue #17934: Add a clear() method to frame objects, to help clean up expensive details (local variables) and break reference cycles. 13 years ago
Antoine Pitrou 796564c27b Issue #18112: PEP 442 implementation (safe object finalization). 13 years ago
Antoine Pitrou 9396356948 Backout c89febab4648 following private feedback by Guido. 13 years ago
Antoine Pitrou 04e70d19e7 Issue #17807: Generators can now be finalized even when they are part of a reference cycle. 13 years ago
Benjamin Peterson c9314d9e08 don't run frame if it has no stack (closes #17669) 13 years ago
Nick Coghlan 5b0dac12b8 Issue #13783: PEP 380 cleanup part 2, using the new identifier APIs in the generator implementation 14 years ago
Nick Coghlan c40bc09942 Issue #13783: the PEP 380 implementation no longer expands the public C API 14 years ago
Benjamin Peterson d62da9d658 close() doesn't take any args (closes #14717) 14 years ago
Benjamin Peterson ab3da290fe close() doesn't take any args (closes #14717) 14 years ago
Benjamin Peterson f50af113ab space 14 years ago
Benjamin Peterson 2afe6aeae8 perform yield from delegation by repeating YIELD_FROM opcode (closes #14230) 14 years ago
Benjamin Peterson 657e9ebef5 make gi_running a boolean 14 years ago
Benjamin Peterson 9fc309083a indicate we're not running as we leave this block 14 years ago
Benjamin Peterson 099a78fe6d make delegating generators say they running (closes #14220) 14 years ago
Amaury Forgeot d'Arc e557da804a Fix a crash when the return value of a subgenerator is a temporary 14 years ago
Nick Coghlan 1f7ce62bd6 Implement PEP 380 - 'yield from' (closes #11682) 14 years ago