[issue13448] PEP 3155 implementation

2012-03-18 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: Doc/library/dis.rst wasn't updated for the extra pop introduced to MAKE_CLOSURE opcode. -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448

[issue13448] PEP 3155 implementation

2011-12-10 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448 ___ ___ Python-bugs-list mailing list

[issue13448] PEP 3155 implementation

2011-12-10 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: I am evaluating the use of __qualname__ in my dtrace probes (issue #13405) and I see things like this: def a() : ... class b() : ... pass ... return b() ... c=a() c __main__.a.locals.b object at 0xfe37f3ac c.__qualname__ Traceback

[issue13448] PEP 3155 implementation

2011-12-10 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: No, it's only class objects that have __name__ and __qualname__, not class instances. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448

[issue13448] PEP 3155 implementation

2011-11-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset e1dbc72bd97f by Antoine Pitrou in branch 'default': PEP 3155 / issue #13448: Qualified name for classes and functions. http://hg.python.org/cpython/rev/e1dbc72bd97f -- nosy: +python-dev

[issue13448] PEP 3155 implementation

2011-11-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Now committed together with docs and a what's new entry. Thanks for the reviews! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue13448] PEP 3155 implementation

2011-11-25 Thread sbt
sbt shibt...@gmail.com added the comment: There are some callables which are missing __qualname__: method_descriptor wrapper_descriptor builtin_function_or_method For the descriptors, at least, obj.__qualname__ should be equivalent to obj.__objclass__.__qualname__ + '.' + obj.__name__

[issue13448] PEP 3155 implementation

2011-11-25 Thread sbt
sbt shibt...@gmail.com added the comment: For builtin_function_or_method it seems obj.__qualname__ should be obj.__self__.__qualname__ + '.' + obj.__name__ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448

[issue13448] PEP 3155 implementation

2011-11-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: There are some callables which are missing __qualname__: method_descriptor wrapper_descriptor builtin_function_or_method For the descriptors, at least, obj.__qualname__ should be equivalent to obj.__objclass__.__qualname__ +

[issue13448] PEP 3155 implementation

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: BTW Antoine, will you update the doc to mention __qualname__ or would you like help? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448

[issue13448] PEP 3155 implementation

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Doc patch looks good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448 ___ ___

[issue13448] PEP 3155 implementation

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: And of course, right after I post this I look at my terminal and see the “Add docs” commit. Ignore me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448

[issue13448] PEP 3155 implementation

2011-11-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- Removed message: http://bugs.python.org/msg148253 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448 ___

[issue13448] PEP 3155 implementation

2011-11-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- Removed message: http://bugs.python.org/msg148252 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448 ___

[issue13448] PEP 3155 implementation

2011-11-24 Thread sbt
sbt shibt...@gmail.com added the comment: Is it intended that pickle will use __qualname__? -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448 ___

[issue13448] PEP 3155 implementation

2011-11-24 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Yes, but that can be a separate patch - step 1 is to make the attribute available, then relevant modules can subsequently be updated to use it as appropriate. -- ___ Python tracker

[issue13448] PEP 3155 implementation

2011-11-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Is it intended that pickle will use __qualname__? That's part of the plan for PEP 3154, yes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448

[issue13448] PEP 3155 implementation

2011-11-23 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Added file: http://bugs.python.org/file23766/942ba1e2f8c1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448 ___

[issue13448] PEP 3155 implementation

2011-11-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: New patch addressing Benjamin's and Victor's comments. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448 ___

[issue13448] PEP 3155 implementation

2011-11-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Ah, PyFunction_NewWithQualName is now public. Why an upper P in PyFunction_NewWithQualName? If you use an upper P, it should use an underscore in Python: __qual_name__ to be consistent. So I suggest to change the C name :-)

[issue13448] PEP 3155 implementation

2011-11-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Why an upper P in PyFunction_NewWithQualName? If you use an upper P, it should use an underscore in Python: __qual_name__ to be consistent. __getattr__ / PyObject_GetAttr. -- ___ Python tracker

[issue13448] PEP 3155 implementation

2011-11-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Nothing to say; waiting for a doc update. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448 ___

[issue13448] PEP 3155 implementation

2011-11-21 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Here is an issue covering PEP 3155 implementation. Hopefully a review link will appear in front of the hg repo URL. -- components: Interpreter Core hgrepos: 91 messages: 148087 nosy: ncoghlan, pitrou priority: normal severity: normal

[issue13448] PEP 3155 implementation

2011-11-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- keywords: +patch Added file: http://bugs.python.org/file23744/baec10c6dcd4.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448 ___

[issue13448] PEP 3155 implementation

2011-11-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I just have a comment: XXX should be replaced in Python 3.3a0 3200 XXX. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448