> >> eval! > > > >Overkill. Unsafe. Ugly. Lame. > > > > What do you mean by unsafe? Also, in addition to the criticism of the suggested method (eval), you could post your simpler, safe and able-bodied alternative. Perhaps it was: try: n = eval(string) except: n = 0