A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-February/086100.html below:

[Python-Dev] Small misleadingness in docs

[Python-Dev] Small misleadingness in docs [Python-Dev] Small misleadingness in docsGreg Ewing greg.ewing at canterbury.ac.nz
Sat Feb 14 13:02:49 CET 2009
Georg Brandl wrote:

> Since I cannot imagine a scenario where you would want to have non-classes
> as the arguments of issubclass(),

I had one today, which is what led me to discover this.
I'm working on a Python-Ruby bridge that wraps Ruby
objects and classes in Python objects.

I wanted to make isinstance() and issubclass() work in
the expected way when applied to wrappers around Ruby
classes. The ability to fake things using __classes__
and __bases__ turned out to be very handy.

-- 
Greg
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