JPython and groupdict?

war] warren at baker.ie
Fri Sep 17 11:38:52 EDT 1999


I wonder can anyone let me know if I can get the following Python to run in
JPython:


[In Python]
>>> import re
>>> re.compile('a(?P<mid>.*)c').match('abc').groupdict()
{'mid': 'b'}

[JPython]
>>> import re
>>>  re.compile('a(?P<mid>.*)c').match('abc').groupdict()
Traceback (innermost last):
  File "<console>", line 1, in ?
AttributeError: instance of 'org.python.modules.MatchObject' has no
attribute 'g
roupdict'

Thanks in advance,
Warren.






More information about the Python-list mailing list