pyyaml
pyyaml copied to clipboard
Add range to FullLoader / FullConstructor
Would it be possible to add the Python range() to FullConstructor? So that the output of
yaml.dump(range(1, 15, 3)):
'!!python/object/apply:builtins.range\n- 1\n- 15\n- 3\n'
can be parsed correctly?
Or is this not considered safe?