[IronPython] 'map' not working the same between IronPython-0.7.x and IronPython-0.9 ?

Steven Drucker sdrucker at microsoft.com
Tue Aug 2 22:50:05 CEST 2005

I used to be able to do the following code:


def foo(a):

            print a;


filesraw = System.IO.Directory('D:\\temp\\photos");



and it would work just fine.



Now, however, this is no longer working. 

The error I get is as follows:

PythonTypeError: foo() takes exactly 1 argument, (97 given)


This seems like it should work since filesraw is still enumerable and in
fact, I can do the following:

for file in filesraw:

            frint file





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20050802/3ad9e02e/attachment.html>

More information about the Ironpython-users mailing list