New inited instance of class?
Samuel Kleiner
sam at samuel-kleiners-computer.local
Sun Dec 7 10:34:36 EST 2003
Peter Otten wrote:
> Samuel Kleiner wrote:
>
>> So can I make all my classes derive from object without
>> doing so explicitly- IE, without having to change every
>> single top-level class definition?
>>
>
> You can do it on a per-file basis by putting
>
> __metaclass__ = type
>
That's what I meant. Great, thanks.
--
"You've got to kill people,
and when you've killed enough they stop fighting." --Curtis LeMay
More information about the Python-list
mailing list