[Python-Dev] FixedPoint and % specifiers.

Neil Schemenauer nas@python.ca
Wed, 5 Feb 2003 17:33:55 -0800


Tim Peters wrote:
> I sure wouldn't <wink>.  Note that use of %f ends up calling
> FixedPoint.__float__(), though, and so sucks users right back into binary fp
> surprises:

Perhaps FixedPoint should not have a __float__ method.  Instead it could
have something like as_float().  That would give people a clue they are
getting into trouble.

  Neil