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:
- Created 5 years ago
- Comments:10 (9 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok, so the issue seems to come from Python’s
typing
module. The introduction of some type check in theordered_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!
@aranega Great progress actually.