Questions to the FAQ

John Lenton jlenton at gmail.com
Fri Jul 16 15:16:51 CEST 2004


On Thu, 15 Jul 2004 18:54:02 +0000 (UTC), Josef Wolf <jw at raven.inka.de> wrote:
> John Lenton wrote in <mailman.449.1089915667.5135.python-list at python.org>:
> 
> >> So to instantiate it one would use "foo=UpperOut(some_file_object)"?
> > that's what the example says...
> 
> Ough?  I can't find this example in
> 
> http://www.python.org/doc/faq/programming.html#what-is-delegation

if you read the code, it tells you that. That's what I meant, not that
explicitely showed that example. I mean, what else can

      def __init__(self, outfile):
            self.__outfile = outfile

mean, in this context?

-- 
John Lenton (jlenton at gmail.com) -- Random fortune:
bash: fortune: command not found



More information about the Python-list mailing list