code: def cursor(self):
          
          self._assert_valid()
          c = Cursor(self.impl.cursor())
          self.cursors.add(c)
          return c
docs: Create a new ``Cursor`` instance associated with this ``Connection``
  
          :return: A new ``Cursor`` instance