There's another test you can make:
test = (2,3)
import cPickle
testpickle = cPickle.dumps(t est,2)
testpickle
print testpickle
The last two commands are very different. When you type just testpickle, you get something like:
'\x80\x02K\x02K \x03\x86q\x01.'
when you type 'print testpickle', you get:
€ K K † q .
There are spaces between the elements. These are the...
User Profile
Collapse
-
Even by including your suggestion, that is, using eval and replace, it still adds spaces between the data. And because of the spaces, I can't access the data correctly in another program.
The same thing happens if I Pickle the data before adding to the database.Leave a comment:
-
I have tried that and I get the same thing.
How do I convert my array to byte stream?Leave a comment:
-
Array Problem
Hi everyone,
I am writing a python program using PyADO to add some data to an 'mdb'
database. For example,
filename = UserObjs.mdb
table I am working with = Lines
fields I am working with = ID and Metrics
The 'ID' field is just a number field. The 'Metrics' filed is an OLE object.
In this OLE object assigned in Microsoft Access, I need to include a series
of latitude/longitude numbers...
No activity results to display
Show More
Leave a comment: