
I've been testing Python 2.3b1 since its release. I've tested it with a number of applications I've written myself, as well as testing most of the new language features and modules out. I've encountered no problems, and everything is happy and working. On an unrelated note, I'm curious, what's the difference between an instance of an object, and an instance of an empty class? Calling the object builtin returns an <object object at ...>, which I would expect would function the same as a 'class blah(object): pass', but they do not function similarly at all.
-- Random words of the day: Who does not trust enough will not be trusted. Lao-Tzu Mathieu Fenniak <laotzu@pobox.com> PGP Key ID 0x2459092A http://www.stompstompstomp.com/

Mathieu Fenniak <laotzu@pobox.com> writes:
On an unrelated note, I'm curious, what's the difference between an instance of an object, and an instance of an empty class?
On python-dev, you are supposed to study the Python source code to answer such questions (or find other means to investigate the answer yourself) Regards, Martin

Mathieu Fenniak <laotzu@pobox.com>:
I think this is because object is a built-in type, and as such doesn't allow attributes to be added, unless you create a Python subclass of it. Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg@cosc.canterbury.ac.nz +--------------------------------------+

Instances of 'object' don't have an instance dict, so they are uncapable of having instance variables. When you use a class statement, instances of the subclass get an instance dict, unless __slots__ is used in that class statement. --Guido van Rossum (home page: http://www.python.org/~guido/)

Mathieu Fenniak <laotzu@pobox.com> writes:
On an unrelated note, I'm curious, what's the difference between an instance of an object, and an instance of an empty class?
On python-dev, you are supposed to study the Python source code to answer such questions (or find other means to investigate the answer yourself) Regards, Martin

Mathieu Fenniak <laotzu@pobox.com>:
I think this is because object is a built-in type, and as such doesn't allow attributes to be added, unless you create a Python subclass of it. Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg@cosc.canterbury.ac.nz +--------------------------------------+

Instances of 'object' don't have an instance dict, so they are uncapable of having instance variables. When you use a class statement, instances of the subclass get an instance dict, unless __slots__ is used in that class statement. --Guido van Rossum (home page: http://www.python.org/~guido/)
participants (4)
-
Greg Ewing
-
Guido van Rossum
-
martin@v.loewis.de
-
Mathieu Fenniak