Issue #420: Make metadata into an OrderedDict (blais/beancount)

16 views
Skip to first unread message

tbm13

unread,
Feb 25, 2020, 4:53:47 AM2/25/20
to bean...@googlegroups.com
New issue 420: Make metadata into an OrderedDict
https://bitbucket.org/blais/beancount/issues/420/make-metadata-into-an-ordereddict

Martin Michlmayr:

I’m wondering whether it would be possible to make metadata \(both on transactions and postings\) into an OrderedDict.

I have written an importer which basically does something like:



```
meta = data.new_metadata(f.name, index)
meta['donor_name'] = get_name(row)
meta['donor_email'] = row['Email']
```

It makes sense to have name first, email second, but currently beancounts sorts the keys and email comes out first.

Can you think of any disadvantage of using an OrderedDict? If not, maybe I can try to see if I can contribute a patch.




Reply all
Reply to author
Forward
0 new messages