[Python-Dev] Odd new-style class __new__ behavior

Guido van Rossum guido@python.org
2002年3月30日 13:43:46 -0500


> >>> d = {1:1}
> >>> d.__init__()
> >>> d
> {1: 1}
> >>> l = [1]
> >>> l.__init__()
> >>> l
> []
>> This is at least a little odd, I'd have said. Is this just a fluke of
> implementation?

Yes.
> It's not like I really care, though.

Me neither.
--Guido van Rossum (home page: http://www.python.org/~guido/)

AltStyle によって変換されたページ (->オリジナル) /