Use the ‘__pypy__’ module. This module is expected to be working and is included by default. It contains special PyPy-specific functionality. For example most of the special functions described in the object space proxies document are in the module. See the __pypy__ module documentation for more details.