Skip to content

Commit

Permalink
prov.model: Temporary disabled auto-mapping xsd:double and xsd:long l…
Browse files Browse the repository at this point in the history
…iterals to Python's float and long values to avoid the bug #34
  • Loading branch information
trungdong committed Apr 24, 2014
1 parent fb60e12 commit 9a83973
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions prov/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@ def _parse_datatype(value, datatype):
# Mappings for XSD datatypes to Python standard types
XSD_DATATYPE_PARSERS = {
u"xsd:string": unicode,
u"xsd:double": float,
u"xsd:long": long,
# TODO: The following are omitted because attribute values 2 and 2.0 are consider the same by Python in a set!
# (two values of xsd:int 2 and xsd:double 2.0 will be merged into one if the below mappings are enabled)
# See issue #34
# u"xsd:double": float,
# u"xsd:long": long,
u"xsd:int": int,
u"xsd:boolean": bool,
u"xsd:dateTime": parse_xsd_datetime,
Expand Down

0 comments on commit 9a83973

Please sign in to comment.