dir does not work correctly for inherited classes.
 
Repro:
 
class foo():
    def fooprint(self, b):
        print(b);
 
class bar(foo):
    def barprint(self,b):
        print(b);
 
 
dir(foo)
['__doc__', 'fooprint']
dir(bar)
['__doc__', 'barprint']
 
 
Should be dir(bar)
['__doc__', 'barprint', 'fooprint']
 
_______________________________________________
users-ironpython.com mailing list
users-ironpython.com@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to