Collapse a list and eval ??

Discussion in 'Python' started by TAG, Oct 8, 2004.

  1. TAG

    TAG Guest

    HI,

    If I have a list :

    data=['round', '(', '(', 12345, '*', '-', '0.0025', ')', ',', '2', ')', '']

    how can I collapse it so that it becomes:
    data_collapsed=['round((12345*-0.0025),2)']

    and then run an eval() on it ?

    Am I doing this the right way ?

    Thanks
    Tonino
     
    TAG, Oct 8, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Vaclav Jedlicka

    datagrid and border-collapse:collapse style

    Vaclav Jedlicka, Jun 26, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    5,947
    Yan-Hong Huang[MSFT]
    Jun 30, 2003
  2. DataBinder.Eval and Eval.

    , Jun 16, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    547
    Karl Seguin [MVP]
    Jun 16, 2006
  3. VVSRKS

    How can I avoid border-collapse:collapse to come ...

    VVSRKS, Sep 16, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    200
    VVSRKS
    Sep 16, 2004
  4. Tom Castiglia

    Why does Gridview ALWAYS emit style="border-collapse: collapse;"

    Tom Castiglia, Jun 4, 2006, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    2,005
    Tom Castiglia
    Jun 9, 2006
  5. M.L.
    Replies:
    9
    Views:
    299
Loading...

Share This Page