[issue10875] Update Regular Expression HOWTO

2011-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Correction: r87912 and r87913 for 3.x -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue10875] Update Regular Expression HOWTO

2011-01-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- Removed message: http://bugs.python.org/msg125954 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10875] Update Regular Expression HOWTO

2011-01-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: and r87918 for 2.7, with bytes -> byte string -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue10875] Update Regular Expression HOWTO

2011-01-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks. r87911,r87912 -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue10875] Update Regular Expression HOWTO

2011-01-10 Thread Éric Araujo
Éric Araujo added the comment: Looks good, builds without warnings. Note that you can use :ref:`re-syntax` and Sphinx will substitute the heading for you. The :role:`some special text ` form is used when you want to control the text of the link. (That thing is called an hyperlink target: h

[issue10875] Update Regular Expression HOWTO

2011-01-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I applied patch to 3.2, 3.1 in r87904, r87905. Thanks. I had to re-edit for 2.7: r87909. I made a separate small patch for my suggested addition to Matching Characters. Could someone check that it is correct, given that re.rst contains the target directive (o

[issue10875] Update Regular Expression HOWTO

2011-01-10 Thread SilentGhost
SilentGhost added the comment: > While the changes all look innocuous to me with respect to building the docs, > I am curious if you have tried to rebuild the HOWTO (if you have the tool > chain, which I do not). I did rebuild the docs with 'make html'. Build was clean every time. If you mea

[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread Éric Araujo
Éric Araujo added the comment: > I agree that the .rst should not have two copies and that any windows.chm > specific fixup should be in the tool. Right now, right clicking gives a > context menu with one item: Properties. Clicking that brings up a dialog box > with a url that can be copied.

[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since I think I know how to do it, easily, I will try to derive the 2.7 patch. In Matching Characters, I think "The following predefined special sequences are available:" should be expanded to "The following predefined special sequences are a subset of those

[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread SilentGhost
Changes by SilentGhost : Removed file: http://bugs.python.org/file20331/regex.rst.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread SilentGhost
SilentGhost added the comment: I don't know whether it would be easy to strip down py3k version to 2.7 version. Seeing how it's just a basic introduction, I would think that a single statement re unicode support might be sufficient. For exhaustive description of special sequences refer the do

[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that the .rst should not have two copies and that any windows.chm specific fixup should be in the tool. Right now, right clicking gives a context menu with one item: Properties. Clicking that brings up a dialog box with a url that can be copied. Good

[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread SilentGhost
SilentGhost added the comment: It seems that the special sequences description in Matching Characters section need to be updated to incorporate information on unicode and bytes. I don't think, however, that it's a good idea just to copy that information from the Doc/library/re.rst May be the

[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread SilentGhost
Changes by SilentGhost : Removed file: http://bugs.python.org/file20329/regex.rst.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread SilentGhost
SilentGhost added the comment: A few bits and pieces fixed compared to the previous patch. >>> doctest.testfile("/home/mischa/pydev/Doc/howto/regex.rst", module_relative >>> = False, optionflags=doctest.ELLIPSIS) TestResults(failed=0, attempted=98) -- Added file: http://bugs.python.or

[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread SilentGhost
SilentGhost added the comment: Here is the patch implementing all but the url suggestion. Doctest still has 11 failures (changing to '0x...' didn't help). -- keywords: +patch nosy: +SilentGhost Added file: http://bugs.python.org/file20329/regex.rst.diff ___

[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread Georg Brandl
Georg Brandl added the comment: Oh right, I misread that one. Can't Windows help users right-click and select "Copy URL"? -- ___ Python tracker ___ ___

[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread Éric Araujo
Éric Araujo added the comment: Good points overall. The only subpoint I disagree with is this one: “Add the url '(http://kodos.sourceforge.net/)' to the text so that Windows help users can copy and paste it into a browser. (This should be a general policy.)” IMO, it’s the job of the Sphinx

[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread Georg Brandl
Georg Brandl added the comment: Your points 1-5 all sound valid to me. Would you like to do make a patch? I don't know what to do about the release number. Probably doesn't hurt anyone to keep it. -- nosy: +georg.brandl ___ Python tracker

[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread Terry J. Reedy
New submission from Terry J. Reedy : 0. Does 'Release 0.05' at the top have any useful current meaning? or could it be deleted? 1. Introduction: The history paragraph "The re module was added in Python 1.5, and provides Perl-style regular expression patterns. Earlier versions of Python came wi