History log of /external/python/cpython2/Objects/genobject.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
66c6e9dcb4cea8cce36abbd95308aa15b3381bea 13-Dec-2013 Victor Stinner <victor.stinner@gmail.com> Issue #14432: Generator now clears the borrowed reference to the thread state

Fix a crash when a generator is created in a C thread that is destroyed while
the generator is still used. The issue was that a generator contains a frame,
and the frame kept a reference to the Python state of the destroyed C thread.
The crash occurs when a trace function is setup.
/external/python/cpython2/Objects/genobject.c
d62da9d65896a75ff666deca1ee6beb6b900f698 04-May-2012 Benjamin Peterson <benjamin@python.org> close() doesn't take any args (closes #14717)
/external/python/cpython2/Objects/genobject.c
c83ea137d7e717f764e2f31fc2544f522de7d857 09-May-2010 Antoine Pitrou <solipsis@pitrou.net> Untabify C files. Will watch buildbots.
/external/python/cpython2/Objects/genobject.c
42827e91eedfed3c4c5a35c51f93cd9f41ccbad4 31-Mar-2009 Georg Brandl <georg@python.org> Fix a wrong struct field assignment (docstring as closure).
/external/python/cpython2/Objects/genobject.c
dd96db63f689e2f0d8ae5a1436b3b3395eec7de5 09-Jun-2008 Gregory P. Smith <greg@mad-scientist.com> This reverts r63675 based on the discussion in this thread:

http://mail.python.org/pipermail/python-dev/2008-June/079988.html

Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names
in the spirit of 3.0 are available via a #define only. See the email thread.
/external/python/cpython2/Objects/genobject.c
593daf545bd9b7e7bcb27b498ecc6f36db9ae395 26-May-2008 Christian Heimes <christian@cheimes.de> Renamed PyString to PyBytes
/external/python/cpython2/Objects/genobject.c
5ffad6646eacf305afaf2ba6b2a738c16257ee0e 16-May-2008 Georg Brandl <georg@python.org> Make generator repr consistent with function and code object repr.
/external/python/cpython2/Objects/genobject.c
c91210c06b6ba5126879b34692ef6291252f68ad 15-May-2008 Georg Brandl <georg@python.org> #2863: add gen.__name__ and add this name to generator repr().
/external/python/cpython2/Objects/genobject.c
0cdf9a36ec1b65a655a8af476077c7dd063d87da 26-Jan-2008 Georg Brandl <georg@python.org> #1473257: add generator.gi_code attribute that refers to
the original code object backing the generator. Patch by Collin Winter.
/external/python/cpython2/Objects/genobject.c
e93237dfcc4ee4feee62adafb4e7899487ca864b 19-Dec-2007 Christian Heimes <christian@cheimes.de> #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.
/external/python/cpython2/Objects/genobject.c
4c20bc40d73a7f4a977475e4fa02f7c8a43d796a 11-Sep-2007 Brett Cannon <bcannon@gmail.com> Generators had their throw() method allowing string exceptions. That's a
no-no.

