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
{{ message }}
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.
Following example script fails because yaml.add_representer function which is called in initialization of pyraml module (pyraml/__init__.py) changes behavior of PyYAML module. Modified PyYAML module will parse dictionary structure in YAML to UniqOrderedDict, so re-assignment to the data parsed by PyYAML will raise exception.
This problem is caused by design of yaml.add_representer in PyYAML module, but it may be better to modify pyraml-parser because PyYAML module is used widely and is hard to be changed.
The text was updated successfully, but these errors were encountered:
ntoofu
changed the title
side-effect on other packages using PyYAML
side-effect on other modules using PyYAML
Oct 7, 2017
I'm about four years late to this party, but wanted to say thanks for raising this issue as it helped me understand a problem I was having with pyraml-parser breaking PyYAML used in another place in the same code base. I worked around it by using ruyaml instead (leaving pyraml to have its monkey-patched PyYAML for itself).
Unfortunately I don't have time to maintain this project. The project is unmaintained for 4 or 5 years already.
Most probably I will put a banner that's the project is not maintaining anymore.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Following example script fails because
yaml.add_representer
function which is called in initialization of pyraml module (pyraml/__init__.py
) changes behavior of PyYAML module. Modified PyYAML module will parse dictionary structure in YAML to UniqOrderedDict, so re-assignment to the data parsed by PyYAML will raise exception.Result:
The exception is raised from the line below.
pyraml-parser/pyraml/__init__.py
Line 24 in 6d9f474
This problem is caused by design of
yaml.add_representer
in PyYAML module, but it may be better to modify pyraml-parser because PyYAML module is used widely and is hard to be changed.The text was updated successfully, but these errors were encountered: