[Pythonmac-SIG] CF module oddity

Ronald Oussoren oussoren@cistron.nl
Mon May 5 21:35:31 EDT 2003


I've been playing with the Carbon.CF module, mostly because I want to 
add "toll-free" bridgeing to a future version of PyObjC. I noticed 
something strange:

 >>> import Carbon.CF
 >>> s = Carbon.CF.CFStringCreateWithCharacters("hello")
 >>> s.toPython()
u'\u6865\u6c6c'
 >>>

Is this intentional? Using u"hello" instead of "hello" gives a better 
result.

This is with Python2.3b1 (actually a more recent CVS version).

Ronald





More information about the Pythonmac-SIG mailing list