Changes between Version 7 and Version 8 of PyYAML


Ignore:
Timestamp:
04/23/06 04:02:16 (9 years ago)
Author:
xi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PyYAML

    v7 v8  
    5454#!python 
    5555>>> import yaml 
     56 
    5657>>> print yaml.load(""" 
    5758... name: Vorlin Laruknuzum 
     
    6768... - a Siver Wand of Wonder 
    6869... """) 
     70 
    6971{'name': 'Vorlin Laruknuzum', 'gold': 423, 'title': 'Acolyte', 'hp': [32, 71], 
    7072'sp': [1, 13], 'sex': 'Male', 'inventory': ['a Holy Book of Prayers (Words of Wisdom)', 
    7173'an Azure Potion of Cure Light Wounds', 'a Siver Wand of Wonder'], 'class': 'Priest'} 
     74 
    7275>>> print yaml.dump({'name': "The Cloak 'Colluin'", 'depth': 5, 'rarity': 45, 
    7376... 'weight': 10, 'cost': 50000, 'flags': ['INT', 'WIS', 'SPEED', 'STEALTH']}) 
     77 
    7478name: The Cloak 'Colluin' 
    7579rarity: 45