#431087: Packages iteration return dictionaries

Stefano Zacchiroli zack at debian.org
Sat Jun 30 17:11:11 UTC 2007


On Sat, Jun 30, 2007 at 04:35:16PM +0100, John Wright wrote:
> This is implemented in the deb822 module, which is currently in unstable
> as python-deb822, but will be integrated in with python-debian at some
> point.  (A slightly outdated version of the source is in python-debian

AOL on Reinhard's question ...

> already; I need to figure out the best way to either transition from it
> being a "top-level" package to one under the "debian" package, or else
> make the python-debian source build the python-deb822 binary...)
> 
> In particular, see the deb822.Packages.iter_paragraphs method.  deb822
> preserves case and order when "dumping" back out to RFC822 format and
> also provides case-insensitive dictionary-like access.

Ok, cool. But still: what's the advantage of having the list of tuples
version of such a method? I don't see it. Hence I would go for applying
my patch and still wait for the merge with deb822 (hopefully happening
soon).

Cheers.

-- 
Stefano Zacchiroli -*- PhD in Computer Science ............... now what?
zack@{cs.unibo.it,debian.org,bononia.it} -%- http://www.bononia.it/zack/
(15:56:48)  Zack: e la demo dema ?    /\    All one has to do is hit the
(15:57:15)  Bac: no, la demo scema    \/    right keys at the right time
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-python-debian-discuss/attachments/20070630/a5b07347/attachment.pgp 


More information about the pkg-python-debian-discuss mailing list