Numbers in SQL statements

Aahz Maruch aahz at
Sat Nov 6 00:40:57 CET 1999

In article <38235836.D2F9A909 at>,
Nick Collier  <nick at> wrote:
>I've been testing if the value is a number whose string representation
>ends with "L" and then stripping the "L", but am pretty sure there must
>be a better way. If so, any suggestions as to what is?

if type(foo) = types.LongType :
  return ( str(foo)[:-1] )
else :
  return ( str(foo) )
                      --- Aahz (

Androgynous poly kinky vanilla queer het    <*>
Hugs and backrubs -- I break Rule 6  (if you want to know, do some research)

More information about the Python-list mailing list