Ivan Daschinsky created IGNITE-14511:
----------------------------------------
Summary: Putting bytes to cache converted to string by default.
Key: IGNITE-14511
URL:
https://issues.apache.org/jira/browse/IGNITE-14511 Project: Ignite
Issue Type: Bug
Components: python, thin client
Affects Versions: python-0.3.4
Reporter: Ivan Daschinsky
Currently, when you put {{b'\x01\x02}} to cache without a type hint, you
will get string {{'\x01\x02'}}. It is very confusing. If you put {{bytes}} with
{{value_hint=ByteArrayObject}} you will get {{bytearray}}. As for me, it is quite
strange to return mutable {{bytearray}} instead of {{bytes}}
I suggest following:
1. By default treat {{bytes}} as {{ByteArrayObject}}
2. Method {{to_python}} of {{ByteArrayObject}} to {{bytes}}, not to {{bytearray}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)