Author boris
Recipients boris, docs@python
Date 2020-04-16.17:31:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587058310.07.0.184434541864.issue40304@roundup.psfhosted.org>
In-reply-to
Content
As far as I can tell, passing `(object,)` and `()` as the `bases` parameter to the 3-argument version of type() produces the same result, because classes inherit from `object` in Python 3:

>>> type('X', (object,), dict(a=1)).__bases__
(<class 'object'>,)
>>> type('X', (), dict(a=1)).__bases__
(<class 'object'>,)

I just want to make sure I'm not missing something and update the documentation of `type()` to reflect that.
History
Date User Action Args
2020-04-16 17:31:50borissetrecipients: + boris, docs@python
2020-04-16 17:31:50borissetmessageid: <1587058310.07.0.184434541864.issue40304@roundup.psfhosted.org>
2020-04-16 17:31:50borislinkissue40304 messages
2020-04-16 17:31:49boriscreate