New inited instance of class?

Douglas Alan nessus at mit.edu
Sat Dec 6 22:49:02 EST 2003


Samuel Kleiner <sam at samuel-kleiners-computer.local> writes:

> Is there a builtin way of making making another instance of your own
> class? I really expected type(self)(*args, **keywords) to work this way.

Doesn't self.__class__(*args, **keywords) work?

|>oug




More information about the Python-list mailing list