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

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

Projects

None yet

2 participants

@trungdong
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 trungdong added a commit that referenced this issue Apr 24, 2014
@trungdong prov.model: Temporary disabled auto-mapping xsd:double and xsd:long l…
…iterals to Python's float and long values to avoid the bug #34
9a83973
@trungdong trungdong added a commit that referenced this issue Apr 24, 2014
@trungdong Revert "prov.model: Temporary disabled auto-mapping xsd:double and xs…
…d:long literals to Python's float and long values to avoid the bug #34"

This reverts commit 9a83973.
6e0dd93
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