How can directly create a dict with byte keys in a list comprehension?
I've tried it with fstrings and a byte conversion but a shorter version would be nice.
expression:
_dict = {bytes(f"test_{_i}", encoding="utf-8"): _i for _i in range(0, 1)}
Result:
_dict = {b'test_0': 0}