curl-and-python
Re: Crash in test_write_to_file_via_object()
Date: Tue, 24 Dec 2013 11:36:57 +0100
"Oleg Pudeyev" <oleg+pycurl_at_bsdpower.com> wrote:
> Well, yes. I guess you can't take just any libcurl.dll - it has to be
> built against the same crt as the python you are going to be using it
> with.
That seems to be rather strict. I've seen no other problem than with
curl.setopt(pycurl.WRITEDATA, f)
curl.setopt(pycurl.READDATA, f)
> Luckily I already wrote code to convert WRITEDATA to WRITEFUNCTION
> options for python 3 which no longer exposes python files as C FILE
> pointers. That same code can be used on python 2, but with a
> performance penalty compared to giving libcurl a FILE pointer I would
> imagine.
Sounds better to do something like that.
> What's wrong with test_write_to_file_via_function? That one should work.
Ops, yes. that works.
--gv
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2013-12-24