Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #4241

Composition instead of inheritance

Date 2011-04-28 10:15 -0700
From Ethan Furman <ethan@stoneleaf.us>
Subject Composition instead of inheritance
Newsgroups comp.lang.python
Message-ID <mailman.946.1304010200.9059.python-list@python.org> (permalink)

Show all headers | View raw


For anybody interested in composition instead of multiple inheritance, I 
have posted this recipe on ActiveState (for python 2.6/7, not 3.x):

http://code.activestate.com/recipes/577658-composition-of-classes-instead-of-multiple-inherit/

Comments welcome!

~Ethan~

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Composition instead of inheritance Ethan Furman <ethan@stoneleaf.us> - 2011-04-28 10:15 -0700
  Re: Composition instead of inheritance Ben Finney <ben+python@benfinney.id.au> - 2011-04-29 07:38 +1000
  Re: Composition instead of inheritance Alan Meyer <ameyer2@yahoo.com> - 2011-05-02 13:30 -0400

csiph-web