Похожие чаты

Getattr works fine for getting reserved keyword attributes >>> getattr(X, 'from') 123 though

it sounds like it's not an ideal state of affairs to begin with (why not just use a dict instead of attributes?)

1 ответов

18 просмотров

it's taking a set of json files that have relatively similar data, but not exactly similar with regards to how the keys are utilized, and has nested json within elements, so I use pickle to dynamically serialize the currently processing json files keys with recursion to build out the classes, it does utilize some facets of dictionaries, but some of the logical forks it has to take are easier based on attributes than trying to predict the full key list from a dictionary.

Похожие вопросы

Обсуждают сегодня

какие клиентские датасеты в лазаре умеют объединяться в master-detail? нужно забрать на клиент запись из одной таблицы и выборку из другой связанной один-ко-многим, отредактир...
Igor
19
Any got any price predictions for hbar this bull run ?
Crypto_learn2Earn_Official
32
Девелоперы, к вам вопрос. Почему так плохо с поддержкой mysql, mariadb и относящихся к ним пакетам?
Perfect Gentleman
21
Why is kda better than kaspa?
Gakob
40
But it Was said we get the tokens now just not the staking rewards ?
IneedMoney🤑 MaN
17
Добрый день, коллеги. Не нашел в чате. Есть ли в bw4hana что-то похожее на table maintenance generator для ddic таблиц? Нужно дать возможность дать возможность бизнес пользова...
Airat
13
Делал сайт заказчику в 2018г. Прилетела претензия на фотку в примерах работ от copydefend (ооо "фортуна технолоджис") на 36к рублей 🙈 Конторка эта образовалась в 2023 г, и 13...
Alexander Andreev
10
Подскажите, сейчас что то есть (JS модуль какой-нибудь), что можно использовать для: 1) переваривания javascript codа из html fileа, т.е. разбивки, на переменные, команды, бло...
Iar De
32
А как старый хаскел с новым стыковать ? потому как тут работает https://play.haskell.org/saved/C3xpMzcd, а вот тут https://stepik.org/lesson/7602/step/9?unit=1473 нет ошибка C...
Fedor
131
/////////////////////////////////////// TChart / TLineSeries - сохранение данных (текстовый файл) /////////////////////////////////////// добрый день / работа с графиком: 1....
livontiy
14
Карта сайта