pylibmc now on GitHub!

My Python bindings for the memcached client library libmemcached is now on GitHub, for your forking needs.

They're fast as hell too, just like the C-level library is.

And guess what? It doesn't even use ctypes!

pylibmc on GitHub


Comments
Posted by: Michael Foord §

Why is not using ctypes a feature? Not using ctypes but going for a 'normal' C extension means that your code won't work with PyPy, Jython or IronPython.

2009-08-02 @ 19:52:22
URL: http://www.ironpythoninaction.com/
Posted by: Ludvig Ericson §

Because ctypes has a host of problems of its own.

One of the problems is that sometimes, to find library paths, it needs to execute subprocesses. This, linked with using a mod_wsgi-style deploy, means a parent daemon might reap child processes before ctypes' Python code gets a chance (SIGCHLD.)

Another problem is that it won't get you compile-time warnings. Also, it'll be hopping between Python and C a lot - causing a slight performance penalty.

And lastly, the major one, is that Python works well with C extensions, and that C libraries work well with C extensions. Not so much for ctypes if you ask me.

2009-08-02 @ 20:18:25
URL: http://lericson.blogg.se/code/

Comment the entry:

Name: (required, possibly pseudonym)
Remember me (cookie)

E-mail: (not required, never published, solely for me to reply to you in person)

URL:

Comment:

RSS 2.0