File: save.py

package info (click to toggle)
python-omegaconf 2.3.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,244 kB
  • sloc: python: 26,413; makefile: 38; sh: 11
file content (8 lines) | stat: -rw-r--r-- 183 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
import pickle

from omegaconf import OmegaConf, __version__

cfg = OmegaConf.create({"a": [{"b": 10}]})

with open(f"{__version__}.pickle", mode="wb") as fp:
    pickle.dump(cfg, fp)