| commit | 712e6b642e5263a24069f8b2300bd0cd76da1a6f | [log] [tgz] |
|---|---|---|
| author | Tristan van Berkom <tristan.vanberkom@codethink.co.uk> | Mon Jun 29 22:31:11 2020 +0900 |
| committer | Benjamin Schubert <contact@benschubert.me> | Mon Jun 29 13:39:26 2020 +0000 |
| tree | eaadb67681408b608fe0a722247e0eddb47447e2 | |
| parent | 88f280d541e2f7c7b8655bab65bb1eb682872a16 [diff] |
Node code: Node now has internal _set() method to set values
Summary of changes:
* node.[pyx,pxd]: Added _set() interface
Now __setitem__ uses _set() and the content is moved to the
internal cdef _set() interface.
This is a single point for setting values on dictionaries, and
now ensures that all MappingNode keys use interned strings.
* _yaml.pyx: Use _set() instead of accessing the MappingNode.value
directly.