On Fri, 31 Aug 2001, Michael Teo wrote: > Thanks for your help. > However, I noticed that Python 2.1 does not give a trailing 'L' for str(l). > Is there any solution which will work well for Python 1.5.2 and Python 2.1 ? s=str(n) if s[-1]=='L': s=s[:-1] -- Ignacio Vazquez-Abrams <ignacio at openservices.net>