title: python class object definition
body: <p>I have a question about the Python Object class.  As I understand it, all classes are based on the Object class. I cannot find the class definition for object:</p>
  
  <pre><code>class Object:
      code for methods and attributes.
  </code></pre>
  
  <p>If I use dir(object), I get this:</p>
  
  <pre><code>dir(object)
  </code></pre>
  
  <p><code>['__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__le__', '__lt__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__']</code></p>
  
  
  
  <p>Is there code somewhere for these methods or isn't it accessible?  I am studying Python with O'Reilly and part of the course is to ask a question on a forum and document the answer.  I believe I have complied with all your requirements.  I have searched the Internet for hours and your site.   I have also searched several books.  I cannot even find the topic being addressed.  I am relatively new to Python and object oriented programming so maybe I am missing something.  Perhaps it isn't necessary to know this to solve a problem, but I am surprised I cannot find any comments on the subject.</p>