Hello,
I find an OPEN SOURCE tool (http://bouml.free.fr/) that Recently generates
Python code from UML model.
I like to model the Python language metamodel himself, with it, e.g the model
of the language: I need that to better understand the language constraint of
the language.
for example,
Hello,
I am very surprising by the Python interpreter behavior : see code
I initialize a 'A' and a 'B', and i give a B instance reference to the
instance A in 'm1' method. I can modify (IN/OUT mode) the 'i' attribute (
aB.i = 10 ) , BUT I CANNOT DELETE "aB" into the fonction m1 ! the code "
Hello,
I cannot find into documentation how to get the instance name. I found the
attributes __dict__,__class__ ,__bases__ __name__ ,
but if i have the code:
class A :pass
a1 = A ()
a2 = A ()
aList = [a1,a2]
for elem in aList :
print elem.__instance_name__ ???
I expect to have "a1" "a2" ...
Hello,
I like create a methode that display all the properties of an instance of
classe with their value.
I try the following code: see def __str__ (self) methode.
But it displays only the instance attributes values not the properties and
their value.
In pseudo-code:
For Each Properties :