homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author asottile
Recipients asottile, ethan.furman, jcea
Date 2017年01月09日.23:37:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1484005033.07.0.581516767507.issue20094@psf.upfronthosting.co.za>
In-reply-to
Content
Stepping through the code, it seems under ndbm it is creating a file with a '.db' extension:
```
(Pdb) list
 47 	 'g': b'intended',
 48 	 }
 49 	
 50 	 def init_db(self):
 51 	 import pdb; pdb.set_trace()
 52 ->	 with dbm.open(_fname, 'n') as f:
 53 	 for k in self._dict:
 54 	 f[k.encode("ascii")] = self._dict[k]
 55 	
 56 	 def keys_helper(self, f):
 57 	 keys = sorted(k.decode("ascii") for k in f.keys())
(Pdb) n
> /home/asottile/workspace/cpython/Lib/test/test_dbm.py(53)init_db()
-> for k in self._dict:
(Pdb) os.listdir('.')
['@test_8371_tmp.db']
(Pdb) _fname
'@test_8371_tmp'
```
History
Date User Action Args
2017年01月09日 23:37:13asottilesetrecipients: + asottile, jcea, ethan.furman
2017年01月09日 23:37:13asottilesetmessageid: <1484005033.07.0.581516767507.issue20094@psf.upfronthosting.co.za>
2017年01月09日 23:37:13asottilelinkissue20094 messages
2017年01月09日 23:37:12asottilecreate

AltStyle によって変換されたページ (->オリジナル) /