Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
D.clear() -> None.  Remove all items from D.

src/i/p/ipython-HEAD/IPython/utils/tests/test_pickleshare.py   ipython(Download)
    def test_picklesharedb(self):
        db = PickleShareDB(self.tempdir.name)
        db.clear()
        print("Should be empty:",db.items())
        db['hello'] = 15

src/i/p/ipython-2.0.0/IPython/utils/tests/test_pickleshare.py   ipython(Download)
    def test_picklesharedb(self):
        db = PickleShareDB(self.tempdir.name)
        db.clear()
        print("Should be empty:",db.items())
        db['hello'] = 15