Searched refs:keyencoding (Results 1 – 4 of 4) sorted by relevance
/third_party/python/Lib/ |
D | shelve.py | 85 keyencoding="utf-8"): argument 92 self.keyencoding = keyencoding 96 yield k.decode(self.keyencoding) 102 return key.encode(self.keyencoding) in self.dict 105 if key.encode(self.keyencoding) in self.dict: 113 f = BytesIO(self.dict[key.encode(self.keyencoding)]) 125 self.dict[key.encode(self.keyencoding)] = f.getvalue() 128 del self.dict[key.encode(self.keyencoding)] 189 keyencoding="utf-8"): argument 190 Shelf.__init__(self, dict, protocol, writeback, keyencoding) [all …]
|
/third_party/python/Doc/library/ |
D | shelve.rst | 114 .. class:: Shelf(dict, protocol=None, writeback=False, keyencoding='utf-8') 129 The *keyencoding* parameter is the encoding used to encode keys before they 136 Added the *keyencoding* parameter; previously, keys were always encoded in 147 .. class:: BsdDbShelf(dict, protocol=None, writeback=False, keyencoding='utf-8') 156 optional *protocol*, *writeback*, and *keyencoding* parameters have the same
|
/third_party/python/Lib/test/ |
D | test_shelve.py | 124 shelve.Shelf(d, keyencoding='latin-1')[key] = [1] 127 s = shelve.Shelf(d, keyencoding='ascii')
|
/third_party/python/Misc/ |
D | HISTORY | 11240 - Issue #7905: Actually respect the keyencoding parameter to shelve.Shelf.
|