2.2 features
Greg Ewing
greg at cosc.canterbury.ac.nz
Fri Aug 3 00:32:17 EDT 2001
William Tanksley wrote:
>
> If you insist. I think "x in type" is cleaner than isinstance(x,type).
> The main problem with the second one is that it requires memory of the
> order of the arguments, as well as the name of the syntax.
How about
x in class c
for isinstance, and
class c1 in class c2
for issubclass?
--
Greg Ewing, Computer Science Dept, University of Canterbury,
Christchurch, New Zealand
To get my email address, please visit my web page:
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list