A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-July/045894.html below:

[Python-Dev] Improved super/autosuper

[Python-Dev] Improved super/autosuperGuido van Rossum guido at python.org
Tue Jul 6 06:41:31 CEST 2004
> >     class A (autosuper):
> > 
> >         def __init__ (self, a, b):
> >             print 'A.__init__'
> >             print a, b
> >             self.super(a, b)
> > 
> >         def test (self, a, b):
> >             print 'A.test'
> >             print a, b
> >             self.super(a, b)
> > 
> >     class B (A):
> > 
> >         def __init__ (self):
> >             print 'B.__init__'
> >             self.super(1, 2)
> >             self.super.test(3, 4)

One more thing...  What is the point of self.super.test(...)?  When is
that not the same as self.test(...)?  What's the use case?

--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4