Why 'class spam(object)' instead of class spam(Object)' ?

Ben Finney bignose+hates-spam at benfinney.id.au
Mon Sep 17 22:07:39 EDT 2007


[Colin, you posted your message to both of 'comp.lang.python' and
'gmane.comp.python.general'. The latter is merely a view on the
former, and your message appears in exactly the same places if you
post only to 'comp.lang.python'.]

"Colin J. Williams" <cjw at sympatico.ca> writes:

> > Carl Banks wrote:
> >> The reason why "object" is lower case is because built-in types
> >> are spelled in lower-case.

> Does the user care whether an object is implemented in C?

Probably not. But they probably do care that the type is built-in.

-- 
 \      "The trouble with the rat race is that even if you win, you're |
  `\                    still a rat."  -- Jane Wagner, via Lily Tomlin |
_o__)                                                                  |
Ben Finney



More information about the Python-list mailing list