Class definition within function

Tomi Lindberg tomi.lindberg.NO_SPAM at pp.inet.fi.invalid
Wed Aug 2 08:37:30 EDT 2006


Peter Otten wrote:

> By the way you get an instance of a different class C every time you call f,
> so that
> 
> isinstance(f(), type(f())
> 
> is False.

That I didn't know. Well, that theory won't be seeing much 
practice I guess.

--
Tomi Lindberg



More information about the Python-list mailing list