1. Pypy
  2. Untitled project
  3. pypy

Source

pypy / pypy / module / _multiprocessing / __init__.py

import sys

from pypy.interpreter.mixedmodule import MixedModule

class Module(MixedModule):

    interpleveldefs = {
        'Connection'      : 'interp_connection.W_FileConnection',
        'SemLock'         : 'interp_semaphore.W_SemLock',

        'address_of_buffer' : 'interp_memory.address_of_buffer',
    }

    appleveldefs = {
    }

    if sys.platform == 'win32':
        interpleveldefs['PipeConnection'] = \
            'interp_connection.W_PipeConnection'
        interpleveldefs['win32'] = 'interp_win32.win32_namespace(space)'

    def init(self, space):
        MixedModule.init(self, space)
        from pypy.module._multiprocessing.interp_connection import State
        space.fromcache(State).init(space)