Grouping dictionary keys by a prefix is useful when exploring its structure. However, what to do with keys that cannot be easily grouped / are miscellaneous?
mydict = {'_id': '',
'_nick': '',
'_address': '',
'status_destination': '',
'status_file': '',
'status_object': '',
'objective_value': '',
'objective_result': '',}
Prefix underscore is shorter than something arbitrary like misc. But, underscore has a certain meaning in python. Dictionary keys are object names and as such, they shall not be prefixed by underscore according to PEP-8.
What could be used instead that is not distractive? Ordered dictionary does not always work since misc keys can be entered at various times.
https://peps.python.org/pep-0008/
What is the meaning of single and double underscore before an object name?