2 sequential dictionaries for python
Wolfgang Grafen
wolfgang.grafen at de.bosch.com
Mon Jul 26 08:17:16 EDT 1999
More information about the Python-list mailing list
Mon Jul 26 08:17:16 EDT 1999
- Previous message (by thread): NT admin modules?
- Next message (by thread): seqdict - 2 sequential dictionaries for python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 at gmx.de -------------- next part -------------- A non-text attachment was scrubbed... Name: wolfgang.grafen.vcf Type: text/x-vcard Size: 329 bytes Desc: Card for Wolfgang Grafen URL: <http://mail.python.org/pipermail/python-list/attachments/19990726/627f0d65/attachment.vcf>
- Previous message (by thread): NT admin modules?
- Next message (by thread): seqdict - 2 sequential dictionaries for python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list