Mailing List Archive

[issue2863] Generator __name__ and better repr()
New submission from Georg Brandl <georg@python.org>:

As discussed on python-ideas:
http://mail.python.org/pipermail/python-ideas/2008-May/001570.html

----------
assignee: gvanrossum
components: Interpreter Core
files: gen-name.diff
keywords: patch, patch
messages: 66859
nosy: georg.brandl, gvanrossum
priority: normal
severity: normal
status: open
title: Generator __name__ and better repr()
type: feature request
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file10332/gen-name.diff

__________________________________
Tracker <report@bugs.python.org>
<http://bugs.python.org/issue2863>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue2863] Generator __name__ and better repr() [ In reply to ]
svncodereview <svncodereview@gmail.com> added the comment:

Dear report,

New code review comments by GvR have been published.
Please go to http://codereview.appspot.com/1046 to read them.

Message:
Looks good to me.

Details:

Issue Description:
http://bugs.python.org/issue2863

Sincerely,

Your friendly code review daemon (http://codereview.appspot.com/).

----------
nosy: +svncodereview

__________________________________
Tracker <report@bugs.python.org>
<http://bugs.python.org/issue2863>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue2863] Generator __name__ and better repr() [ In reply to ]
Georg Brandl <georg@python.org> added the comment:

Okay, committed as r63320.

----------
resolution: -> accepted
status: open -> closed

__________________________________
Tracker <report@bugs.python.org>
<http://bugs.python.org/issue2863>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue2863] Generator __name__ and better repr() [ In reply to ]
Alexander Belopolsky <belopolsky@users.sourceforge.net> added the comment:

Any reason why generator object repr is formed differently from
function and code?

>>> def f(): yield 1
...
>>> f()
<f generator object at 0x2a98530560>
>>> f
<function f at 0x2a985245a0>
>>> f.__code__
<code object f at 0x2a956bc040, file "<stdin>", line 1>

----------
nosy: +belopolsky

__________________________________
Tracker <report@bugs.python.org>
<http://bugs.python.org/issue2863>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue2863] Generator __name__ and better repr() [ In reply to ]
Georg Brandl <georg@python.org> added the comment:

Changed in r63364.

__________________________________
Tracker <report@bugs.python.org>
<http://bugs.python.org/issue2863>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com