New submission from James Powell:
Decorator syntax currently allows only a dotted_name after the @. As far as I
can tell, this was a gut-feeling decision made by Guido. [1]
I spoke with Nick Coghlan at PyTexas about this, and he suggested that if
someone did the work, there might be interest
Changes by James Powell :
--
keywords: +patch
Added file: http://bugs.python.org/file32717/decorator-syntax.patch
___
Python tracker
<http://bugs.python.org/issue19
James Powell added the comment:
I see this as removing a restriction and a special-case from the
decorator syntax (noting, of course, that these were introduced
deliberately.)
In terms of whether the new forms are improvements, my preference is to
leave this up to the judgement of the
Changes by James Powell :
Added file: http://bugs.python.org/file32745/decorator-syntax.patch
___
Python tracker
<http://bugs.python.org/issue19660>
___
___
Python-bug
Changes by James Powell :
--
nosy: +james, r.david.murray
___
Python tracker
<http://bugs.python.org/issue10933>
___
___
Python-bugs-list mailing list
Unsub
James Powell added the comment:
We investigated this issue with pdmccormick & r.david.murray.
The behaviour appears to be intentional. If the trace function raises an
Exception, system tracing is disabled entirely.
See attached documentation patch to clarify this.
--
keywords: +p
Changes by James Powell :
--
nosy: +james
___
Python tracker
<http://bugs.python.org/issue17380>
___
___
Python-bugs-list mailing list
Unsubscribe:
James Powell added the comment:
See attached patch to clarify this in the docs.
--
keywords: +patch
Added file: http://bugs.python.org/file38910/issue_17380.patch
___
Python tracker
<http://bugs.python.org/issue17
Changes by James Powell :
--
nosy: +r.david.murray
___
Python tracker
<http://bugs.python.org/issue17380>
___
___
Python-bugs-list mailing list
Unsubscribe:
James Powell added the comment:
Discussed with Nick Coghlan.
See attached patch to return `signature(object)` only if both `__new__` and
`__init__` are shared with `object`.
Otherwise, raise TypeError indicating built-in types not supported.
https://docs.python.org/3/library/inspect.html
James Powell added the comment:
See attached patch for unittest.
For 3.4, test that inspect.signature(str) raises TypeError.
For >3.5, this can be improved to use _testcapi.matmulType
--
Added file: http://bugs.python.org/file38949/issue_23934-test.pa
11 matches
Mail list logo