A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2014-April/133746.html below:

[Python-Dev] cpython (3.4): simplify check, since now there are only new-style classes

[Python-Dev] cpython (3.4): simplify check, since now there are only new-style classes [Python-Dev] cpython (3.4): simplify check, since now there are only new-style classesAntoine Pitrou solipsis at pitrou.net
Tue Apr 1 20:36:24 CEST 2014
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.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4