IO Gurus: what are the differences between these two methods?

Joe Riopel goon12 at gmail.com
Mon Dec 7 12:47:27 EST 2009


On Mon, Dec 7, 2009 at 12:12 PM, dpapathanasiou
<denis.papathanasiou at gmail.com> wrote:
> I have two methods for writing binaries files: the first works with
> data received by a server corresponding to a file upload, and the
> second works with data sent as email attachments.
>
> The odd thing is, they're not interchangeable: if I use the first one
> to saved data parsed from an email attachment, it fails; similarly,
> the second function fails when dealing with an uploaded file data.

When you say it fails, are there any error messages displayed,
exceptions raised, etc? I am not sure what you mean, in regards to
"fails".



More information about the Python-list mailing list