To get all property of a class?
manuel
manuelbastioni at tin.it
Sun Jun 29 18:38:22 EDT 2003
Exist a sintax like
import Foo
for property in Foo
print property
?
My problem is to print all property values of various class,
without know the number and the type of properties.
Example. Print all property of class circle:
NAME = Foo
RADIUS = 10
SEGMENT = 15
FILL = 0
etc...
extract from
self.name = "Foo"
self.radius = 10
self.segment = 15
etc..
Thanks,
Manuel Bastioni
More information about the Python-list
mailing list