Mailing List Archive

seqdict - 2 sequential dictionaries for python
This is a multi-part message in MIME format.
--------------C95053ACE26D37B3474F794C
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

26.7.1999

Package seqdict

seqdict - single value dictionary
msedict - multiple value dictionary

The Python built-in dictionary has no reliable sequence order because
of performance reasons.

The two new dictionaries introduced here keep their entries in sequence.

* seqdict keeps one value for one key
* mseqdict keeps multiple values per key and is the closest emulation
of areal world dictionary.

As the sequential dictionary is a combination of a list and a dictionary
you can do most operations defined with lists as well and much more.

Now you can slice, add, sort with dictionaries. The functional
operations
map, filter, reduce are implemented as well. Use a dictionary like a
stack
with push and pop. Split it, reverse it and swap keys and values.

A small tutorial is provided as HTML and Postscript Source and is
subject
to become improved some other day.

I think both dictionaries are candidates for the python standard
library.

Use the seqdicts to emulate a printed dictionary. Use them for workinse
them for working with csv-tables. Keep parsed code in a seqdict, modify
it
and write it back ...

Download from
http://www.germany.net/teilnehmer/100,366919/Python/Modules/Modules.html

Wolfgang Grafen
mailto:WolfgangGrafen@gmx.de
--------------C95053ACE26D37B3474F794C
Content-Type: text/x-vcard; charset=us-ascii;
name="wolfgang.grafen.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Wolfgang Grafen
Content-Disposition: attachment;
filename="wolfgang.grafen.vcf"

begin:vcard
n:Grafen;Wolfgang
tel;fax:+49 7191 13-4321
tel;work:+49 7191 13-3238
x-mozilla-html:FALSE
org:Bosch Telecom
version:2.1
email;internet:wolfgang.grafen@de.bosch.com
adr;quoted-printable:;;Abt. UC-ON/EUA1=0D=0ABosch Telecom GmbH;D-71520 Backnang;;;Germany
x-mozilla-cpt:;-3688
fn:Wolfgang Grafen
end:vcard

--------------C95053ACE26D37B3474F794C--
seqdict - 2 sequential dictionaries for python [ In reply to ]
This is a multi-part message in MIME format.
--------------FF47BF5F792070FF7DF5A252
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Wolfgang Grafen wrote:
>
> 26.7.1999
>
> Package seqdict
>
> seqdict - single value dictionary
> msedict - multiple value dictionary

oops, should have gone to comp.lang.python.announce

Sorry for that...

Wolfgang
--------------FF47BF5F792070FF7DF5A252
Content-Type: text/x-vcard; charset=us-ascii;
name="wolfgang.grafen.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Wolfgang Grafen
Content-Disposition: attachment;
filename="wolfgang.grafen.vcf"

begin:vcard
n:Grafen;Wolfgang
tel;fax:+49 7191 13-4321
tel;work:+49 7191 13-3238
x-mozilla-html:FALSE
org:Bosch Telecom
version:2.1
email;internet:wolfgang.grafen@de.bosch.com
adr;quoted-printable:;;Abt. UC-ON/EUA1=0D=0ABosch Telecom GmbH;D-71520 Backnang;;;Germany
x-mozilla-cpt:;-3688
fn:Wolfgang Grafen
end:vcard

--------------FF47BF5F792070FF7DF5A252--