]> granicus.if.org Git - python/commit
bpo-30354: Update data model documentation for super() (GH-1561)
authorcsabella <chekat2@gmail.com>
Mon, 15 May 2017 03:42:00 +0000 (20:42 -0700)
committerNick Coghlan <ncoghlan@gmail.com>
Mon, 15 May 2017 03:42:00 +0000 (13:42 +1000)
commit12b1c180986fc744331b8f30d3d2f49a0fdb43dd
tree3b6c4a88002fab20344f9925227a46f2f3e5420f
parentd48214f22c84f3d949457c854e263074994b6fa2
bpo-30354: Update data model documentation for super() (GH-1561)

The data model section of the language reference was written well
before the zero-argument form of super() was added.

To avoid giving the impression that they're doing something
unusual, this updates the description of `__new__` and `__init__`
to use the zero-argument form.

Patch by Cheryl Sabella.
Doc/reference/datamodel.rst