Hello
I've just started using Python4Delphi after watching the excellent videos by Kiriakos and Jim. Huge potential, but with a steep learning curve !
I've got the following python code that takes an object and prints it's attributes:
def outputClassInfo(anObject):
for att_name in vars(anObject):
anAttr = getattr(anObject,att_name)
print (att_name,anAttr.__class__)
I'm trying to repeat this function in Delphi by adapting demo6 (adding a delphi method to module), but I'm really struggling as I can't find the equivalent of the "vars" function. Am I going about this the right way? I've trying using the debugger to examine the content of anObject but can't find anything in there either?
Thanks for any help...
Ian