Re: [Pyobjc-dev] Re: [Pyobjc-checkins] CVS: pyobjc/Modules/objc OC_PythonString.[hm]
Brought to you by:
ronaldoussoren
From: Bill B. <bb...@co...> - 2003-02-16 19:22:21
|
On Sunday, Feb 16, 2003, at 14:14 US/Eastern, Ronald Oussoren wrote: > I'm in favor of OC_PythonInt.[hm] and OC_PythonString.[hm] that were > in before you checked in a new OC_PythonString implementation. OC_PythonString.[hm] has not been used in a long, long time. In any case, I'm not attached to the implementation. I would like to avoid the copying simply because strings are passed from Python->ObjC *a lot* [in my various PyObjC apps, I often end up with an NSDictionary as a backing store for a bunch of data with Python accessing stuff from that dictionary on a regular basis -- similarly, I'm frequently passing Python strings into various AppKit/Foundation API that require strings-- user defaults, notification center, etc...]. I suppose that for small strings it is largely irrelevant. Whatever -- the only thing I feel strongly about is that the Python -> ObjC string conversion code that is currently stuck in objc_support.m should move to OC_PythonString and be invoked in a similar fashion as the rest of the code in that long if/else if/else if/else if block instead of the current chunk of code that is there. b.bum |