Questions to the FAQ
Josef Wolf
jw at raven.inka.de
Thu Jul 15 14:09:03 EDT 2004
First of all, thanks to all who responded. I think I begin to understand
what's going on here.
Stefan Seefeld wrote in <GNXIc.4283$F57.941 at nntp-post.primus.ca>:
> no, because that wouldn't be delegation but inheritance. Delegation is
> *not* about subclassing, but about delegating a task to another object.
Ah, _now_ i see the difference...
John Lenton wrote in <mailman.346.1089774773.5135.python-list at python.org>:
> no, UpperOut isn't a file, it _has_ a file. It passes all messages on
> to the file, except for write, which it mangles a bit before passing
> it on, too.
So to instantiate it one would use "foo=UpperOut(some_file_object)"?
--
Please visit and sign http://petition-eurolinux.org and http://www.ffii.org
-- Josef Wolf -- jw at raven.inka.de --
More information about the Python-list
mailing list