Custom Query (121 matches)
Results (43 - 45 of 121)
|#116||fixed||the order of keys is important||xi||Andrey Somov <py4fun@…>|
When PyYAML is run on alternative VM (jython for instance) the order of the dictionary keys may be different. Unfortunately PyYAML relies on the order in some cases. The attached patches show that tests fail only when the sequence of the keys is reversed. These cases were found under Java 5. (for Java 6 the order is the same as for CPython). To avoid unexpected bugs in future it would be safe to change the implementation to use a kind of an ordered dictionary.(or to respect the order in some other way). There is no guarantee the list is complete. This is just a coincidence it was found.
|#118||fixed||Strange case where yaml.load should error but actually loads||xi||xi|
>>> yaml.load('-\n-3') [-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: -3 ^ could not found expected ':' in "<string>", line 3, column 1: ^
|#120||fixed||typo in yaml.__init__.py||xi||py4fun@…|
line 46 in yaml.__init__.py contains a typo: "corresponSing" instead of "corresponDing"