This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Jonathan.Livni
Recipients Jonathan.Livni
Date 2013-01-30.08:33:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1359534793.39.0.291653711097.issue17080@psf.upfronthosting.co.za>
In-reply-to
Content
These lines of Python (2.7):

    y = float(x)

gives the error:

    TypeError: float() argument must be a string or a number.

In various cases such as:

    x = [0]
    x = None
    x = SomeClass()

In addition to the information given in the error message, it could help, for debugging purposes, to state the type of the object given.
History
Date User Action Args
2013-01-30 08:33:13Jonathan.Livnisetrecipients: + Jonathan.Livni
2013-01-30 08:33:13Jonathan.Livnisetmessageid: <1359534793.39.0.291653711097.issue17080@psf.upfronthosting.co.za>
2013-01-30 08:33:13Jonathan.Livnilinkissue17080 messages
2013-01-30 08:33:12Jonathan.Livnicreate