[Pyobjc-dev] PyObjC- vs. Python Unicode
Brought to you by:
ronaldoussoren
From: Dinu G. <gh...@da...> - 2003-07-02 11:13:20
|
Hi, I'm taking a Unicode string out of an NSTextField, but its type seems to be <type 'objc.pyobjc_unicode'>, not quite like <type 'unicode'> which I'd like to feed into a regular expression using the re module (with Unicode mode). Now I'm getting a TypeError for re.compile. Is their some canonical mechanism to convert to the true Python Uni- code type? Thanks, Dinu -- Dinu C. Gherman ...................................................................... "I want to put a ding in the universe." (Steve Jobs) |