Floats and integers get confused

Issue #2 resolved
tlynn created an issue

biplist confuses e.g. 1.0 and 1 when writing, due to Python dicts not distinguishing the two when they are used as keys.

This can be fixed by using a FloatWrapper along the lines of the existing BoolWrapper.

Comments (3)

  1. tlynn reporter
    >>> biplist.readPlistFromString(biplist.writePlistToString({'a':1, 'b':1.0}))
    {'a': 1, 'b': 1}
    
  2. Log in to comment