[issue41865] doc search for super().__init__() returns no useful results

2020-09-27 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41865] doc search for super().__init__() returns no useful results

2020-09-26 Thread Jack W.


Jack W.  added the comment:

Thank you.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41865] doc search for super().__init__() returns no useful results

2020-09-26 Thread Jack W.


Change by Jack W. :


--
resolution:  -> works for me

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41865] doc search for super().__init__() returns no useful results

2020-09-26 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

The primary documentation for super() is here:
https://docs.python.org/3/library/functions.html#super

At the bottom it references a guide to using super() that you might find 
helpful:
https://rhettinger.wordpress.com/2011/05/26/super-considered-super/

The standard library source code has many examples.  In particular, the 
argparse module makes heavy use of super():
https://github.com/python/cpython/blob/3.8/Lib/argparse.py

The tutorial provides some light discussion:
https://docs.python.org/3/tutorial/classes.html#multiple-inheritance

There is also an FAQ entry:
https://docs.python.org/3/faq/programming.html#how-do-i-call-a-method-defined-in-a-base-class-from-a-derived-class-that-overrides-it

There is also extensive coverage on StackOverflow:
https://stackoverflow.com/search?q=%5Bpython%5D+super

Hope you find these links helpful.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41865] doc search for super().__init__() returns no useful results

2020-09-26 Thread Jack W.


Jack W.  added the comment:

True enough, however, no search I could come up which included the term "super" 
or "__init__" returned a document near the top of the search which showed how 
to chain a superclass initializer. This can be confusing, as there are 2 
syntaxes for doing this.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41865] doc search for super().__init__() returns no useful results

2020-09-26 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

The __init__() method isn't a feature of super().  It is a feature of the class 
being called.

--
nosy: +rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41865] doc search for super().__init__() returns no useful results

2020-09-26 Thread Jack W.


New submission from Jack W. :

It's oddly difficult to glean from the official documentation the correct 
syntax for superclass initialization.

--
assignee: docs@python
components: Documentation
messages: 377527
nosy: docs@python, softwoehr
priority: normal
severity: normal
status: open
title: doc search for super().__init__() returns no useful results
type: enhancement
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com