Custom Query (121 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (1 - 3 of 121)

1 2 3 4 5 6 7 8 9 10 11
Ticket Resolution Summary Owner Reporter
#18 worksforme [bug] nested dictionnary load works dump doesn't xi eugene@…

Reported by eugene@…, 8 years ago.

Description
import yaml
data=yaml.load("""
a: 1
b:
    ba: 1
    bb: 2
""")
yaml.dump(data)

[gives]

 'a: 1\nb: {ba: 1, bb: 2}\n'

pyYaml 3.0.3 - Python 2.4.3 - Windows XP

#24 worksforme dictionaries without at least one list element as values seem not to work xi anonymous

Reported by anonymous, 8 years ago.

Description
>>> print yaml.dump({'name': 'Silenthand Olleander', 'race': 'Human', 'traits': 1})
{traits: 1, race: Human, name: Silenthand Olleander}
>>> print yaml.dump({'name': 'Silenthand Olleander', 'race': 'Human', 'traits': [1,2]})

traits: [1, 2]
race: Human
name: Silenthand Olleander

it seems without a list as at least one value element in dict the dump is not working properly

#27 worksforme yaml.dump seems to be broken xi anonymous

Reported by anonymous, 8 years ago.

Description

I may be missing something here, but this seems to be broken:

Example that works:

>>> print yaml.dump({'name': "The Cloak 'Colluin'", 'depth': 5, 'rarity': 45, 'weight': 10, 'cost': 50000, 'flags': ['INT', 'WIS', 'SPEED', 'STEALTH']})
cost: 50000
depth: 5
flags: [INT, WIS, SPEED, STEALTH]
name: The Cloak 'Colluin'
rarity: 45
weight: 10

Portion of above example:

>>> print yaml.dump({'name': "The Cloak 'Colluin'", 'depth': 5})
{depth: 5, name: The Cloak 'Colluin'}

I would expect to get:

depth: 5
name: The Cloak 'Colluin'
1 2 3 4 5 6 7 8 9 10 11
Note: See TracQuery for help on using queries.