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
I’m trying to write benedict object to yaml file, and there is one problem.
Benedict.to_yaml add “!!python/object/new:benedict.dicts.benedict\ndictitems:” into yaml file.
How can I cast benedict object to “simple” dictionary, which will look like initialy dictionary?
Or how can I write benedict to yaml without “!!python/object/new:benedict.dicts.benedict\ndictitems:” and keypath_separator:.\n ?
I would like to see in benedict object, member like "python_dict", in order to it would be possible make call like:
my_dict = benedict_object.python_dict
type(my_dict ) is dict
True
The text was updated successfully, but these errors were encountered:
I don't think you have 0.13.0 version, this issue should have already been fixed.
Please run pip install python-benedict==0.13.0 and check if your problem persists.
If you need to check an object type:
my_dict=benedict()
ifisinstance(my_dict, dict):
print('Yes, my benedict object is a dict!')
or is there something in your request that I'm not understanding?
If yes, could you explain it better?
I’m trying to write benedict object to yaml file, and there is one problem.
Benedict.to_yaml add “!!python/object/new:benedict.dicts.benedict\ndictitems:” into yaml file.
How can I cast benedict object to “simple” dictionary, which will look like initialy dictionary?
Or how can I write benedict to yaml without “!!python/object/new:benedict.dicts.benedict\ndictitems:” and keypath_separator:.\n ?
I would like to see in benedict object, member like "python_dict", in order to it would be possible make call like:
The text was updated successfully, but these errors were encountered: