1. Kirill Simonov
  2. pyyaml
  3. Issues
Issue #18 new

Pyyaml does not change `!!` to `tag:yaml.org,2002:` in `add_constructor`

Anonymous created an issue

If I try to add a new secondary tag constructor using add_constructor, then it does not change the constructor tag name !!foo to tag:yaml.org,2002:foo. Any tags in the YAML file won't be found, and will cause a runtime error.

I have attached a patch to show how this issue can be resolved, but I would guess that there is a better solution using the parser.

Comments (1)

  1. Log in to comment