Changes between Version 7 and Version 8 of PyYAML
- Timestamp:
- 04/23/06 04:02:16 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PyYAML
v7 v8 54 54 #!python 55 55 >>> import yaml 56 56 57 >>> print yaml.load(""" 57 58 ... name: Vorlin Laruknuzum … … 67 68 ... - a Siver Wand of Wonder 68 69 ... """) 70 69 71 {'name': 'Vorlin Laruknuzum', 'gold': 423, 'title': 'Acolyte', 'hp': [32, 71], 70 72 'sp': [1, 13], 'sex': 'Male', 'inventory': ['a Holy Book of Prayers (Words of Wisdom)', 71 73 'an Azure Potion of Cure Light Wounds', 'a Siver Wand of Wonder'], 'class': 'Priest'} 74 72 75 >>> print yaml.dump({'name': "The Cloak 'Colluin'", 'depth': 5, 'rarity': 45, 73 76 ... 'weight': 10, 'cost': 50000, 'flags': ['INT', 'WIS', 'SPEED', 'STEALTH']}) 77 74 78 name: The Cloak 'Colluin' 75 79 rarity: 45
