[issue29311] Argument Clinic: convert dict methods

STINNER Victor report at bugs.python.org
Thu Jan 19 12:33:32 EST 2017


STINNER Victor added the comment:

> There are same problems with docstrings as in OrderedDict. The name "D" is not defined.

I copied the old docstring to AC.

Python 3.6 doc:
---
get(...)
    D.get(k[,d]) -> D[k] if k in D, else d.  d defaults to None.
---

D was already implicitly "self".


Python 3.7 (new) doc:
---
get(self, key, default=None, /)
    D.get(key[, default]) -> D[key] if key in D, else default.
---

What do you propose? Use self?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29311>
_______________________________________


More information about the Python-bugs-list mailing list