[Python-Dev] cpython (3.4): simplify check, since now there are only new-style classes
Antoine Pitrou
solipsis at pitrou.net
Tue Apr 1 20:36:24 CEST 2014
More information about the Python-Dev mailing list
Tue Apr 1 20:36:24 CEST 2014
- Previous message: [Python-Dev] [Python-checkins] cpython (3.4): simplify check, since now there are only new-style classes
- Next message: [Python-Dev] pickle self-delimiting
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 1 Apr 2014 13:28:53 -0500 Zachary Ware <zachary.ware+pydev at gmail.com> wrote: > > @@ -524,7 +521,7 @@ > > skip = set() > > for klass in default_classes: > > for check in handlers: > > - if isclass(check): > > + if instance(check, type): > > Should be isinstance, should it not? Sounds like a well-tested code path :-) Regards Antoine.
- Previous message: [Python-Dev] [Python-checkins] cpython (3.4): simplify check, since now there are only new-style classes
- Next message: [Python-Dev] pickle self-delimiting
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list