FAQ
Chris Green <cmg at dok.org> wrote in message news:<87wtxshvej.fsf at ion.xlipstream.com>...
Good day,

I've done a bit of searching in the language reference and a couple
pages referring the behavior of super() but I can't find any
discussion of why super needs the name of the class as an argument.
Feel free to point me into the bowels of google if this has been
discussed to death already.
Others have already answered your question. I want just to point out
that there exists recipes to avoid retyping the class name: the first
of these is Guido's autosuper recipe. A very sophysticated one is this one:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/286195

I also wrote one of such recipes -;)

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/284528

Michele Simionato

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 11 of 11 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedOct 15, '04 at 2:52p
activeOct 16, '04 at 10:11a
posts11
users9
websitepython.org

People

Translate

site design / logo © 2022 Grokbase