You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> a = addict.Dict({'test-id': 123})
>>> a.test-id
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for -: 'Dict' and 'builtin_function_or_method'
Improvement suggestion: as for me, it would be nice if addict would support a.test_id (i.e. replace dashes with underscores in attribute names, like for example, argparse does for options).
Or even better: give user a possibility to define a replacement set or provide a callback function for it.
The text was updated successfully, but these errors were encountered:
Consider this example:
Improvement suggestion: as for me, it would be nice if addict would support
a.test_id
(i.e. replace dashes with underscores in attribute names, like for example, argparse does for options).Or even better: give user a possibility to define a replacement set or provide a callback function for it.
The text was updated successfully, but these errors were encountered: