On Mon, 4 Oct 2010 15:59:51 +0000 (UTC) kj <[email protected]> wrote:
> I want to implement a "class of classes", so that, instead of the
> usual:
>
> spam = MyClass(eggs)
>
> ...I can write
>
> spam = MyClass(ham)(eggs)
Use a factory function:
def MyClass(param):
class TemplateClass:
# Do stuff with param.
return TemplateClass
/W
--
INVALID? DE!
--
http://mail.python.org/mailman/listinfo/python-list
