I have a numpy array of date objects from datetime, which I have to convert into a string so I can use it as part of a SQL statement (for mysql). Generally, this works just fine:
dats = str(dates_list)
dats = string.replace(dats[1:-1],' ',"','")
except for when it's long enough that print dates_list shows the ... (ex: print numpy.arange(4000)).
I tried to directly use the repr special method (yeah, I know I shouldn't), which is supposed to provide a string representation that can be used to rebuild the object. Clearly, I can't build this array using [ 0 1 2 ..., 4997 4998 4999].
How can I get a string representation of the entire aarray?