[Python-bugs-list] [ python-Bugs-660022 ] parameters for int(), str(), etc.

noreply@sourceforge.net noreply@sourceforge.net
Wed, 01 Jan 2003 18:37:58 -0800


Bugs item #660022, was opened at 2002-12-30 10:47
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=660022&group_id=5470

Category: Documentation
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Aahz (aahz)
>Assigned to: Raymond Hettinger (rhettinger)
Summary: parameters for int(), str(), etc.

Initial Comment:
The built-in functions int(), str(), float(), long() are documented as
requiring a parameter, but the type/class unification has changed them
so that they return a false object without a parameter:

>>> int()
0
>>> str()
''
>>> float()
0.0
>>> long()
0L


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=660022&group_id=5470