[Pyobjc-dev] Relatively major bugfix committed
Brought to you by:
ronaldoussoren
From: Bill B. <bb...@co...> - 2003-01-17 19:07:59
|
I just committed a bug fix that fixed a fairly nasty problem with the bridging of enumerators. That is, any dictionary or array enumerated via the 'in' operator would terminate the enumeration early if the array/dict contained an object/key that evaluated to Python False. That is: for x in [1,2,3,'',4]: print x Would only output: 1 2 3 Fixed; trivial fix. I also added a function to Foundation that converts a Foundation based collection of objects into a Python collection: pythonCollectionFromPropertyList() This mirrors propertyListFromPythonCollection(). It proves to be an incredibly convenient means of taking an NSDictionary and creating a fully mutable copy: dict = pythonCollectionFromPropertyList(NSDictionary.dictionaryWithContentsOfFi le_("MySavedData.plist") All of this was motivated by the creation of a tool to parse OmniWeb bookmarks and import the result into Safari: http://radio.weblogs.com/0100490/2003/01/17.html#a377 b.bum |