Possible to write a Unicode*like* object?
Michael Hudson
mwh at python.net
Tue Feb 4 08:33:43 EST 2003
Just <just at xs4all.nl> writes:
> In the PyObjC project (a bridge between Python and Objective-C, and/or
> Cocoa really, OSX's GUI stuff) there's currently a discussion about
> whether to _convert_ NSString instances (the Cocoa string class) to
> Python (unicode) strings or to wrap the original instance that would
> make it string-like. For 8-bit strings wrapping is probably not a big
> deal, the buffer interface makes this work quite transparently, but I
> have no clue whether this is possible for unicode strings as well. Any
> ideas?
I think you can return unicode data through the buffer interface too,
can't you? In any case, I'm a bit unsure what exactly you're asking.
Cheers,
M.
--
Reading Slashdot can [...] often be worse than useless, especially
to young and budding programmers: it can give you exactly the wrong
idea about the technical issues it raises.
-- http://www.cs.washington.edu/homes/klee/misc/slashdot.html#reasons
More information about the Python-list
mailing list