Custom Query (121 matches)


Show under each result:

Results (43 - 45 of 121)

Ticket Resolution Summary Owner Reporter
#118 fixed Strange case where yaml.load should error but actually loads xi xi

Reported by xi, 8 years ago.

>>> yaml.load('-\n-3')

Adding a newline actually does produce the desired error:

>>> yaml.load('-\n-3\n')
yaml.scanner.ScannerError: while scanning a simple key
  in "<string>", line 2, column 1:
could not found expected ':'
  in "<string>", line 3, column 1:
#120 fixed typo in xi py4fun@…

Reported by py4fun@…, 8 years ago.

line 46 in contains a typo: "corresponSing" instead of "corresponDing"
#123 fixed libyaml parser hangs when reading all in one read from a TCP socket. xi pem@…

Reported by pem@…, 8 years ago.


When setting a read handler (which uses read(2)) with yaml_parser_set_input() and reading from a socket descriptor, it happens that the entire yaml document is read in one call of the handler. This seems to confuse the parser (yaml_parser_load()) which calls the handler again, attempting to read more.

Forcing at least two packages from the client makes it work. The workaround was to make the client write and flush the leading "---" separately, and then dump the rest on the socket.

This is with libyaml 0.1.2. The client side is using SnakeYAML 1.1 (with java 1.6), both on openSuse 11.0.

Note: See TracQuery for help on using queries.