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/2000-March/002929.html below:

[Python-Dev] yeah! for Jeremy and Greg

[Python-Dev] yeah! for Jeremy and GregJeremy Hylton jeremy@cnri.reston.va.us
Tue, 28 Mar 2000 21:59:26 -0500 (EST)
>>>>> "DA" == David Ascher <DavidA@ActiveState.com> writes:

  DA> But most importantly, IMO:

  DA> class SubClass(Class):
  DA> 	def __init__(self, a, *args, **kw):
  DA> 		self.a = a
  DA> 		Class.__init__(self, *args, **kw)

  DA> Much neater.

This version of method overloading was what I liked most about Greg's
patch.  Note that I also prefer:

class SubClass(Class):
    super_init = Class.__init__

    def __init__(self, a, *args, **kw):
        self.a = a
	self.super_init(*args, **kw)

I've been happy to have all the overridden methods explicitly labelled
at the top of a class lately.  It is much easier to change the class
hierarchy later.

Jeremy





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