i have a small question, not a big deal but python2.7 (or python3.4) gives a different result than Micropython.
python3.4
Python 3.4.0 (default, Jun 19 2015, 14:20:21)
[GCC 4.8.2] on linux
Code: Select all
class A:
def __init__(self):
self.x = 10
self.y = 10
a = A()
dir(a)
Code: Select all
['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'x', 'y']
in Micropython
same code ... but the result
Code: Select all
['__init__', '__qualname__', '__module__']
Any idea?
thx