Skip to content

IGNITE-14059: Fix hashing of complex objects#5

Closed
isapego wants to merge 3 commits intoapache:masterfrom
isapego:ignite-14059
Closed

IGNITE-14059: Fix hashing of complex objects#5
isapego wants to merge 3 commits intoapache:masterfrom
isapego:ignite-14059

Conversation

@isapego
Copy link
Copy Markdown
Contributor

@isapego isapego commented Jan 25, 2021

No description provided.

Comment thread pyignite/utils.py Outdated
For strings we iterate over code point which are of the int type
and can take up to 4 bytes and can only be positive.
"""
result = 1 if isinstance(string, (bytes, bytearray)) else 0
Copy link
Copy Markdown
Contributor

@ivandasch ivandasch Jan 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

string is not defined

result = 1 if isinstance(data, (bytes, bytearray)) else 0

Oops, that is not needed at all
result = 0 and that's all

Copy link
Copy Markdown
Contributor Author

@isapego isapego Feb 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, merging issue. Good catch!

@asfgit asfgit closed this in e0c22ef Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants