From: William S. <sp...@rh...> - 2010-04-19 22:35:02
|
Brad Baxter wrote: > > > 4) Does pyyaml currently insist on a blank after a colon for a good > reason? Would eliminating the requirement introduce an ambiguity? > > >> I'm still interested in answers to questions 1, 2, and 4 above. And > if someone has something further to add to #3, I certainly wouldn't be > displeased ^)^ > > My understanding is that the answer to 4. is, e.g., > > urls: > - http://www.google.com > - http://www.amazon.com > > If you didn't insist on a blank after the colon, there would be > extra hashes/mappings in there. > > -- > Brad Making a space *before* the colon work as well should help. It would fix the example in the original post: given :Chris Trying this out I do have to say that the error messages are completely cryptic and it is VERY hard to figure out what YAML is trying to do or what you typed wrong. This may be a good sign that this design is incorrect and should be changed. |