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.
ā
--
You received this message because you are subscribed to the Google Groups
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/20200225095344.2062.26553%40celery-worker-109.ash1.bb-inf.net.