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

Steven Drucker sdrucker at microsoft.com
Tue Sep 27 02:21:17 CEST 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: <http://mail.python.org/pipermail/ironpython-users/attachments/20050926/cd1aacdb/attachment.html>


More information about the Ironpython-users mailing list