how to check the presence of attributes in a hierarchy ??
ed_tsang at yahoo.com
ed_tsang at yahoo.com
Mon May 14 17:07:46 EDT 2001
h is there a way to check the presence of attributes in a file
arrangesof hierarchy? The number of levels iun the hirarchy is not
known.
In fileA,
CTF = 1
in fileB,
import fileA
....
in fileC,
import fileB
Note the levels of hirarchy isnot known.....
OR
in fileC,
import fileA
fileC is the lowest level and CTF if defined ahs to be visible there.
I am not sure if I can use hasattr() call as I need to explicitly
specify the full hierarchy down to the lowest level....
Thanks
More information about the Python-list
mailing list