We can list all atributes(only atributes) of a class?
If we have, this class for example:
class c1():
def __init__(self, x, y):
self.fx = x
self.fy = y
self.fz = 0
def fun1():
return self.fx
With dir(c1) we get a full list with all objects of class, including atributes, however we can`t know the diference of methods and atributes.
I was think that will works:
type( dir(obj1)[-1] )
# [-1] Would be the last attribute, but the type return a string.