From: SourceForge.net <no...@so...> - 2004-09-29 22:03:10
|
Bugs item #1037235, was opened at 2004-09-29 21:36 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1037235&group_id=10894 Category: 15. Dict Object Group: current: 8.5a1 Status: Open Resolution: None Priority: 5 Submitted By: Stefan Muehlebach (muehlebachs) Assigned to: Donal K. Fellows (dkf) Summary: Inconsistency in 'dict set' Initial Comment: The goal is to create a nested dictionary (foo) with the following mappings: a -> A bc -> b -> B bc -> c -> C One would expect to do it by: dict set foo a A dict set foo bc b B dict set foo bc c C But this leads to the error (key "bc" not known in dictionary). Instead it has to be done by: dict set foo a A dict set foo bc [dict create b B c C] After the mappings are created, the values can be changed by: dict set foo a AA dict set foo bc b BB dict set foo bc c CC The different treatment of mappings at the 'top level' and at a 'lower level' should either be removed/corrected or mentioned in the docu. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1037235&group_id=10894 |