[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset aa85e8d729ae by Victor Stinner in branch 'default': Issue #21205: Add a new ``__qualname__`` attribute to generator, the qualified http://hg.python.org/cpython/rev/aa85e8d729ae -- nosy: +python-dev ___

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-16 Thread STINNER Victor
STINNER Victor added the comment: Ok, this issue is now fixed in Python 3.5. For Python 2.7 and 3.4, it may be possible to change how the generator name is set (from the function, not from the code object). It might break the backward compatibility, even if I don't think that anyone rely on

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 901a8265511a by Victor Stinner in branch 'default': Issue #21205: Fix unit tests http://hg.python.org/cpython/rev/901a8265511a -- ___ Python tracker rep...@bugs.python.org

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 16/06/2014 10:20, STINNER Victor a écrit : What do you think for Python 2.7 and 3.4: would you be ok to change also the generator name? I can write a patch which adds a new gi_name but the name would not be modifiable to limit the incompatible changes. I

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-16 Thread STINNER Victor
STINNER Victor added the comment: Antoine Pitrou wrote: I don't think it is worthwhile. Ok, let's keep the issue closed then ;-) Thanks for the review Antoine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21205

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 28b3b8b22654 by Victor Stinner in branch 'default': Issue #21205: Complete the versionchanged note in inspect documentation http://hg.python.org/cpython/rev/28b3b8b22654 -- ___ Python tracker

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-13 Thread STINNER Victor
STINNER Victor added the comment: Updated patch: names must now be strings and cannot be deleted; make _PyEval_EvalCodeWithName private. -- Added file: http://bugs.python.org/file35611/gen_qualname-3.patch ___ Python tracker rep...@bugs.python.org

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-12 Thread STINNER Victor
STINNER Victor added the comment: Discussion on python-dev: https://mail.python.org/pipermail/python-dev/2014-June/135026.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21205 ___

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-12 Thread STINNER Victor
STINNER Victor added the comment: @Antoine: Can you please review gen_qualname.patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21205 ___

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Your patch doesn't have a review link. Perhaps it should be regenerated against updated default? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21205 ___

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-12 Thread STINNER Victor
STINNER Victor added the comment: Updated patch, rebased on the default branch. I add a minor unit test (modify also gen.__name__). -- Added file: http://bugs.python.org/file35603/gen_qualname-2.patch ___ Python tracker rep...@bugs.python.org

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-11 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: Add a name to Python generators - Add __qualname__ attribute to Python generators and change default __name__ ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21205

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-11 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21205 ___ ___ Python-bugs-list