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.patch
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 to clarify this in the docs.
--
keywords: +patch
Added file: http://bugs.python.org/file38910/issue_17380.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17380
Changes by James Powell ja...@dontusethiscode.com:
--
nosy: +james
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17380
___
___
Python-bugs-list
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: +patch
Changes by James Powell ja...@dontusethiscode.com:
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17380
___
___
Python
Changes by James Powell ja...@dontusethiscode.com:
--
nosy: +james, r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10933
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
Changes by James Powell ja...@dontusethiscode.com:
Added file: http://bugs.python.org/file32745/decorator-syntax.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19660
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 ja...@dontusethiscode.com:
--
keywords: +patch
Added file: http://bugs.python.org/file32717/decorator-syntax.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19660
11 matches
Mail list logo