Type Identification
Jonathan Donald
jonathan at ldis.com
Wed Feb 9 14:51:29 EST 2000
I'm brand new to Python, and I'm having difficulty testing for the class
of an object.
WHERE: fNode is an instance of class FileRecord (superclass of
DirectoryRecord)
and DirectoryRecord is an instance of
DirectoryRecord class
...why does the following expression not return false?
if type(fNode) == type(aDirectoryRecord):
Any hints are greatly appreciated.
-jd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20000209/f6a239b4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jonathan.vcf
Type: text/x-vcard
Size: 292 bytes
Desc: Card for Jonathan Donald
URL: <http://mail.python.org/pipermail/python-list/attachments/20000209/f6a239b4/attachment.vcf>
More information about the Python-list
mailing list