You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ivan Daschinsky (Jira)" <ji...@apache.org> on 2021/04/09 13:21:00 UTC

[jira] [Updated] (IGNITE-14511) Putting bytes to cache converted to string by default.

     [ https://issues.apache.org/jira/browse/IGNITE-14511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan Daschinsky updated IGNITE-14511:
-------------------------------------
    Fix Version/s: python-0.4.0

> 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
>            Priority: Major
>             Fix For: python-0.4.0
>
>
> 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)