[Python-bugs-list] [ python-Bugs-444510 ] int() should guarantee truncation
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 25 Jul 2001 09:03:22 -0700
Bugs item #444510, was opened at 2001-07-25 09:03
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=444510&group_id=5470
Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Guido van Rossum (gvanrossum)
Assigned to: Nobody/Anonymous (nobody)
Summary: int() should guarantee truncation
Initial Comment:
The int() function currently warns that it cannot
guarantee truncation because C doesn't guarantee it.
However, all known (to us) C implementations *do*
truncate, and the C99 standard requires it, so we might
as well change the code to promise truncation and
tighten the docs.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=444510&group_id=5470