[issue40304] Classes created using type() don't need to explicitly inherit from object

2021-01-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40304] Classes created using type() don't need to explicitly inherit from object

2021-01-21 Thread miss-islington
miss-islington added the comment: New changeset 98e1f5c778b9719f6338a3247da95402192bad18 by Miss Islington (bot) in branch '3.9': bpo-40304: Correct type(name, bases, dict) doc (GH-19553) https://github.com/python/cpython/commit/98e1f5c778b9719f6338a3247da95402192bad18 --

[issue40304] Classes created using type() don't need to explicitly inherit from object

2021-01-21 Thread miss-islington
miss-islington added the comment: New changeset 34f3f4ac70e3ba2e603ba7792addf973c94f90cb by Miss Islington (bot) in branch '3.8': bpo-40304: Correct type(name, bases, dict) doc (GH-19553) https://github.com/python/cpython/commit/34f3f4ac70e3ba2e603ba7792addf973c94f90cb --

[issue40304] Classes created using type() don't need to explicitly inherit from object

2021-01-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +23119 pull_request: https://github.com/python/cpython/pull/24296 ___ Python tracker ___

[issue40304] Classes created using type() don't need to explicitly inherit from object

2021-01-21 Thread miss-islington
Change by miss-islington : -- keywords: +patch nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +23118 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24295 ___ Python tracker

[issue40304] Classes created using type() don't need to explicitly inherit from object

2021-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 644d52818a6391535e5838fd57d58ffcb1163056 by Борис Верховский in branch 'master': bpo-40304: Correct type(name, bases, dict) doc (GH-19553) https://github.com/python/cpython/commit/644d52818a6391535e5838fd57d58ffcb1163056 -- nosy:

[issue40304] Classes created using type() don't need to explicitly inherit from object

2020-04-16 Thread Борис Верховский
New submission from Борис Верховский : 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__ (,) >>> type('X',