new-style classes VS classic-classes

gabor gabor at realtime.sk
Wed Oct 16 13:09:15 CEST 2002


hi,

i've read all the documentation but i'm still not sure about this:

could someone quickly summarize me what's the difference between:

class Something:
	pass

and

class Something(object):
	pass

?

what really interests me:
1. is the new way slower than the old?
2. takes up more memory?
2. is there any reason not to use the new-style classes ( except
backwards-compatibility)?


thanks,
gabor
-- 





More information about the Python-list mailing list