question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pyecore's eorderset can't work under ordered-set 3.0.0

See original GitHub issue

@aranega It might be a regression. ordered-set 3.0.0 change the slicing implementation from

               return OrderSet(result) #2.0.2

to

               return self.__class__(result) # 3.0.0

and the slicing will return EOrderedSet with empty items. for

              Node.children[1:]

Could you give a check ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
aranegacommented, Jan 2, 2019

Ok, so the issue seems to come from Python’s typing module. The introduction of some type check in the ordered_set module triggered the typing issue.

I close again this issue 😃. Thanks so much @bmjjr for the test case, it gave me more material to reflect on!

1reaction
CFAndycommented, Jun 27, 2018

@aranega Great progress actually.

class EOrderedSet(EAbstractSet, ordered_set.OrderedSet):
    def __init__(self, owner, efeature=None):
        super().__init__(owner, efeature)
        ordered_set.OrderedSet.__init__(self) #this line drop the list parameter

    def update(self, others):
        self._orderedset_update = True
        super().update(others)
        self._orderedset_update = False
Read more comments on GitHub >

github_iconTop Results From Across the Web

python - OrderedDict Isn't Ordered? - Stack Overflow
collections.OrderedDict keeps track of the order in which elements were added to it. This would work fine in a loop: c = collections....
Read more >
Python Dictionaries are Ordered now, but how?…and why?
Yup, starting from python version 3.7 dictionary order is guaranteed to be insertion order. Does that mean OrderedDict is useless now? Not really,...
Read more >
PyEcore: A Pythonic Implementation of the Eclipse Modeling ...
Precisely, it is an implementation of EMF/Ecore for Python, and it tries to give an API which is compatible with the original EMF...
Read more >
Quick Start — PyEcore 0.7.4 documentation
PyEcore is a “Pythonic” implementation of EMF/Ecore for Python 3. ... This will work with either a dynamic metamodel object or a model...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found