Skip to content

Instantly share code, notes, and snippets.

@dcolish
Created November 28, 2011 21:26
Show Gist options
  • Select an option

  • Save dcolish/1402148 to your computer and use it in GitHub Desktop.

Select an option

Save dcolish/1402148 to your computer and use it in GitHub Desktop.
pypy support for xapian-bindings 1.2.7
--- python/modern/xapian_wrap.cc 2011-11-28 13:23:58.000000000 -0800
+++ python/modern/xapian_wrap.cc 2011-11-28 13:24:32.000000000 -0800
@@ -2211,7 +2211,7 @@
/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
/* TODO: I don't know how to implement the fast getset in Python 3 right now */
-#if PY_VERSION_HEX>=0x03000000
+#if ((PY_VERSION_HEX>=0x03000000) || defined(PYPY_VERSION))
#define SWIG_PYTHON_SLOW_GETSET_THIS
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment