Eq versus ==
behavior following Float "integer" is_integer changes
#26146
Labels
core
floats
Needs Decision
This needs discussion to resolve an undecided issue before further work can be done.
Float("2", 32) == Float("2", 64)
is now False after #25875.But
Eq(Float("2", 32), Float("2", 64))
is still True. IIRC, we want structural equality to imply mathematical equality (in many perhaps most cases). But of course not the other way around.@smichr do you think that
Eq(Float2, 32), Float(2, 64))
should also be non-truthy?In seems this would also be consistent with this behaviour:
The text was updated successfully, but these errors were encountered: