[Pyobjc-dev] Converting NSCFDictionary etc. to native Python instances
Brought to you by:
ronaldoussoren
From: Dinu G. <gh...@da...> - 2003-10-10 18:52:42
|
Hi, is there some smarter way to turn output like that from NSUserDefaults.standardUserDefaults().dictionaryRepresentation() with lots of NSCF-whatever instances inside into native Python datatypes than doing it "manually" like this: d = NSUserDefaults.standardUserDefaults().dictionaryRepresentation() dict = {} dict.update(d) and then working recursively down the nested levels? Dinu -- Dinu C. Gherman ...................................................................... "The whole point of brainwashing, is that those being brainwashed don't know it." (Graham Haley) |