Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/b/r/BridgePython-0.2.2/BridgePython/bridge.py   BridgePython(Download)
    def _store_object(self, handler, ops):
        # Generate random id for callback being stored
        name = util.generate_guid()
        self._store[name] = handler
        # Return reference to stored callback

src/b/r/bridge-python-HEAD/BridgePython/bridge.py   bridge-python(Download)
    def _store_object(self, handler, ops):
        # Generate random id for callback being stored
        name = util.generate_guid()
        self._store[name] = handler
        # Return reference to stored callback

src/b/r/bridge-python-HEAD/test/unit/test_util.py   bridge-python(Download)
    def test_generate_guid(self):
        ids = {}
        for i in range(1, 10):
            id = util.generate_guid()
            self.assertEqual(32, len(id))