[New-bugs-announce] [issue16772] int() accepts float number base
Serhiy Storchaka
report at bugs.python.org
Mon Dec 24 21:10:16 CET 2012
New submission from Serhiy Storchaka:
I'm not sure this is a bug. In 2.7 int() and long() with float number base raises TypeError. But in 3.x int() accepts float number base and truncate it to int.
----------
components: Interpreter Core
messages: 178095
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: int() accepts float number base
versions: Python 3.2, Python 3.3, Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16772>
_______________________________________
More information about the New-bugs-announce
mailing list