[issue10713] re module doesn't describe string boundaries for \b

2012-02-29 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: docs@python -> ezio.melotti resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue10713] re module doesn't describe string boundaries for \b

2012-02-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset fc89e09ca2fc by Ezio Melotti in branch '2.7': #10713: Improve documentation for \b and \B and add a few tests. Initial patch and tests by Martin Pool. http://hg.python.org/cpython/rev/fc89e09ca2fc New changeset cde7fa40b289 by Ezio Melotti in bra

[issue10713] re module doesn't describe string boundaries for \b

2012-02-27 Thread Éric Araujo
Éric Araujo added the comment: Like it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue10713] re module doesn't describe string boundaries for \b

2012-02-27 Thread Ezio Melotti
Ezio Melotti added the comment: This is a new patch based on Martin work. I don't think it's necessary to explain what happens while using r'\b' or r'\B' on an empty string in the doc -- that's not a common case and it might end up confusing users. I think however that a couple of examples mi

[issue10713] re module doesn't describe string boundaries for \b

2011-08-21 Thread Martin Pool
Martin Pool added the comment: > Note, 366 above confirms it's never true for an empty string. The documentation states that \B "is just the opposite of \b" yet re.match(r'\b', '') returns None and so does \B so \B isn't the opposite of \b in all cases. This is also a bit strange if you follow

[issue10713] re module doesn't describe string boundaries for \b

2011-05-12 Thread Ron Ridley
Changes by Ron Ridley : -- nosy: +Ron.Ridley ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue10713] re module doesn't describe string boundaries for \b

2011-05-08 Thread Ralph Corderoy
Ralph Corderoy added the comment: Examining the source of Ubuntu's python2.6 2.6.6-5ubuntu1 package suggests beyond the limits of the string is considered \W, like Perl. Modules/_sre.c: 336 LOCAL(int) 337 SRE_AT(SRE_STATE* state, SRE_CHAR* ptr, SRE_CODE at) 338 {

[issue10713] re module doesn't describe string boundaries for \b

2011-05-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10713] re module doesn't describe string boundaries for \b

2011-05-07 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. Would you be interested in experimenting and/or reading the code to find the anwser and propose a doc patch? -- keywords: +easy nosy: +eric.araujo stage: -> needs patch versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 __

[issue10713] re module doesn't describe string boundaries for \b

2010-12-15 Thread Ralph Corderoy
New submission from Ralph Corderoy : The re module defines \b in a regexp to need \w one side and \W the other. What about when the end of the string or line is involved? perlre(1) says that's treated as a \W. Python should precisely document that case too. -- assignee: d...@python