Hi Ivan! Thank you very much for your reply! And explanations :)
Function you wrote works like a charm. On 26 Dec 2022, at 6:59 PM, Ivan Daschinsky <[email protected]> wrote: Внимание: Внешний отправитель! Если вы не знаете отправителя - не открывайте вложения, не переходите по ссылкам, не пересылайте письмо! Also, please use pyignite 0.6.0 if possible. пн, 26 дек. 2022 г. в 18:58, Ivan Daschinsky <[email protected]<mailto:[email protected]>>: I perfectly understand that the API is awful, but there is no way to change it without breaking backward compatibility. It is impossible to make classes with the metaclass GeneralObjectMeta hashable. Firstly, these classes are mutable. Secondly, their hashcode can be calculated properly only with meta registry and possibly with network requests. Possible solution is to return not a dictionary, but a list of kv tuples. But it will also break backward compatibility. I don't understand why this variant was not chosen. пн, 26 дек. 2022 г. в 18:52, Ivan Daschinsky <[email protected]<mailto:[email protected]>>: Nope, unfotunately there is not any built in method. But it seems that this is not necessary at all to do this? def wrap_binary(client, value) : with BinaryStream(client) as stream: BinaryObject.from_python(stream, value) return (stream.getvalue(), 0) for k in data.keys(): key = client.unwrap_binary(k) print(key) print(data[wrap_binary(client, key)]) -- Sincerely yours, Ivan Daschinskiy -- Sincerely yours, Ivan Daschinskiy -- Роза Айсина Старший разработчик ПО СберМаркет | Доставка из любимых магазинов Email: [email protected]<mailto:[email protected]> Mob: Web: sbermarket.ru<https://sbermarket.ru/> App: iOS<https://apps.apple.com/ru/app/%D1%81%D0%B1%D0%B5%D1%80%D0%BC%D0%B0%D1%80%D0%BA%D0%B5%D1%82-%D0%B4%D0%BE%D1%81%D1%82%D0%B0%D0%B2%D0%BA%D0%B0-%D0%BF%D1%80%D0%BE%D0%B4%D1%83%D0%BA%D1%82%D0%BE%D0%B2/id1166642457> и Android<https://play.google.com/store/apps/details?id=ru.instamart&hl=en&gl=ru> УВЕДОМЛЕНИЕ О КОНФИДЕНЦИАЛЬНОСТИ: это электронное сообщение и любые документы, приложенные к нему, содержат конфиденциальную информацию. Настоящим уведомляем Вас о том, что, если это сообщение не предназначено Вам, использование, копирование, распространение информации, содержащейся в настоящем сообщении, а также осуществление любых действий на основе этой информации, строго запрещено. Если Вы получили это сообщение по ошибке, пожалуйста, сообщите об этом отправителю по электронной почте и удалите это сообщение. CONFIDENTIALITY NOTICE: This email and any files attached to it are confidential. If you are not the intended recipient you are notified that using, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error please notify the sender and delete this email.
