开发者

Ironpython string replace on 16-bit unicode character

In 2.6.4, is there a reason I can't do:

"my string".replace(u'\u2开发者_Go百科00E', '')

without getting an index exception? This looks like a bug in IronPython but I'm not sure...


It is a bug and I have filed a patch for it.


try this: "my string".replace(u'\\u200E', '')

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