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

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