2.2 features
Christopher A. Craig
com-nospam at ccraig.org
Fri Aug 3 13:30:44 EDT 2001
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Charlie Clark <charlie at begeistert.org> writes:
> I understand the problem like this: Classes keep lists of their
> sub-classes *and* of their instances and "in" is a keyword which checks
> for membership in sequences.
As currently proposed (last I checked) this is incorrect. You have it
backwards. An instance knows what it is, and a subclass knows who it
inherits from, but the reverse is not true. For this reason I think
the correct way to spell these should be something like
instance.isinstanceof(class)
class.issubclassof(metaclass)
- --
Christopher A. Craig <com-nospam at ccraig.org>
"When all else fails, manipulate the data."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt
iEYEARECAAYFAjtq38QACgkQjVztv3T8pzsj4ACfRy6P/a3YmvIIiLME2WzacIyr
KXAAoMUKzue+cyJqCic26D40Xq3A3wn5
=ct/n
-----END PGP SIGNATURE-----
More information about the Python-list
mailing list