How to tell if function was passed a list or a string?

Sion Arrowsmith siona at
Thu May 18 15:49:07 CEST 2006

rh0dium <steven.klass at> wrote:
> [ ... ]

Since you have lots of answers to your real question:

>                    an.append(re.sub(",","", str(a)))

an.append(str(a).replace(",", ""))

\S -- siona at --
  ___  |  "Frankly I have no feelings towards penguins one way or the other"
  \X/  |    -- Arthur C. Clarke
   her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump

More information about the Python-list mailing list