2.2 features
Markus Schaber
markus.schaber at student.uni-ulm.de
Fri Aug 3 08:44:44 EDT 2001
Hi,
Greg Ewing 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?
Reads very smooth in my eyes.
markus
--
Markus Schaber -- http://www.schabi.de/ -- ICQ: 22042130
+-------------------------------------------------------------+
| Allgemeine Sig-Verletzung 0815/4711 <nicht OK> <Erbrechen> |
+-------------------------------------------------------------+
More information about the Python-list
mailing list