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__',
It looks like the dir() function does not list the functions
for superclasses (either dirring the class or instance variable).
Repro:
class foo():
def foofunc(self):
print ‘foofunc’;
class bar(foo
Typo in the sample – should read:
filesraw = System.IO.Directory.GetFiles(‘D:\\temp\\photos’);
--S
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven Drucker
Sent: Wednesday, August 03, 2005
12:55 PM
To:
users-ironpython.com@lists.ironpython.com
Subject
I used to be able to do the following code:
def foo(a):
print a;
filesraw =
System.IO.Directory(‘D:\\temp\\photos”);
map(foo,filesraw);
and it would work just fine.
Now, however, this is no longer working.
The error I get is as follows:
PythonTypeError: f
I used to be able to do the following code:
def foo(a):
print a;
filesraw = System.IO.Directory(‘D:\\temp\\photos”);
map(foo,filesraw);
and it would work just fine.
Now, however, this is no longer working.
The error I get is as follows:
PythonTypeError: f