User Profile

Collapse

Profile Sidebar

Collapse
mikesm
mikesm
Last Activity: Mar 31 '09, 04:02 PM
Joined: Mar 24 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mikesm
    replied to Array Problem
    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...
    See more | Go to post

    Leave a comment:


  • mikesm
    replied to Array Problem
    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.
    See more | Go to post

    Leave a comment:


  • mikesm
    replied to Array Problem
    I have tried that and I get the same thing.

    How do I convert my array to byte stream?
    See more | Go to post

    Leave a comment:


  • mikesm
    started a topic Array Problem

    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...
    See more | Go to post
    Last edited by bvdet; Mar 24 '09, 10:44 PM. Reason: Add code tags and indentation
No activity results to display
Show More
Working...