Project

General

Profile

Actions

Bug #1329

closed

HTSP message deserialise in Python library only returns last entry in any list fields

Added by Nick Tuckett over 12 years ago. Updated over 12 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-10-14
Due date:
% Done:

0%

Estimated time:
Found in version:
3.2 beta
Affected Versions:

Description

Both map and list deserialisation in htsmsg.deserialize0() are handled via the same code that adds each structure's entries to the overall message (a dictionary). For a map, each entry has a unique name; for a list, this name is the empty string. So when a list of more than one entry is decoded, each entry has the same name and consequently overwrites the last one in the list.


Files

htsmsg.py (5.57 KB) htsmsg.py Nick Tuckett, 2012-10-14 17:40
Actions

Also available in: Atom PDF