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
Hi,
Thanks for interesting project - we live in very strange world, where so basic things like human readable file format has no good and popular solution.
StrictYAML looks like good candidate.
I have a small question/feature request - is it possible to load StrictYAML file not to OrderedDict, but to named tuple?
Where is two reasons for this:
It's immutable - for example, it's more safe for global config.
It's more readable: you can write person.name instead person['name']
The text was updated successfully, but these errors were encountered:
I'm afraid it's not possible to load to named tuple directly. StrictYAML is designed to allow roundtripping, so mutability is built in by default.
That said - it should be relatively straightforward to use something like this to take the output of .data and replace the dicts with named tuples.
If more people request this I might consider putting this function in the library directly, but for now it feels like something that belongs outside of it.
Hi,
Thanks for interesting project - we live in very strange world, where so basic things like human readable file format has no good and popular solution.
StrictYAML looks like good candidate.
I have a small question/feature request - is it possible to load StrictYAML file not to OrderedDict, but to named tuple?
Where is two reasons for this:
person.name
insteadperson['name']
The text was updated successfully, but these errors were encountered: