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 <[email protected]>
<http://bugs.python.org/issue29311>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com