classification
Title: Support pathlike objects on dbm/shelve
Type: Stage: patch review
Components: Library (Lib) Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: BTaskaya, DahlitzFlorian, dreamsorcerer, hakancelik
Priority: normal Keywords: easy, patch

Created on 2020-05-08 14:55 by BTaskaya, last changed 2020-06-02 20:11 by dreamsorcerer.

Pull Requests
URL Status Linked Edit
PR 20274 closed hakancelik, 2020-05-20 22:45
Messages (4)
msg368446 - (view) Author: Batuhan Taskaya (BTaskaya) * (Python triager) Date: 2020-05-08 14:55
>>> 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
msg368447 - (view) Author: Hakan Çelik (hakancelik) * Date: 2020-05-08 15:12
I work on this issue to fix it.
msg369471 - (view) Author: Florian Dahlitz (DahlitzFlorian) * Date: 2020-05-20 19:29
Are you still working on this @hakancelik?
msg369478 - (view) Author: Hakan Çelik (hakancelik) * Date: 2020-05-20 21:41
Yes I will send pr soon.
History
Date User Action Args
2020-06-02 20:11:43dreamsorcerersetnosy: + dreamsorcerer
2020-05-20 22:45:38hakanceliksetkeywords: + patch
stage: patch review
pull_requests: + pull_request19554
2020-05-20 21:41:52hakanceliksetmessages: + msg369478
2020-05-20 19:29:58DahlitzFloriansetnosy: + DahlitzFlorian
messages: + msg369471
2020-05-19 12:59:19serhiy.storchakalinkissue40681 superseder
2020-05-08 15:12:23hakanceliksetnosy: + hakancelik
messages: + msg368447
2020-05-08 14:55:55BTaskayacreate