views:

47

answers:

1

Newbie question: Python 2.6, Ubuntu 10.04, I can import both pycurl and curl, the former having different names for functions (set_option vs. setopt).

What's the difference between the two modules?

+3  A: 

curl is a module which uses pycurl. It provides the curl.Curl class which provides a high-level interface to the pycurl functions.

I haven't found much documentation on how to use it, but reading /usr/share/pyshared/curl/__init__.py may make it pretty self-obvious.

There are also some examples in /usr/share/doc/python-pycurl/examples which use curl.Curl.

unutbu
Thank you, that is exactly what I was looking for.
alexef