Home
last modified time | relevance | path

Searched refs:keyencoding (Results 1 – 4 of 4) sorted by relevance

/third_party/python/Lib/
Dshelve.py85 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/
Dshelve.rst114 .. 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/
Dtest_shelve.py124 shelve.Shelf(d, keyencoding='latin-1')[key] = [1]
127 s = shelve.Shelf(d, keyencoding='ascii')
/third_party/python/Misc/
DHISTORY11240 - Issue #7905: Actually respect the keyencoding parameter to shelve.Shelf.