Fixes issue #1147. Need to fix 2.5 to raise a proper warning if a string
exception is passed in.
/external/python/cpython2/Objects/genobject.c
6819210b9e4e5719a6f7f9c1725f8fa70a8936f6 21-Jul-2007 Martin v. Löwis <martin@v.loewis.de> PEP 3123: Provide forward compatibility with Python 3.0, while keeping
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and
PyVarObject_HEAD_INIT.
/external/python/cpython2/Objects/genobject.c
96a8c3954cbdb186bc567a490dad8987508ce268 29-May-2006 Georg Brandl <georg@python.org> Make use of METH_O and METH_NOARGS where possible.
Use Py_UnpackTuple instead of PyArg_ParseTuple where possible.
/external/python/cpython2/Objects/genobject.c
81b092d0e60db093c8ed2637deea545cb1de471a 16-Apr-2006 Tim Peters <tim.peters@gmail.com> gen_del(): Looks like much this was copy/pasted from
slot_tp_del(), but while the latter had to cater to types
that don't participate in GC, we know that generators do.
That allows strengthing an assert().
/external/python/cpython2/Objects/genobject.c
447d095976fd532bf1882bf7afeb52473ff8673c 15-Apr-2006 Thomas Wouters <thomas@python.org> - Whitespace normalization
- In functions where we already hold the same object in differently typed
pointers, use the correctly typed pointer instead of casting the other
pointer a second time.
/external/python/cpython2/Objects/genobject.c
8ebb28df3a6e0bce240b6c2aa20d7aa5a4dfef39 15-Apr-2006 Phillip J. Eby <pje@telecommunity.com> Fix SF#1470508: crash in generator cycle finalization. There were two
problems: first, PyGen_NeedsFinalizing() had an off-by-one bug that
prevented it from ever saying a generator didn't need finalizing, and
second, frame objects cleared themselves in a way that caused their
owning generator to think they were still executable, causing a double
deallocation of objects on the value stack if there was still a loop
on the block stack. This revision also removes some unnecessary
close() operations from test_generators that are now appropriately
handled by the cycle collector.
/external/python/cpython2/Objects/genobject.c
3109d62da6c3953d5d818df9e090a2baad9128cd 13-Apr-2006 Anthony Baxter <anthonybaxter@gmail.com> Add a cast to make code compile with a C++ compiler.
/external/python/cpython2/Objects/genobject.c
8920bf24f8eeaf6e8683fd5461b2c1baad325e63 12-Apr-2006 Phillip J. Eby <pje@telecommunity.com> Don't set gi_frame to Py_None, use NULL instead, eliminating some insane
pointer dereferences.
/external/python/cpython2/Objects/genobject.c
017749c33d652b08e2e7c5fb4f4ab8315ab4f644 12-Apr-2006 Neal Norwitz <nnorwitz@gmail.com> wrap docstrings so they are less than 80 columns. add spaces after commas.
/external/python/cpython2/Objects/genobject.c
a5a80cb4a46b031641f56493dbf4821d4f3560b0 12-Apr-2006 Tim Peters <tim.peters@gmail.com> gen_throw(): The caller doesn't own PyArg_ParseTuple()
"O" arguments, so must not decref them. This accounts
for why running test_contextlib.test_main() in a loop
eventually tried to deallocate Py_None.
/external/python/cpython2/Objects/genobject.c
2ba96610bfeda03381dd411d5694fae311159a0c 10-Apr-2006 Phillip J. Eby <pje@telecommunity.com> SF Patch #1463867: Improved generator finalization to allow generators
that are suspended outside of any try/except/finally blocks to be
garbage collected even if they are part of a cycle. Generators that
suspend inside of an active try/except or try/finally block (including
those created by a ``with`` statement) are still not GC-able if they
are part of a cycle, however.
/external/python/cpython2/Objects/genobject.c
bee071221419795d707a15286e08424d141a6ca6 25-Mar-2006 Phillip J. Eby <pje@telecommunity.com> Support throw() of string exceptions.
/external/python/cpython2/Objects/genobject.c
725507b52ec40ab49ad87596fff7434322b9b5b1 07-Mar-2006 Martin v. Löwis <martin@v.loewis.de> Change int to Py_ssize_t in several places.
Add (int) casts to silence compiler warnings.
Raise Python exceptions for overflows.
/external/python/cpython2/Objects/genobject.c
bf36409e2a8171b441d5e0a2f1c9e02d31a35ae8 01-Mar-2006 Brett Cannon <bcannon@gmail.com> PEP 352 implementation. Creates a new base class, BaseException, which has an
added message attribute compared to the previous version of Exception. It is
also a new-style class, making all exceptions now new-style. KeyboardInterrupt
and SystemExit inherit from BaseException directly. String exceptions now
raise DeprecationWarning.

Applies patch 1104669, and closes bugs 1012952 and 518846.
/external/python/cpython2/Objects/genobject.c
967aa8b3496df29f03895b5e30a590d77d337167 14-Feb-2006 Armin Rigo <arigo@tunes.org> * Refcount leak. It was just a reference to Py_None, but still.

* Allow the 3rd argument to generator.throw() to be None.
The 'raise' statement does the same, and anyway it follows the
general policy that optional arguments of built-ins should, when
reasonable, have a default value specifiable from Python.
/external/python/cpython2/Objects/genobject.c
00148226df1af0f6ef120492c07fb5a8013087fc 13-Aug-2005 Phillip J. Eby <pje@telecommunity.com> Fix a too-aggressive assert (see SF#1257960). Previously, gen_iternext
was never called during interpreter shutdown GC, so the f_back!=NULL
assertion was correct. Now that generators get close()d during GC,
the assertion was being triggered because the generator close() was being
called as the top-level frame. However, nothing actually is broken by
this; it's just that the condition was unexpected in previous Python
versions.
/external/python/cpython2/Objects/genobject.c
0d6615fd29063bdaccb13e1fbae542fb666d8728 02-Aug-2005 Phillip J. Eby <pje@telecommunity.com> PEP 342 implementation. Per Guido's comments, the generator throw()
method still needs to support string exceptions, and allow None for the
third argument. Documentation updates are needed, too.
/external/python/cpython2/Objects/genobject.c
75ccea3777f77f001102493170490874166eb3b2 01-Sep-2004 Raymond Hettinger <python@rcn.com> SF patch #1020188: Use Py_CLEAR where necessary to avoid crashes
(Contributed by Dima Dorfman)
/external/python/cpython2/Objects/genobject.c
8d97e33bb76c322cdb08dbf97c26d787cd3488a7 27-Jun-2004 Martin v. Löwis <martin@v.loewis.de> Patch #966493: Cleanup generator/eval_frame exposure.
/external/python/cpython2/Objects/genobject.c
6c7a00fbaaf6f38009c9640650bf9fcf99233d92 12-Jun-2004 Raymond Hettinger <python@rcn.com> * Factor out PyObject_SelfIter().
* Change a XDECREF to DECREF (adding an assertion just to be sure).
/external/python/cpython2/Objects/genobject.c
e440e47e91a93ae57870da8753f9c141c4a37885 01-Jun-2004 Martin v. Löwis <martin@v.loewis.de> Patch #957398: Add public API for Generator Object/Type.
/external/python/cpython2/Objects/genobject.c