tarantool / tarantool-python

Python client library for Tarantool
https://www.tarantool.io
BSD 2-Clause "Simplified" License
100 stars 48 forks source link

tarantool-python 1.6.2 vs tarantool 1.10: exx badly formed hexadecimal UUID string #101

Closed knazarov closed 6 years ago

knazarov commented 6 years ago

I thought that the problem with UUID format was fixed in 1.6.2, but it still reproduces

Totktonada commented 6 years ago

@racktear Reproducer?

alg1973 commented 6 years ago

Where is original issue?

knazarov commented 6 years ago

Maybe there is no ticket, but I recall with certainty that it's been reported at least in one of the chats. Anyway, it shouldn't be a stopper, because the problem is trivial to verify: just run the test suite with latest tarantool

Totktonada commented 6 years ago

tarantool 2.0 + tarantool-python master: make test passed.

knazarov commented 6 years ago

I've tried to dig further and this only reproduces in python3 and tarantool 1.10.0

knazarov commented 6 years ago

The reason is this line:

(product, _, tail) = str(greeting_buf)[0:63].partition(' ')

in python3, taking str() of a binary string makes it look like "b'original_string'"