[Python-ideas] PEP 426, YAML in the stdlib and implementation discovery
Vinay Sajip
vinay_sajip at yahoo.co.uk
Mon Jun 3 20:58:51 CEST 2013
Nick Coghlan <ncoghlan at ...> writes:
> Note that while JSON itself doesn't handle arbitrary reference graphs,
> people actually *store* complex graph structures in JSON all the time.
> It's just that there are no standard syntax/semantics for doing so
> (logging.dictConfig, for example, uses context dependent named
> references, while jsonschema uses $ref fields).
A more generalised version of the dictConfig approach, using
JSON-serialisable dictionaries to describe more complex object graphs
(including cross-references), is described here:
http://pymolurus.blogspot.co.uk/2013/04/using-dictionaries-to-configure-objects.html
Regards,
Vinay Sajip
More information about the Python-ideas
mailing list