"Steve Bricker" <[email protected]> wrote
}This is my first attempt to FTP a file from a mainframe.
Thats one more than me!
The resulting error is:
session.retrlines("RETR 'mainframe.filename'", myfile)
File "c:python26libftplib.py", line 428, in retrlines
callback(line)
TypeError: 'file' object is not callable
The error says that its expecting a callable and you are
passing a file object. My guess is you need to create a
function that writes to the file and pass that to ftp.
You could use myfile.write maybe - thats what the
documentation does for a binary file...
HTH,
--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor