Skip to content

Yaml with a key called "on" parsed as True #744

Closed as not planned
Closed as not planned
@Puneeth-n

Description

@Puneeth-n

Hi, I am rather facing a weird issue with pyyaml library where a yaml string is not being parsed properly. the on key is parsed as boolean True. Any idea what is happening?

PyYAML==6.0 also tried the latest 5.x release

>>> import yaml
>>> yaml.full_load('on: {}')
{True: {}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions