]> granicus.if.org Git - python/commit
bpo-30354: Update data model documentation for super() (GH-1561) (GH-1869)
authorcsabella <chekat2@gmail.com>
Tue, 30 May 2017 20:47:47 +0000 (16:47 -0400)
committerMariatta <Mariatta@users.noreply.github.com>
Tue, 30 May 2017 20:47:47 +0000 (13:47 -0700)
commit75ea91bb736f2a061a3ebc689ff17629bdc15568
tree5c69a056eb4ae4402483d2390e67fe28e4823e85
parent03c7cfcd52be702957cc174f5cb2ce4c8be8bfca
bpo-30354: Update data model documentation for super() (GH-1561) (GH-1869)

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.
(cherry picked from commit 12b1c180986fc744331b8f30d3d2f49a0fdb43dd)
Doc/reference/datamodel.rst