[IronPython] Bug in IronPython 0.9.x (0-2)

Steven Drucker sdrucker at microsoft.com
Mon Sep 26 17:21:17 PDT 2005


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']
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/users-ironpython.com/attachments/20050926/cd1aacdb/attachment.html


More information about the users-ironpython.com mailing list