New submission from Batuhan Taskaya <isidenti...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue40563> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com