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

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
__getstate__() -> state

Return the picklable state of the BTree.

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/athistoryaware.py   Products.Archetypes(Download)
            # bypassing the transaction registry while maintaining BTree
            # integrity
            anns.__setstate__(tempbtree.__getstate__())
            anns._p_changed = 0
            del tempbtree

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/athistoryaware.py   Products.Archetypes(Download)
            # bypassing the transaction registry while maintaining BTree
            # integrity
            anns.__setstate__(tempbtree.__getstate__())
            anns._p_changed = 0
            del tempbtree

src/b/t/BTrees-4.0.8/BTrees/tests/test_check.py   BTrees(Download)
        for i in range(31):
            tree[i] = 2*i
        state = tree.__getstate__()
        self.assertEqual(len(state), 2)
        self.assertEqual(len(state[0]), 3)

src/z/o/zodbbrowser-0.11.0/src/zodbbrowser/tests/test_btreesupport.py   zodbbrowser(Download)
        tree[2] = 23
        tree[3] = 17
        state = tree.__getstate__()
        self.state = EmptyOOBTreeState(None, state, None)