Issue 18562: Regex howto: revision pass (original) (raw)

Created on 2013-07-26 16:07 by akuchling, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
regex.diff akuchling,2013-07-26 16:07 Changes to regex.rst review
regex.diff akuchling,2013-08-18 00:34 Reword discussion of precompiling discussion review
Messages (5)
msg193733 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2013-07-26 16:07
I read through the 3.3 regex howto and have made various edits in the attached patch. * describe how \w is different when used in bytes and Unicode patterns. * describe re.ASCII flag to change that behaviour. * remove a personal reference ('I generally prefer...') * some small edits and re-wording.
msg195537 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2013-08-18 00:34
Slightly revised version that modifies the discussion of when to pre-compile a regex and when to not bother. I don't think this is a very important issue, so I don't think it needs a long discussion.
msg195538 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2013-08-18 00:44
Well, this is already too long IMO. Two sentences should suffice. If you are calling a regex very often in a loop, then it makes sense to compile it. Otherwise, don't bother.
msg195567 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2013-08-18 15:27
#17441 also has a discussion about regex caching that might be relevant.
msg195584 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-08-18 22:57
New changeset 366ca21600c9 by Andrew Kuchling in branch '3.3': #18562: various revisions to the regex howto for 3.x http://hg.python.org/cpython/rev/366ca21600c9
History
Date User Action Args
2022-04-11 14:57:48 admin set github: 62762
2013-08-18 23:01:32 akuchling set stage: patch review -> resolved
2013-08-18 23:01:22 akuchling set status: open -> closedresolution: fixed
2013-08-18 22:57:33 python-dev set nosy: + python-devmessages: +
2013-08-18 15:27:32 ezio.melotti set messages: +
2013-08-18 00:44:15 pitrou set nosy: + pitroumessages: +
2013-08-18 00:34:19 akuchling set files: + regex.diffmessages: +
2013-08-06 06:12:13 ezio.melotti set nosy: + mrabarnetttype: enhancementcomponents: + Regular Expressions
2013-07-26 16:13:16 berker.peksag set nosy: + ezio.melottiversions: + Python 3.4
2013-07-26 16:07:35 akuchling create