[issue14155] Deja vu in re's documentation

2012-04-28 Thread Ezio Melotti
Ezio Melotti added the comment: I added a note about \b. I don't think the duplicate description of the octal escapes is a problem. -- ___ Python tracker ___ _

[issue14155] Deja vu in re's documentation

2012-04-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 142297db28f1 by Ezio Melotti in branch '2.7': #14155: add a note about \b. http://hg.python.org/cpython/rev/142297db28f1 New changeset f4b167309bee by Ezio Melotti in branch '3.2': #14155: add a note about \b. http://hg.python.org/cpython/rev/f4b16

[issue14155] Deja vu in re's documentation

2012-03-01 Thread py.user
py.user added the comment: I won't open another topic: 1) http://docs.python.org/py3k/library/re.html#regular-expression-syntax "Most of the standard escapes supported by Python string literals are also accepted by the regular expression parser: \a \b \f \n \r \t \v

[issue14155] Deja vu in re's documentation

2012-03-01 Thread py.user
py.user added the comment: this sentence was deleted: http://docs.python.org/py3k/library/re.html#matching-vs-searching "The “match” operation succeeds only if the pattern matches at the start of the string regardless of mode, or at the starting position given by the optional pos argument regard

[issue14155] Deja vu in re's documentation

2012-03-01 Thread Ezio Melotti
Ezio Melotti added the comment: Do you think I should mention that you can still use match and a regex that starts to ^ in combination with the start argument of r.match to match at the beginning of a line? I'm not sure that's necessary. -- ___ Pyt

[issue14155] Deja vu in re's documentation

2012-02-29 Thread py.user
py.user added the comment: the multiline mode affects on regex.match() >>> p = re.compile(r'^a') >>> p.match('abc\nabc') <_sre.SRE_Match object at 0xb749bf38> >>> p.match('abc\nabc').span() (0, 1) >>> p.match('abc\nabc', 4) >>> >>> p = re.compile(r'^a', re.M) >>> p.match('abc\nabc', 4) <_sre.S

[issue14155] Deja vu in re's documentation

2012-02-29 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed. I changed something, as suggested by Éric. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue14155] Deja vu in re's documentation

2012-02-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3958121a027f by Ezio Melotti in branch '2.7': #14155: remove duplication about search vs match in re doc. http://hg.python.org/cpython/rev/3958121a027f New changeset 4114e816a71b by Ezio Melotti in branch '3.2': #14155: remove duplication about sea

[issue14155] Deja vu in re's documentation

2012-02-29 Thread Éric Araujo
Éric Araujo added the comment: Didn’t review all lines in detail but looks globally good. I would not remove Fred’s name though, but move it to another section or the top-level of the file. -- nosy: +eric.araujo ___ Python tracker

[issue14155] Deja vu in re's documentation

2012-02-29 Thread Ezio Melotti
Ezio Melotti added the comment: Patch attached. -- assignee: docs@python -> ezio.melotti components: +Regular Expressions keywords: +patch nosy: +mrabarnett stage: -> patch review Added file: http://bugs.python.org/file24677/issue14155.diff ___ Pyth

[issue14155] Deja vu in re's documentation

2012-02-28 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +ezio.melotti, pitrou versions: +Python 2.7, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list

[issue14155] Deja vu in re's documentation

2012-02-28 Thread py.user
New submission from py.user : This paragraph is redundant http://docs.python.org/py3k/library/re.html#matching-vs-searching a duplicate http://docs.python.org/py3k/library/re.html#search-vs-match the part about match() behavior in multiline mode could be described in note here: http://docs.py