Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r1197:3c435f7639fc Date: 2013-03-08 18:28 +0100 http://bitbucket.org/cffi/cffi/changeset/3c435f7639fc/
Log: Check that the backend's version matches the frontend's diff --git a/cffi/api.py b/cffi/api.py --- a/cffi/api.py +++ b/cffi/api.py @@ -53,6 +53,8 @@ # You need PyPy (>= 2.0 beta), or a CPython (>= 2.6) with # _cffi_backend.so compiled. import _cffi_backend as backend + from . import __version__ + assert backend.__version__ == __version__ # (If you insist you can also try to pass the option # 'backend=backend_ctypes.CTypesBackend()', but don't # rely on it! It's probably not going to work well.) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit