View Single Post
Old Jun 30th, 2005, 8:05 PM   #2
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Quote:
I've been hunting around, and everything seems to indicate that there should be nothing wrong with my code
Very bad assumption to make . Just because you can't see the problem, doesn't mean that it's not there.

Eh... you're passing a method (fileObj.write) to a function that wants a file object as its parameter.
storlines takes a command and a file object, retrlines take a command and a callback. You must have mistaken them somehow.

A little advice: Look at the trackback. It'll show you what you're passing to what function. Cross reference that with the Python documentation, and you can't go wrong.
Cerulean is offline   Reply With Quote