+
Skip to content

EProxy and Hashes #120

Open
Open
@AnNeub

Description

@AnNeub

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载