On Sat, May 4, 2019, at 15:00, Stefano Zacchiroli wrote: > Python data classes might come in handy here: > https://docs.python.org/3/library/dataclasses.html
I like dataclasses. It has the same usage interface and repr as namedtuples, but with the flexibility of classes. There will be no more awkward `txn = txn._replace(narration='foo')`, just `txn.narration = `foo`. The only problem is that it's in Python 3.7. AFAIK some distros are stuck with Python 3.6... -- Zhuoyun Wei -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/cb585c68-84d0-4f3c-be43-f2deb65f5493%40www.fastmail.com. For more options, visit https://groups.google.com/d/optout.
