QUERY · ISSUE
Method Resolution Order (MRO) is not compliant
py-core
uPy currently implements depth-first MRO, which is equivalent to one used pre-Python2.2.
References:
- http://python-history.blogspot.com/2010/06/method-resolution-order.html
- https://www.python.org/download/releases/2.3/mro/
CANDIDATE · ISSUE
unix: dir() of a subclass instance does not show superclass methods
This behaviour differs from CPython. Apologies if this is by design:
class FooSub():
def bar(self):
pass
class Foo(FooSub):
def rats():
pass
foo = Foo()
dir(foo)
Outcome:
['__module__', 'rats', '__qualname__']
Tab completion also fails to access bar().