Mar-30-2024, 09:21 AM
I'm using a config.yaml and want to read a list of integers in "week":
{'worksheet_name': 'March 2024', 'week': [12, 13], 'name': 'John Doe', 'username': 'jd9003'}Reading this yaml with
with open("config.yaml", encoding='utf8') as f: cfg = yaml.load(f, Loader=yaml.FullLoader)strangely leads to this value
week: [[12, 13]]and not to
week: [12, 13]Which format should be used for a list of int in yaml?