Xbmc python bug!?
#1
hello there.

i think i found a bug in xbmc python.
when using regular expressions the method re.findall() doesn't work. you have to compile the pattern first and then use the findall() with that pattern.

this doesn't work:
pattern = any pattern
result = re.findall(pattern, data, re.dotall|re.ignorecase)

this works:
pattern = any pattern
x = re.compile(pattern, re.dotall|re.ignorecase)
result = x.findall(data)
Reply
#2
yeah im not sure what it means to 'compile' an re as i dont have much re experience. xbmc does use the standard python 2.3.3 library and didnt touch any of that stuff (only the xbmc python module) so if that were a bug there is little they could do about it.
Reply

Logout Mark Read Team Forum Stats Members Help
Xbmc python bug!?0