pyyaml icon indicating copy to clipboard operation
pyyaml copied to clipboard

Add range to FullLoader / FullConstructor

Open zeeMonkeez opened this issue 3 years ago • 0 comments

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?

zeeMonkeez avatar Jul 06 '21 11:07 zeeMonkeez