[issue16471] upgrade to sphinx 1.1

2013-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: This duplicates a part of #10224, which proposes to upgrade all of Sphinx, Jinja2, and Pygments to Python 3 compatible versions (so we can build docs with Py3). In msg175768, Brett claims that all three have such versions. Chris, if you want to push to only up

[issue17414] timeit.timeit not in __all__ even though documented

2013-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: As long as we are editing the module docstring, the last sentence should be deleted in 3.x patches, and the preceding sentence added to the preceding paragraph. In 3.3+, the paragraph beginning "The difference in default timer function" is obsolete and should

[issue17426] \0 in re.sub substitutes to space

2013-03-14 Thread anatoly techtonik
New submission from anatoly techtonik: According to docs, group 0 is equivalent to the whole match, which is not true for Python. import re print( re.sub('aaa', r'__\0__', 'argaaagra') ) arg__ __gra import re print( re.sub('(aaa)', r'__\1__', 'argaaagra') ) arg__aaa__gra See also: http:

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2013-03-14 Thread paul j3
paul j3 added the comment: While parser._negative_number_matcher is used during parser.parse_args() to check whether an argument string is a 'negative number' (and hence whether to classify it as A or O). parser._optionals._negative_number_matcher is used during parser.add_argument() to dete

[issue17426] \0 in re.sub substitutes to space

2013-03-14 Thread Guido van Rossum
Guido van Rossum added the comment: It's not a space, it's a null byte. Would you mind pointing out exactly where the Python docs state that \0 in re.sub() refers to th ewhole group? (IIRC it should only say that group 0 refers the whole string in the argument to the .group() method on a matc

[issue17426] \0 in re.sub substitutes to space

2013-03-14 Thread Ezio Melotti
Ezio Melotti added the comment: The space you see is the character \x00: >>> re.sub('a+', r'__\0__', 'bbaaabb') 'bb__\x00__bb' The re documentation says: """ \number Matches the contents of the group of the same number. Groups are numbered starting from 1. """ so the re module is behaving

[issue17426] \0 in re.sub substitutes to space

2013-03-14 Thread Guido van Rossum
Guido van Rossum added the comment: The doc Ezio quotes for \number is describing the regex syntax, not the substitution string syntax. Unfortunately this syntax is documented somewhat less formally than the regex syntax. Fortunately, it does mention explicitly that \g<0> substitutes the enti

[issue17427] re

2013-03-14 Thread august smith
New submission from august smith: lol -- messages: 184215 nosy: JUNO priority: normal severity: normal status: open title: re ___ Python tracker ___ _

[issue17427] spam

2013-03-14 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: -JUNO resolution: -> invalid stage: -> committed/rejected status: open -> closed title: re -> spam ___ Python tracker ___ __

[issue17427] spam

2013-03-14 Thread Ezio Melotti
Changes by Ezio Melotti : -- Removed message: http://bugs.python.org/msg184215 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue17415] Clarify docs of os.path.normpath()

2013-03-14 Thread Ezio Melotti
Ezio Melotti added the comment: > I will correct that if you make me aware about it! Try to use meaningful titles, e.g. "Clarify docs of os.path.normpath()". See http://docs.python.org/devguide/triaging.html for more informations. Also if you could provide patches that would be even better.

[issue17426] \0 in re.sub substitutes to space

2013-03-14 Thread anatoly techtonik
anatoly techtonik added the comment: You're right - groups are defined here: http://docs.python.org/2/library/re.html#re.MatchObject.group The need to fix this is to gain internal language consistency, external consistency with other major implementations, reduce docs and amount of exception

[issue17426] \0 in re.sub substitutes to space

2013-03-14 Thread anatoly techtonik
anatoly techtonik added the comment: Am I right that \0 is not supported just because nobody thought about supporting it? -- ___ Python tracker ___ _

<    1   2