[New-bugs-announce] [issue14342] In re's examples the example with recursion doesn't work

py.user report at bugs.python.org
Sat Mar 17 01:48:28 CET 2012


New submission from py.user <port139 at yandex.ru>:

http://docs.python.org/py3k/library/re.html#avoiding-recursion

>>> import sys
>>> sys.getrecursionlimit()
1000
>>> import re
>>> s = 'Begin ' + 1000*'a very long string ' + 'end'
>>> re.match('Begin (\w| )*? end', s).end()
19009
>>>

----------
assignee: docs at python
components: Documentation, Regular Expressions
messages: 156112
nosy: docs at python, ezio.melotti, mrabarnett, py.user
priority: normal
severity: normal
status: open
title: In re's examples the example with recursion doesn't work
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14342>
_______________________________________


More information about the New-bugs-announce mailing list