Custom Query (121 matches)


Show under each result:

Results (19 - 21 of 121)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Ticket Resolution Summary Owner Reporter
#24 worksforme dictionaries without at least one list element as values seem not to work xi anonymous

Reported by anonymous, 11 years ago.

>>> 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

#25 fixed Constructor and representer for datetimes with timezone do not match xi lele@…

Reported by lele@…, 11 years ago.


I noticed what seems a little glitch in PyYAML handling of datetime when they carry a timezone.

The regexp used to match the various fields assumes there is a separator between the fractional part and the timezone offset, while the representer simply appends the offset without any separator, effectively resulting in a wrong representation (in the case the offset is positive).

Moreover, unicode(data.utcoffset()) gives something like "-1 day, 22:00" for an offset of -2 hours.

#26 fixed yaml.load("a: n") raises exception (problem with bool) xi zbynek.winkler@…

Reported by zbynek.winkler@…, 11 years ago.


r59 claims to "Remove y/n from the boolean constants." However 'n|N' is not removed from the corresponding regexp. BTW: why was it removed? Looking at one would expect it to be there.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Note: See TracQuery for help on using queries.