[Pyobjc-dev] Re: [ pyobjc-Bugs-679748 ] NSMutableString gets converted to Python string
Brought to you by:
ronaldoussoren
From: Bill B. <bb...@co...> - 2003-02-03 20:56:33
|
On Monday, Feb 3, 2003, at 15:45 US/Eastern, Just van Rossum wrote: > Bill Bumgarner wrote: >> - a python object that provides a character buffer style interface to >> the contents of an NSString. > > How would this work for NSStrings containing unicode? I have no clue yet. NSString provides a rich set of API for converting from whatever the internal representation is to whatever Unicode representation you might want. As such, it will be easy to produce a character buffer full of, say, UTF8 characters. What can be done with this in the context of the Python API -- whether it can be wrapped into a python object that is actually useful -- remains to be seen. Given that file()/open() only looks for a character buffer and, I believe, can handle a UTF8 path gives me hope. b.bum |