Tk Library Source Code

View Ticket
Login
Ticket UUID: 3042811
Title: huddle bug in dicts with complex keys
Type: Bug Version: None
Submitter: coldstore Created on: 2010-08-11 00:00:27
Subsystem: json Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2013-07-04 17:25:22
Resolution: Not Applicable Here Closed By:
    Closed on:
Description:
package require huddle

set bb [huddle create {a b} b c d]
puts [huddle jsondump $bb]

Run it, it produces:

key "{a b}" not known in dictionary
    while executing
"dict get $src $key"
    (procedure "::huddle::_dict_setting" line 22)
    invoked from within
"$types(callback:$tag) get_sub $src $path"
    (procedure "_get2" line 4)

I presume there's something in huddle which inappropriately deals with complex key cases.