Searched refs:Shelf (Results 1 – 7 of 7) sorted by relevance
/third_party/python/Lib/test/ |
D | test_shelve.py | 53 s = shelve.Shelf(d1, protocol=2, writeback=False) 87 with shelve.Shelf(d1, protocol=0) as s: 91 with shelve.Shelf(d2, protocol=1) as s: 101 with shelve.Shelf(d1, protocol=2, writeback=False) as s: 108 with shelve.Shelf(d2, protocol=2, writeback=True) as s: 121 shelve.Shelf(d)[key] = [1] 124 shelve.Shelf(d, keyencoding='latin-1')[key] = [1] 127 s = shelve.Shelf(d, keyencoding='ascii') 135 with shelve.Shelf(d, writeback=True) as s: 144 with shelve.Shelf(d1, protocol=2, writeback=False) as s: [all …]
|
/third_party/python/Doc/library/ |
D | shelve.rst | 36 cached in memory, and written back on :meth:`~Shelf.sync` and 37 :meth:`~Shelf.close`; this can make it handier to mutate mutable entries in 51 :meth:`~Shelf.close` explicitly when you don't need it any more, or 65 Shelf objects support most of methods and operations supported by dictionaries 71 .. method:: Shelf.sync() 78 .. method:: Shelf.close() 114 .. class:: Shelf(dict, protocol=None, writeback=False, keyencoding='utf-8') 132 A :class:`Shelf` object can also be used as a context manager, in which 149 A subclass of :class:`Shelf` which exposes :meth:`first`, :meth:`!next`, 157 interpretation as for the :class:`Shelf` class. [all …]
|
/third_party/python/Lib/ |
D | shelve.py | 77 class Shelf(collections.abc.MutableMapping): class 175 class BsdDbShelf(Shelf): 190 Shelf.__init__(self, dict, protocol, writeback, keyencoding) 218 class DbfilenameShelf(Shelf): 227 Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback)
|
/third_party/python/Lib/turtledemo/ |
D | sorting_animate.py | 42 class Shelf(list): class 171 s = Shelf(-200)
|
/third_party/python/Doc/whatsnew/ |
D | 3.2.rst | 457 :class:`~collections.defaultdict`, :class:`~shelve.Shelf`,
|
D | 3.4.rst | 1354 :class:`~shelve.Shelf` instances may now be used in :keyword:`with` statements,
|
/third_party/python/Misc/ |
D | HISTORY | 11240 - Issue #7905: Actually respect the keyencoding parameter to shelve.Shelf. 18121 - Bug #1339007: Shelf objects now don't raise an exception in their
|