[Python-Dev] PEP 362 Second Revision (original) (raw)
Yury Selivanov yselivanov.ml at gmail.com
Thu Jun 7 22:54:52 CEST 2012
- Previous message: [Python-Dev] PEP 362 Second Revision
- Next message: [Python-Dev] PEP 362 Second Revision
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2012-06-07, at 3:54 PM, Terry Reedy wrote:
On 6/7/2012 10:41 AM, Yury Selivanov wrote:
Hello,
The new revision of PEP 362 has been posted: http://www.python.org/dev/peps/pep-0362/ Thanks to Brett, Larry, Nick, and everybody else on python-dev for your corrections/suggestions. Summary of changes: 1. We don't cache signatures in signature attribute implicitly 2. signature() function is now more complex, but supports methods, partial objects, classes, callables, and decorated functions 3. Signatures are always constructed on demand 4. Dropped the deprecation section I like this now. Being more able to get the actual signature of partials and wraps will be a win. If the signature object has a decent str/repr method, I would (try to remember) to revise idle tooltips (for whichever version) to check for .signature before inspect'ing.
I think we'll add a 'format' method to the Signature, that will work like 'inspect.formatargspec'. 'Signature.str' will use it with default parameters/formatters.
I'm not sure how repr should look like. Maybe default repr (object.repr) is good enough.
- Yury
- Previous message: [Python-Dev] PEP 362 Second Revision
- Next message: [Python-Dev] PEP 362 Second Revision
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]