[Pyrex] strange behavior of re module

Yuan Mang mangyuan at gmail.com
Tue May 2 16:18:42 CEST 2006


Hi,

I need to use the python re module in a pyrex module but found the pattern
matching always return a None value.
I insert the following test to the module file,

t=re.search('\d+','-2.80 98\n').groups()

and when I imported the compiled module, it said  "AttributeError:
'NoneType' object has no attribute 'groups'". Has anyone else
met this problem before or should I do something special to use the re
module? Thanks in advance.

Yuan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.copyleft.no/pipermail/pyrex/attachments/20060502/4eb6c3d8/attachment.html


More information about the Pyrex mailing list