[issue23934] inspect.signature reporting () for all builtin extension types

2015-04-13 Thread James Powell
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

[issue23934] inspect.signature reporting () for all builtin extension types

2015-04-13 Thread James Powell
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

[issue17380] initproc return value is unclear

2015-04-12 Thread James Powell
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

[issue17380] initproc return value is unclear

2015-04-12 Thread James Powell
Changes by James Powell ja...@dontusethiscode.com: -- nosy: +james ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17380 ___ ___ Python-bugs-list

[issue10933] Tracing disabled when a recursion error is triggered (even if properly handled)

2015-04-12 Thread James Powell
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

[issue17380] initproc return value is unclear

2015-04-12 Thread James Powell
Changes by James Powell ja...@dontusethiscode.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17380 ___ ___ Python

[issue10933] Tracing disabled when a recursion error is triggered (even if properly handled)

2015-04-12 Thread James Powell
Changes by James Powell ja...@dontusethiscode.com: -- nosy: +james, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10933

[issue19660] decorator syntax: allow testlist instead of just dotted_name

2013-11-20 Thread James Powell
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

[issue19660] decorator syntax: allow testlist instead of just dotted_name

2013-11-20 Thread James Powell
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

[issue19660] decorator syntax: allow testlist instead of just dotted_name

2013-11-19 Thread James Powell
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

[issue19660] decorator syntax: allow testlist instead of just dotted_name

2013-11-19 Thread James Powell
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