Unicode code has no method float() ?

Alexandre Fayolle alf at merlin.fayauffre.org
Thu May 4 10:57:18 EDT 2006


Le 04-05-2006, Rony <bucodi at yahoo.fr.invalid> nous disait:
> How can I get the value of a Unicode object ?
>
> When I do myobject.float() I get the error message that it doesn't have 
> a float() attribute

Try to use the float builtin function, as in: float(myobject) instead of
a method. 


-- 
Alexandre Fayolle                              LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian:  http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
Python et calcul scientifique:           http://www.logilab.fr/science



More information about the Python-list mailing list