Open
Description
Hey @aranega
as I already mentioned in #119 I switched from static generated code to dynamic loaded. For some export function I have a lookup dictionary where I use 'EInt, EFloat, ...' (classes not strings) as key and set a converter function as value.
If a load the model dynamical the pyEcore classes (EInt, EFloat) will be referenced via a EProxy. Because the EProxy has its own hash, the pyEcore classes which are imported are different. The EProxy has an __eq__
which references to the real class but in this case the hashes are used.
Maybe it was not the best idea to use the class as key, but I want to share this experience with you.
Best regards,
Andreas
Metadata
Metadata
Assignees
Labels
No labels