[Python-Dev] Odd new-style class new behavior (original) (raw)

Guido van Rossum guido@python.org
Sat, 30 Mar 2002 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/)