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: 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

 

 

 

 

_______________________________________________
users-ironpython.com mailing list
users-ironpython.com@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to