[Python-Dev] type.__subclasses__() doesn't work
Steven D'Aprano
steve at pearwood.info
Wed Oct 9 13:34:12 CEST 2013
More information about the Python-Dev mailing list
Wed Oct 9 13:34:12 CEST 2013
- Previous message: [Python-Dev] type.__subclasses__() doesn't work
- Next message: [Python-Dev] type.__subclasses__() doesn't work
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Oct 09, 2013 at 12:20:18PM +0200, Antoine Pitrou wrote: > > Hello, > > Just noticed the following quirk: > > >>> type.__subclasses__() > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > TypeError: descriptor '__subclasses__' of 'type' object needs an argument > > Yet it would be nice to know about the subclasses of type. py> type.__subclasses__(type) [<class 'abc.ABCMeta'>, <class 'string._TemplateMetaclass'>] -- Steven
- Previous message: [Python-Dev] type.__subclasses__() doesn't work
- Next message: [Python-Dev] type.__subclasses__() doesn't work
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list