Quote:If i run your code i don't get week: [[12, 13]]
.
Error found and request for forgiveness attached - for some reason, the assignment looked like this (and is strangely executable without errors):
week = [cfg['week']]
PyYAML read list of int
|
|
Messages In This Thread |
PyYAML read list of int - by zisco - Mar-30-2024, 09:21 AM
RE: PyYAML read list of int - by snippsat - Mar-30-2024, 10:34 AM
RE: PyYAML read list of int - by zisco - Apr-02-2024, 12:36 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
How to read module/class from list of strings? | popular_dog | 1 | 539 |
Oct-04-2023, 03:08 PM Last Post: deanhystad |
|
read a text file, find all integers, append to list | oldtrafford | 12 | 3,826 |
Aug-11-2022, 08:23 AM Last Post: Pedroski55 |
|
How to call/read function for all elements in my list in python | johnny_sav1992 | 1 | 2,131 |
Jul-27-2020, 04:19 PM Last Post: buran |
|
How to read a text file into a list or an array | musouka | 2 | 2,935 |
Oct-07-2019, 01:54 PM Last Post: musouka |
|
Question about YAMLLoadWarning (PyYAML error / deprecated) | UniKlixX | 4 | 4,337 |
Sep-10-2019, 11:49 AM Last Post: UniKlixX |
|
PyYAML | millpond | 2 | 2,995 |
Aug-01-2019, 03:19 AM Last Post: millpond |
|
ThreadPoolExecutor read file to list | DaLiPy | 3 | 6,348 |
Jun-11-2019, 05:55 AM Last Post: DaLiPy |
|
Read list of IP addresses from file and return a network | dflick | 4 | 4,987 |
Oct-27-2018, 09:33 AM Last Post: buran |