KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How to parse/read a YAML file into a Python object? For example, this YAML: Person: name: XYZ To this Python class: class Person(yaml.YAMLObject): yaml_tag = 'Person' def __init__(self, name): self.name = name I am using PyYAML by the way.
Tags (comma-separated)
Save Edits
Cancel