<br>Hello,<br><br>In the current form, the multivalued fields are returned like a list. Search within them is much easier if they are dictionary alike objects.<br><br>My use case is the Release file and the checksums multivalued fields. To search for the md5 of a file I must run over release[&#39;MD5Sum&#39;] checking every name field in its dictionary elements, instead of just use release[&#39;MD5Sum&#39;][name].<br>
<br>So, I use deb822.py patched to return this multivalued dictionaries. Although I send it attached, I&#39;m not proposing it to inclusion as is, but only to show, because it will probably break most of the existing code (requires a &#39;.values()&#39; to return the old list). Mi proposal is to add a _multivalued_dict class with this behaviour, so allowing a non hardcoded value for the dictionary key. Using an optional argument on instantiation indicating the name of the dictionary key might be a better approach, although I&#39;m not able to see how to implement with the current __init__ prototype.<br>
<br>Javier Palacios<br>