Custom Query (121 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (76 - 78 of 121)

Ticket Resolution Summary Owner Reporter
#18 worksforme [bug] nested dictionnary load works dump doesn't xi eugene@…

Reported by eugene@…, 7 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

#3 fixed allow_unicode missing in emitter? xi tim@…

Reported by tim@…, 7 years ago.

Description

Trying to emit plain chars in utf8 (£ symbol for instance - \xc2\xa3) isn't working.. I think I've tracked it down to missing allow_unicode passing through to emitter and possibly the emit events resetting allow_unicode (I won't say I've fixed it as I've forced allow_unicode to True in various places to get it to emit plain's in utf-8 rather than double quoted escaped unicode). I'll post more tomorrow if I can get my fix cleaner. Looking good btw!!

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

Reported by anonymous, 7 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

Note: See TracQuery for help on using queries.