You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an issue to explore adding support for Python's pathlib. At the moment the following works:
>>> d = benedict("test.json", format="json")
>>> d
{'test': 123}
but the following raises an error:
>>> import pathlib
>>> d = benedict(pathlib.Path("test.json"), format="json")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
....
File ".../lib/python3.11/site-packages/benedict/dicts/parse/parse_dict.py", line 15, in __init__
super(ParseDict, self).__init__(*args, **kwargs)
File ".../lib/python3.11/site-packages/benedict/dicts/base/base_dict.py", line 30, in __init__
super(BaseDict, self).__init__(*args, **kwargs)
TypeError: 'PosixPath' object is not iterable
The text was updated successfully, but these errors were encountered:
This is an issue to explore adding support for Python's pathlib. At the moment the following works:
but the following raises an error:
The text was updated successfully, but these errors were encountered: