Erik Welch added the comment:
Thanks for taking a look Terry. I saw that error as well. It is separate from
this issue, and I don't think it is a bug. No other builtin functions or
methods that raise this error with this text have such a notice in their
docstring, so it doesn
Change by Erik Welch :
--
keywords: +patch
pull_requests: +24271
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/25551
___
Python tracker
<https://bugs.python.org/issu
New submission from Erik Welch :
The new builtin `anext` does not have a signature (from
`inspect.signature(anext)`). This is expected, because `inspect` does not yet
support signatures with C NULL default value. However, `anext` also doesn't
have text in its docstring that describe
Change by Erik Welch :
--
keywords: +patch
pull_requests: +21720
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/22757
___
Python tracker
<https://bugs.python.org/issu
Change by Erik Welch :
--
nosy: +eriknw
nosy_count: 8.0 -> 9.0
pull_requests: +21721
pull_request: https://github.com/python/cpython/pull/22757
___
Python tracker
<https://bugs.python.org/issu
New submission from Erik Welch :
The following is new to Python 3.9, and I consider the implementation
incomplete. I have code that works for Python 3.8 and before, but not for
Python 3.9:
"Class methods can now wrap other :term:`descriptors ` such as
:func:`property`."
https://
Erik Welch added the comment:
sorted_3.patch corrects the __text_signature__. Behavior of sorted is
unchanged.
>>> def raises(err, lamda):
... try:
... lamda()
... return False
... except err:
... return True
...
>>> import inspect
>>&
Erik Welch added the comment:
That's a fair and valid point, Raymond. "sorted_2.patch" was submitted for
consideration. Either __text_signature__ is wrong, or the call argument
handling is wrong. One should be fixed.
Having a flexible call signature as if sorted were
Erik Welch added the comment:
Interesting observation, Martin.
Upon further consideration, the call signature for sorted really is quite odd.
It doesn't behave like any other builtin function. Currently, "iterable" is
positional-only, and "key=" and "revers
New submission from Erik Welch:
The first argument to sorted is positional-only, so the text signature should
be:
sorted($module, iterable, /, key=None, reverse=False)
instead of
sorted($module, iterable, key=None, reverse=False)
To reproduce the issue, attempt to use "iterable&
10 matches
Mail list logo