Skip to content

Extention types as keys #240

Closed
Closed
@DifferentialOrange

Description

@DifferentialOrange

There is an explicit type checks for SELECT, UPDATE and DELETE operation keys:

supported_types = integer_types + string_types + binary_types + (float,)

Extended types are not supported yet:

>>> conn.select('space', uuid.uuid4())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/georgymoiseev/Development/github/tarantool/tarantool-python/tarantool/connection.py", line 1519, in select
    key = check_key(key, select=True)
  File "/home/georgymoiseev/Development/github/tarantool/tarantool-python/tarantool/utils.py", line 51, in check_key
    assert isinstance(key, supported_types)
AssertionError

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions