Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In [1]: import yaml
- In [2]: f = file("cars.yml")
- In [3]: yaml.load(f)
- Out[3]:
- {'constructeurs': ['bmw', 'ferarri', 'maserati'],
- 'tout': ['bmw', 'ferarri', 'maserati']}
- In [4]: %cat ca
- callable cars.yml
- In [4]: %cat cars.yml
- ERROR: Magic function `cat` not found.
- In [5]: !cat ca
- callable cars.yml
- In [5]: !cat cars.yml
- constructeurs: &constructeurs
- - bmw
- - ferarri
- - maserati
- tout:
- *constructeurs
Add Comment
Please, Sign In to add comment