curl-and-python
Re: Crash in test_write_to_file_via_object()
Date: Mon, 20 Jan 2014 07:01:42 -0500
Please try https://github.com/pycurl/pycurl/pull/159.
Oleg
On Tue, 24 Dec 2013 11:36:57 +0100
"Gisle Vanem" <gvanem_at_yahoo.no> wrote:
> "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
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2014-01-20