Pylons/peppercorn

Preserve ordering

Closed this issue · 5 comments

The dict should be replaced with collections.OrderedDict.

Tres kindly implemented a PR for this issue in #15 . I'm not totally against merging it, but I'd like to understand the rationale behind asking for it before we do.

It's some time ago since i created this issue. I think the comment #15 (comment) explains the use case.

@delijati can you remember the use case of wanting to parse the items of a mapping in some sort of order?

Hmm it is really long ago and it was probably for some customer. I think it was for generating reports or sending emails or something like this. The ordering in the form should be preserved in the appstruct or from.

OK, thanks. I am hesitantly going to reject the patch from @tseaver because there doesn't appear to be a heart-must-continue-beating reason to accept it; if someone else comes up with a defensible case for it, we can reopen.