Bugs item #679748, was opened at 2003-02-03 20:47
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=114534&aid=679748&group_id=14534
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Just van Rossum (jvr)
Assigned to: Nobody/Anonymous (nobody)
Summary: NSMutableString gets converted to Python string
Initial Comment:
Regardless of the issue whether NSStrings should be converted at all, NSMutableString definitely must not be converted to a Python string when calling into Python. David Eppstein posted this test case to the list:
# test ability to use NSMutableString
from Foundation import NSObject, NSMutableString
class TestUndoInt (NSObject):
def init(self):
self.string = NSMutableString.stringWithCapacity_(20)
self.string.setString_("initial")
x = TestUndoInt.alloc().init()
assert(str(x.string) == 'initial')
This fails with an AttributeError "setString_" as self.string was converted to a Python string.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=114534&aid=679748&group_id=14534
|