[issue43803] ctypes string_at/wstring_at - bad argument name used in docs and in docstring

Eryk Sun report at bugs.python.org
Tue Apr 13 02:50:29 EDT 2021


Eryk Sun <eryksun at gmail.com> added the comment:

> So are you telling that we should change the name to "ptr" to 
> avoid a breaking change?

The function parameter name is "ptr". Changing that name could break existing code. I don't think it's likely, but it's not worth breaking even one script just for this. So change the docstring and documentation to refer to "ptr".

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43803>
_______________________________________


More information about the Python-bugs-list mailing list