Skip to content

Commit 9a83973

Browse files
committed
prov.model: Temporary disabled auto-mapping xsd:double and xsd:long literals to Python's float and long values to avoid the bug #34
1 parent fb60e12 commit 9a83973

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

prov/model.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,11 @@ def _parse_datatype(value, datatype):
8080
# Mappings for XSD datatypes to Python standard types
8181
XSD_DATATYPE_PARSERS = {
8282
u"xsd:string": unicode,
83-
u"xsd:double": float,
84-
u"xsd:long": long,
83+
# TODO: The following are omitted because attribute values 2 and 2.0 are consider the same by Python in a set!
84+
# (two values of xsd:int 2 and xsd:double 2.0 will be merged into one if the below mappings are enabled)
85+
# See issue #34
86+
# u"xsd:double": float,
87+
# u"xsd:long": long,
8588
u"xsd:int": int,
8689
u"xsd:boolean": bool,
8790
u"xsd:dateTime": parse_xsd_datetime,

0 commit comments

Comments
 (0)