Thank you, but this is not what I had in mind. I'm new to Python and I
forgot that there are also dictionaryes in Python.
What I had in mind was the dictionary that Zlib builds during the
compression. I would like to build a dictionary like this and then
compress some other texts with this dictionary as the starting
dictionary.
This is confusing... :)
Janez
"Byron Morgan" <lazypointer at yahoo.com> wrote in message news:<Bl2Ja.577$6N.62049428 at newssvr21.news.prodigy.com>...
> I haven't used Zlib, but it looks as though it is at least somewhat
> possible.
>> >>> import zlib
> >>> data = {'Name':'Spam','Pet':'ex-Parrot'}
> >>> dataz = zlib.compress(repr(data))
> >>> eval(zlib.decompress(dataz))['Name']
> 'Spam'
> >>>
>> Byron Morgan
>> "Miki" <janezgd at email.si> wrote in message
> news:d75d795f.0306210032.238abe54 at posting.google.com...> > Hi
> >
> > Is it possible, with the Zlib library in Python, to compress some text
> > data with a dictionary built on some other text? Is it possible to
> > somehow access the dictionary after the compression and reuse it in
> > another compression?
> >
> > Thanky you,
> >
> > Janez