Unicode code has no method float() ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rony Steelandt

    #1

    Unicode code has no method float() ?

    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

    tia

    R_

    --
    ---
    Rony Steelandt
    BuCodi
    rony dot steelandt (at) bucodi dot com

    Visit the python blog at http://360.yahoo.com/bucodi


  • Alexandre Fayolle

    #2
    Re: Unicode code has no method float() ?

    Le 04-05-2006, Rony <bucodi@yahoo.f r.invalid> nous disait:[color=blue]
    > 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[/color]

    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

    Comment

    • Rony Steelandt

      #3
      Re: Unicode code has no method float() ?

      Works, thank you

      [color=blue]
      > Le 04-05-2006, Rony <bucodi@yahoo.f r.invalid> nous disait:[color=green]
      >> 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[/color]
      >
      > Try to use the float builtin function, as in: float(myobject) instead of
      > a method.[/color]


      --
      ---
      Rony Steelandt
      BuCodi
      rony dot steelandt (at) bucodi dot com

      Visit the python blog at http://360.yahoo.com/bucodi


      Comment

      Working...