Comments (3)
@petmakris I believe you want the following:
- step: &id001 # defines anchor label &id001
instrument: Lasik 2000
pulseEnergy: 5.4
pulseDuration: 12
repetition: 1000
spotSize: 1mm
- step: &id002
instrument: Lasik 2000
pulseEnergy: 5.0
pulseDuration: 10
repetition: 500
spotSize: 2mm
- step: *id001 # refers to the first step (with anchor &id001)
- step: *id002 # refers to the second step
- step:
<< : *id001
spotSize: 2mm # redefines just this key, refers rest from &id001
- step: *id002
from pyyaml.
thanks @DylanYoung :)
I think we can close this then.
@petmakris please reopen if necessary.
from pyyaml.
The Wikipedia example is wrong; the parser is correct. You can only reference named nodes; not override values.
from pyyaml.
Related Issues (20)
- Depth first firing of generators HOT 1
- Unable to install due to dependency on setuptools - help please? HOT 2
- Provide wheel for `musllinux` `arm64` HOT 1
- [Joke Issue] Attempt to write the most complex YAML file in human history
- Can't seem to read emoji HOT 1
- "Y" does not round-trip in practice HOT 1
- Instant of custom python class as value
- End of document delimiter (`...`) HOT 7
- Inconsistent/Wrong Type casting when using yaml.dump/safe_dump HOT 2
- Bools are not handled in 6.0.1 (YAML 1.2) HOT 1
- compatibility HOT 1
- Python 3.13 support HOT 1
- Tabs support HOT 1
- Question about a "curly quotes" safe check HOT 3
- Strange issue with invalid YAML HOT 4
- li
- Publishing possible security issues HOT 2
- "on: true" gets parsed as "True: True" when using safe_load HOT 3
- `setup.py test` is broken in 6.0.2rc1 HOT 4
- Lightweight py-poyo integration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyyaml.