Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging of attributes of the same value but different types #34

Open
trungdong opened this issue Apr 24, 2014 · 1 comment
Open

Merging of attributes of the same value but different types #34

trungdong opened this issue Apr 24, 2014 · 1 comment

Comments

@trungdong
Copy link
Owner

The (extra) attribute-value pairs of a record have set-like behaviour, i.e. entity(ex:a, [ex:v=2, ex:v=2]) is considered equivalent to entity(ex:a, [ex:v=2]). Therefore, attribute-value pairs are stored in a set by prov.model.

However, when adding values to a set, Python considers 2 (int) and 2.0 (float) the same, resulting only one values retained in the set.

trungdong added a commit that referenced this issue Apr 24, 2014
…iterals to Python's float and long values to avoid the bug #34
trungdong added a commit that referenced this issue Apr 24, 2014
…d:long literals to Python's float and long values to avoid the bug #34"

This reverts commit 9a83973.
@satra
Copy link
Contributor

satra commented Oct 12, 2016

this is also true of set((1, True)),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants