Ticket #458 (closed enhancement: fixed)
generate exception when encoding duplicate keys
| Reported by: | arman0 | Owned by: | nick |
|---|---|---|---|
| Priority: | blocker | Milestone: | 0.4.1 |
| Component: | Encoder | Version: | 0.4 |
| Keywords: | Cc: | ||
| Fixed in revision: | Branch: | ||
| Author: |
Description (last modified by thijs) (diff)
>>> pyamf.decode(pyamf.encode({0:0, '0':1})).next() {u'0': 1}
My guess is that the user almost always has a bug when encoding a python dict which will result in duplicate AS object keys. Therefore, it would be help for pyamf to raise an exception in such cases.
-arman
Change History
Note: See
TracTickets for help on using
tickets.


