diff options
author | Georg Brandl <georg@python.org> | 2008-05-16 09:34:48 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-16 09:34:48 (GMT) |
commit | 5ffad6646eacf305afaf2ba6b2a738c16257ee0e (patch) | |
tree | 0e639e8ffb5bf1d73cfac91c0a8a536d3aa4424c /Objects/genobject.c | |
parent | a8eaf8faf30bd5c4ce84ef44376b862237a606c3 (diff) | |
download | cpython-5ffad6646eacf305afaf2ba6b2a738c16257ee0e.zip cpython-5ffad6646eacf305afaf2ba6b2a738c16257ee0e.tar.gz cpython-5ffad6646eacf305afaf2ba6b2a738c16257ee0e.tar.bz2 |
Make generator repr consistent with function and code object repr.
Diffstat (limited to 'Objects/genobject.c')
-rw-r--r-- | Objects/genobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/genobject.c b/Objects/genobject.c index 3cd911d..d2ef508 100644 --- a/Objects/genobject.c +++ b/Objects/genobject.c @@ -288,7 +288,7 @@ gen_repr(PyGenObject *gen) code_name = PyString_AsString(((PyCodeObject *)gen->gi_code)->co_name); if (code_name == NULL) return NULL; - return PyString_FromFormat("<%.200s generator object at %p>", + return PyString_FromFormat("<generator object %.200s at %p>", code_name, gen); } |