Re: Can I export my datas in pickle format safely ?



DurumDara enlightened us with:
I want to create a database from datas.

Just nitpicking: 'data' is already plural, a single is called 'datum'.

I thinking about that I can use the pickle to serialize/load my
datas from the file.

Sure you can. Be very, very careful though, since unpickling data can
result in that data taking over your Python.

And when I changed my python version from ??? to 2.3(?), and I get
some error messages...

Which is exactly as documented in the pickle module.

So: I want to store datas in the simply as possible, but I don't
want to get error messages in the future, when I upgrade a new
python version.

Without knowing more about your data, I can't help you out. You could
try an SQLite database.

I see that the Gnosis project have pickle tools that can dump
objects to XML. XML is compatible in any future versions, I can
read it, etc.

Don't be too sure that it's compatible for the indefinite future. XML
is just as future-proof as any other format.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
.



Relevant Pages

  • ANN: Amara XML Toolkit 1.2.0.2
    ... Fix bindery bug with e.g. del html.head.title ... Amara XML Toolkit is a collection of Python tools for XML processing-- ...
    (comp.lang.python.announce)
  • Re: Problem with processing XML
    ... standard ways things work in Python. ... If you want to stray from the standards then with some APIs ... Python than hear anyone's sermon about how great Python's other XML ... It's not about "other XML technologies", it's only about making the standard ...
    (comp.lang.python)
  • Re: dynamic class instantiation
    ... I think mixing XML, ... LDF to python parser is a LOT ... This xml file is then fed into the database at the ...
    (comp.lang.python)
  • Issues with XMLTreeBuilder in cElementTree and ElementTree
    ... python app to pretty print xml files. ... return self._target.start(tag, attrib) ... ordered_attributes attribute in the expat parser to use either ordered ... I've never submitted a bug fix to a python library so if this ...
    (comp.lang.python)
  • [Announce] Gnosis Utils 1.2.0
    ... NEW SUBPACKAGES ... generally useful for building/maintaining a Python source ... - attributes# List of (XML) attributes of o ... Fixes to gnosis.xml.indexer suggested by Uche Ogbuju. ...
    (comp.lang.python)