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/2002-February/020194.html below:

[Python-Dev] Meta-reflections

[Python-Dev] Meta-reflections [Python-Dev] Meta-reflectionsGordon McMillan gmcm@hypernet.com
Wed, 20 Feb 2002 13:27:58 -0500
On 20 Feb 2002 at 8:30, Kevin Jacobs wrote:

> Attributes currently have a flat namespace, 

Instance attributes do, but that's a tautology.

> and the
> construct that I feel is most natural would maintain
> that characteristic.  e.g.:
> 
> class Base:
>   def __init__(self):
>     self.foo = 1
> 
> class Derived(Base):
>   def __init__(self):
>     Base.__init__(self)
>     self.foo = 2          # this is the same foo as in
>     Base

But these aren't:

 class Base
  foo = 1

 class Derived(Base):
  foo = 2

-- Gordon
http://www.mcmillan-inc.com/




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