[issue40563] Support pathlike objects on dbm/shelve
Batuhan Taskaya
report at bugs.python.org
Fri May 8 10:55:55 EDT 2020
New submission from Batuhan Taskaya <isidentical at gmail.com>:
>>> dbm.open("/tmp/x.db", "n").close()
>>> from pathlib import Path
>>> tmp = Path("/tmp")
>>> dbm.open(tmp / "x.db", "n").close()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.9/dbm/__init__.py", line 95, in open
return mod.open(file, flag, mode)
TypeError: open() argument 1 must be str, not PosixPath
----------
components: Library (Lib)
keywords: easy
messages: 368446
nosy: BTaskaya
priority: normal
severity: normal
status: open
title: Support pathlike objects on dbm/shelve
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40563>
_______________________________________
More information about the Python-bugs-list
mailing list