Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#126 Splitter might poison letter comparison

TextIndexNG
open
nobody
Indexer (49)
5
2013-04-29
2011-07-21
Michael Howitz
No

After splitting a single char upper case unicode letter, comparison between unicode and string objects is broken: (See attached test, too.)

>>> u'D' == 'D'
True
>>> zopyx.txng3.ext.splitter.Splitter().split(u'D')
[]
>>> u'D' == 'D'
False

Discussion

  • Michael Howitz
    Michael Howitz
    2011-07-21

    Test which shows problem, too

     
    Attachments