summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-01-26 14:14:20 (GMT)
committerGeorg Brandl <georg@python.org>2008-01-26 14:14:20 (GMT)
commit0cdf9a36ec1b65a655a8af476077c7dd063d87da (patch)
tree0f4068bc8a244ef237f93cb61227dfdf9161f2ea /Misc
parent29604a1b4c09ae6efc47fa0f34412168a34aa7dd (diff)
downloadcpython-0cdf9a36ec1b65a655a8af476077c7dd063d87da.zip
cpython-0cdf9a36ec1b65a655a8af476077c7dd063d87da.tar.gz
cpython-0cdf9a36ec1b65a655a8af476077c7dd063d87da.tar.bz2
#1473257: add generator.gi_code attribute that refers to
the original code object backing the generator. Patch by Collin Winter.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS6
1 files changed, 5 insertions, 1 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 1603418..2d46357 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,7 +12,11 @@ What's New in Python 2.6 alpha 1?
Core and builtins
-----------------
-- Backport of PyUnicode_FromString(), _FromStringAndSize(), _Format and
+- Patch #1473257: generator objects gain a gi_code attribute. This is the
+ same object as the func_code attribute of the function that produced the
+ generator.
+
+ Backport of PyUnicode_FromString(), _FromStringAndSize(), _Format and
_FormatV from Python 3.0. Made PyLong_AsSsize_t and PyLong_FromSsize_t
public functions.