2.2 features
Christopher A. Craig
com-nospam at ccraig.org
Tue Jul 31 18:16:49 EDT 2001
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Skip Montanaro <skip at pobox.com> writes:
> I assume x can't be both an instance and a class at the same time.
But all classes are instances of either the class or type type. I
think this is where you are confused. I should be able to declare
class Foo:
pass
class Bar(Foo):
pass
isinstance(Bar, Foo)
0
issubclass(Bar, Foo)
1
- --
Christopher A. Craig <com-nospam at ccraig.org>
"Imagination is more important than knowledge" Albert Einstein
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt
iEYEARECAAYFAjtnLlEACgkQjVztv3T8pzvaPACgyfFntwc8t+cnugIVe9l8geG3
HVMAoIYiMOJBRICJzuRZJygLVe9PXbev
=c3Lo
-----END PGP SIGNATURE-----
More information about the Python-list
mailing list