This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients larry, methane, python-dev, serhiy.storchaka, vstinner
Date 2017-01-19.17:33:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1484847212.35.0.809871320217.issue29311@psf.upfronthosting.co.za>
In-reply-to
Content
> 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?
History
Date User Action Args
2017-01-19 17:33:32vstinnersetrecipients: + vstinner, larry, methane, python-dev, serhiy.storchaka
2017-01-19 17:33:32vstinnersetmessageid: <1484847212.35.0.809871320217.issue29311@psf.upfronthosting.co.za>
2017-01-19 17:33:32vstinnerlinkissue29311 messages
2017-01-19 17:33:32vstinnercreate