48 Commits (cb39d1f466eeecbec969f50a5df609eb0a863084)

Author SHA1 Message Date
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
Benjamin Peterson 9d9141f5db adjust braces a bit 15 years ago
Antoine Pitrou 551ba20e8e Issue #13188: When called without an explicit traceback argument, 15 years ago
Antoine Pitrou a370fcf3b2 Issue #12791: Break reference cycles early when a generator exits with an exception. 15 years ago
Benjamin Peterson f07c9a1e69 this is expressed better as a for loop 15 years ago
Georg Brandl e5b99f0fb3 Remove redundant includes of headers that are already included by Python.h. 15 years ago
Antoine Pitrou 7f14f0d8a0 Recorded merge of revisions 81032 via svnmerge from 16 years ago
Antoine Pitrou f95a1b3c53 Recorded merge of revisions 81029 via svnmerge from 16 years ago
Antoine Pitrou c7c96a90bc Recorded merge of revisions 81029 via svnmerge from 16 years ago
Antoine Pitrou c83ea137d7 Untabify C files. Will watch buildbots. 16 years ago
Georg Brandl 8943caf716 Merged revisions 70642,70648,70656,70661,70765,70773,70789,70824-70825,70828,70830,70832,70836,70838,70842,70851,70855,70857-70858 via svnmerge from 17 years ago
Benjamin Peterson d23f8224e9 Merged revisions 70712,70714,70764-70765,70769-70771,70773,70776-70777,70788-70789,70824,70828,70832,70836,70842,70851,70855,70857,70866-70872,70883,70885,70893-70894,70896-70897,70903,70905-70907,70915,70927,70933,70951,70960,70962-70964,70998,71001,71006,71008,71010-71011,71019,71037,71056,71094,71101-71103,71106,71119,71123,71149-71150,71203,71212,71214-71217,71221,71240 via svnmerge from 17 years ago
Georg Brandl 42827e91ee Fix a wrong struct field assignment (docstring as closure). 17 years ago
Mark Dickinson e94c679df0 Issue #1717: rename tp_compare to tp_reserved. I'll change the 17 years ago
Gregory P. Smith dd96db63f6 This reverts r63675 based on the discussion in this thread: 18 years ago
Christian Heimes 593daf545b Renamed PyString to PyBytes 18 years ago
Alexandre Vassalotti bee325387b Merged revisions 63361-63373,63375,63377-63380 via svnmerge from 18 years ago
Georg Brandl 5ffad6646e Make generator repr consistent with function and code object repr. 18 years ago
Alexandre Vassalotti e9f305fd16 Merged revisions 63208-63209,63211-63212,63214-63217,63219-63224,63226-63227,63229-63232,63234-63235,63237-63239,63241,63243-63246,63250-63254,63256-63259,63261,63263-63264,63266-63267,63269-63270,63272-63273,63275-63276,63278,63280-63281,63283-63284,63286-63287,63289-63290,63292-63293,63295-63296,63298-63299,63301-63302,63304-63305,63307,63309-63314,63316-63322,63324-63325,63327-63335,63337-63338,63340-63342,63344-63346,63348 via svnmerge from 18 years ago
Georg Brandl c91210c06b #2863: add gen.__name__ and add this name to generator repr(). 18 years ago
Christian Heimes af98da18c0 Merged revisions 60284-60349 via svnmerge from 18 years ago
Georg Brandl 0cdf9a36ec #1473257: add generator.gi_code attribute that refers to 18 years ago
Christian Heimes 90aa7646af #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. 18 years ago
Christian Heimes e93237dfcc #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available. 18 years ago
Thomas Wouters 1b7f891f41 Merged revisions 58095-58132,58136-58148,58151-58197 via svnmerge from 19 years ago
Brett Cannon 13bfa3a97b Cause passing a string to generator.throw() to raise a deprecation warning. 19 years ago
Brett Cannon 4c20bc40d7 Generators had their throw() method allowing string exceptions. That's a 19 years ago
Guido van Rossum 33d2689fc9 Merged revisions 56492-56752 via svnmerge from 19 years ago
Martin v. Löwis 9f2e346911 Merged revisions 56467-56482 via svnmerge from 19 years ago
Martin v. Löwis 6819210b9e PEP 3123: Provide forward compatibility with Python 3.0, while keeping 19 years ago
Guido van Rossum bf12cdbb28 Quite a few fixes to make the library and test suite more robust when 20 years ago
Thomas Wouters 4d70c3d9dd Partially merge trunk into p3yk. The removal of Mac/Tools is confusing svn 20 years ago