Custom Query (121 matches)

Filters
 
Or
 
  
 
Columns

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
#69 invalid scalar value of escaped double-newline parsed as a single newline xi anonymous

Reported by anonymous, 7 years ago.

Description

When parsing the following: terminator : "\n\n"

The value of the right side scalar is returned as \n, rather than \n\n. Likewise, four newlines ("\n\n\n\n") is parsed as three ("\n\n\n").

#77 worksforme libyaml 0.1.1 segmentation faults. xi anonymous

Reported by anonymous, 6 years ago.

Description

python 2.5.2

import yaml
from yaml import CDumper
d = {'x' : []}

yaml.dump(d, Dumper=CDumper)

This uses http://pyyaml.org/download/libyaml/yaml-0.1.1.tar.gz

#80 wontfix yaml.load doesn't work as i suspect it to according to the documentation xi anonymous

Reported by anonymous, 6 years ago.

Description

quote from the documentation:

>>> class Monster(yaml.YAMLObject):
...     yaml_tag = u'!Monster'
...     def __init__(self, name, hp, ac, attacks):
...         self.name = name
...         self.hp = hp
...         self.ac = ac
...         self.attacks = attacks
...     def __repr__(self):
...         return "%s(name=%r, hp=%r, ac=%r, attacks=%r)" % (
...             self.__class__.__name__, self.name, self.hp, self.ac, self.attacks)

>>> yaml.load("""
... --- !Monster
... name: Cave spider
... hp: [2,6]    # 2d6
... ac: 16
... attacks: [BITE, HURT]
... """)

the thing is, yaml.load ignores the __init__ method of the Monster class. it doesn't even matter if it's there at all. in yaml.load you can specify aditional variables and they get added to the object. intended behaviour?

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.