[Python-Dev] Re: Make __mro_entries__ mandatory for non-types

2022-03-05 Thread Jason Madden
Steven D'Aprano wrote: > On Sat, Mar 05, 2022 at 04:42:55PM -0000, Jason Madden wrote: > > zope.interface relies on this behaviour. > > The example you give shows that Interface is a class. It merely has a > metaclass which is not `type`. (I presume that is what's g

[Python-Dev] Re: Make __mro_entries__ mandatory for non-types

2022-03-05 Thread Jason Madden
Steven D'Aprano wrote: > On Sat, Mar 05, 2022 at 11:27:44AM +0200, Serhiy Storchaka wrote: > > Currently the class can inherit from arbitrary objects, not only types. > > Is that intentionally supported? > I know that metaclasses do not have to be actual classes, they can be > any callable with th