@staticmethod
    def create():
        # First, try to use ctypes.
        if ctypes:
            inotify = _CtypesLibcINotifyWrapper()
            if inotify.init():
                return inotify
        # Second, see if C extension is compiled.
        if inotify_syscalls:
            inotify = _INotifySyscallsWrapper()
            if inotify.init():
                return inotify
Factory method instanciating and returning the right wrapper.
dataset/ETHPy150Open seb-m/pyinotify/python2/pyinotify.py/INotifyWrapper.create