[Python-Dev] Deprecating float.is_integer()
Steve Holden
steve at holdenweb.com
Wed Mar 21 12:22:53 EDT 2018
On Wed, Mar 21, 2018 at 3:08 PM, Guido van Rossum <guido at python.org> wrote:
> I searched 6M LoC of Python code at Dropbox and found only three uses.
> They seem legit. Two are about formatting a number that's given as a float,
> deciding whether to print a float as 42 or 3.14. The third is attempting a
> conversion from float to integer where a non-integer must raise a specific
> exception (the same function also supports a string as long as it can be
> parsed as an int).
>
> I don't doubt we would get by if is_integer() was deprecated.
>
> Since code that's been deleted can't have bugs, +1.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <[Python-Dev] Deprecating float.is_integer()
Next message (by thread): [Python-Dev] Deprecating float.is_integer()
Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Python-Dev
mailing list