Language design

Chris Angelico rosuav at gmail.com
Wed Sep 11 21:41:16 EDT 2013


On Thu, Sep 12, 2013 at 10:49 AM, Mark Janssen
<dreamingforward at gmail.com> wrote:
>>> 1) It tried to make Object the parent of every class.
>>
>> Tried, and succeeded.
>
> Really?  Are you saying you (and the community at-large) always derive
> from Object as your base class?

Uhh, yep? It kinda happens automatically for me:

Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600
32 bit (Intel)] on win32
>>> class Foo:
    pass
>>> Foo.__bases__
(<class 'object'>,)

Yeah, I think I'm always deriving from object. Also, if ever I write
code that has to run also on 2.x, I'll do that explicitly, to be sure
it works the same way.

ChrisA



More information about the Python-list mailing list