Menu

#2401 eq with nominal units produces runtime error

nextrelease
open-fixed
nobody
None
5
2021-10-25
2021-10-15
No

Ivar ran into a problem where code that made sense with nominal data didn't work. For example:

ds1= Units.nominal('space1').createDatum('A')
print eq(ds1,'A')

Should be True (1), but it results in a runtime error, because it tries to interpret "A" out of context (the nominal units from ds1).

Discussion

  • Jeremy Faden

    Jeremy Faden - 2021-10-25
    • status: open --> open-fixed
     
MongoDB Logo MongoDB