New issue 406: Cannot distinguish between tag and string https://bitbucket.org/blais/beancount/issues/406/cannot-distinguish-between-tag-and-string
mpra: I have a little problem with processing meta information. Let’s look at this simple example: ```python from beancount import loader entries, errors, options = loader.load_string( """2019-10-31 * "The Company" "Buy cheap stuff" key01: "string_value" key02: #tag_value Expenses:Office 10.00 USD Assets:Cash """) print(entries[0].meta['key01'], type(entries[0].meta['key01'])) print(entries[0].meta['key02'], type(entries[0].meta['key02'])) ``` Output: ```python string_value <class 'str'> tag_value <class 'str'> ``` It has two key/value pairs attached as meta information to the transaction, “key01” a simple string and “#key02” a tag. This can be loaded without any error, but afterwards it is not possible to distinguish between a tag and a string anymore. The loader removes the # sign from the tag and the datatype is string. Therefore it is not possible to know for certain, if a value was a string or a tag in the original beancount file. Is this a bug or am I missing something? -- 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/20191031151418.1741.97872%40celery-worker-109.ash1.bb-inf.net.
