[issue10282] IMPLEMENTATION token differently delt with in NNTP capability

2010-11-01 Thread R. David Murray
Changes by R. David Murray : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue10283] New parameter for an NNTP newsgroup pattern in LIST ACTIVE

2010-11-01 Thread R. David Murray
Changes by R. David Murray : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue10285] Other status field flags in documentation for NNTP LIST command

2010-11-01 Thread R. David Murray
Changes by R. David Murray : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue10273] Clean-up Unittest API

2010-11-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: [Antoine] > I would prefer assertRegex to assertRegexp That makes sense. It is the name used in other unittest implementations, it matches what the re module used to be called in Python, and it avoids issues with camel casing (i.e. Regexp vs RegExp). ---

[issue10260] Add a threading.Condition.wait_for() method

2010-11-01 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Good points, Jeffrey. Documentation can be improved and cond.wait_for(pred) is indeed not guaranteed to wake up when predicate is true unless someone calls notifyAll. I spent some time thinking of a name. I tried wait_predicate and predicate_wait,

[issue10273] Clean-up Unittest API

2010-11-01 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: michael.foord -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue10290] Fix resource warnings in distutils

2010-11-01 Thread Brian Curtin
New submission from Brian Curtin : The attached patch cleans up the numerous ResourceWarning messages that distutils test runs generate. The changes basically just close all open files - some in the test suite, some in the library code. No context managers were used since distutils appears in P

[issue10290] Fix resource warnings in distutils

2010-11-01 Thread Brian Curtin
Brian Curtin added the comment: Wow, I should open my eyes. Dupe of #10252 -- assignee: tarek -> resolution: -> duplicate stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue10252] Fix resource warnings in distutils

2010-11-01 Thread Brian Curtin
Brian Curtin added the comment: The patch shouldn't use context managers, as distutils claims to support 2.3. #10290 contains a similar patch which doesn't use 'with'. (Sorry to duplicate efforts here, forgot to search...) -- nosy: +brian.curtin status: pending -> open __

[issue10242] unittest's assertItemsEqual() method makes too many assumptions about its input

2010-11-01 Thread Michael Foord
Michael Foord added the comment: On Python-dev Nick Coghlan suggests a fix for the fast-path that would allow us to keep it whilst fixing this bug (not tested yet but adding this note not to lose it). The issue of the name of this method is in 10273. Looking at assertItemsEqual, I'd be incli

[issue10291] Clean-up turtledemo in-package documentation

2010-11-01 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Since after closing of issue #10199, docstrings in demo scripts are accessible to pydoc, it is important to bring them up to date. For example, turtledemo.wikipedia docstring contains a reference to nonexistent wikipedia1 and calls itself tdemo_wikip

[issue10273] Clean-up Unittest API

2010-11-01 Thread Brett Cannon
Brett Cannon added the comment: Just sent an email to python-dev, but since this issue sparked it, I might as well comment here: unittest shouldn't be made back into a single module. Ignoring the fact that the file structure has nothing to do with the public API and so is orthogonal to the ma

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-11-01 Thread Jacques Grove
Jacques Grove added the comment: OK, I think this might be the last one I will find for the moment: $ cat test.py import re, regex text = "test?" regexp = "test\?" sub_value = "result\?" print repr(re.sub(regexp, sub_value, text)) print repr(regex.sub(regexp, sub_value, text)) $ python test.

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-11-01 Thread Matthew Barnett
Matthew Barnett added the comment: issue2636-20101102.zip is a new version of the regex module. -- Added file: http://bugs.python.org/file19460/issue2636-20101102.zip ___ Python tracker

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-11-01 Thread Jacques Grove
Jacques Grove added the comment: Spoke too soon, although this might be a valid divergence in behavior: $ cat test.py import re, regex text = "test: 2" print regex.sub('(test)\W+(\d+)(?:\W+(TEST)\W+(\d))?', '\\2 \\1, \\4 \\3', text) print re.sub('(test)\W+(\d+)(?:\W+(TEST)\W+(\d))?', '\\2 \\

[issue10278] add time.wallclock() method

2010-11-01 Thread STINNER Victor
STINNER Victor added the comment: I would also be nice to have a "monotonic" clock in Python. See monotonic.py for an example. But I don't know if it solves the same problem than time.wallclock() or not. I need a monotonic clock for a server on which NTP is sometimes called to resynchronize t

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-11-01 Thread Jacques Grove
Jacques Grove added the comment: Another, with backreferences: import re, regex text = "TEST, BEST; LEST ; Lest 123 Test, Best" regexp = "(?i)(.{1,40}?),(.{1,40}?)(?:;)+(.{1,80}).{1,40}?\\3(\ |;)+(.{1,80}?)\\1" print re.findall(regexp, text) print regex.findall(regexp, text) $ python test.py

[issue10278] add time.wallclock() method

2010-11-01 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Well, that is sort of what I'm trying to achieve. Note that you probably want to use QueryPerformaceCounter on windows (or simply time.clock()) or at least GetTickCount64 which doesn't wrap around after 50 days :). Also, I'm trying to get the highes

[issue10292] tarinfo should use relative symlinks

2010-11-01 Thread JP St. Pierre
New submission from JP St. Pierre : With all the tools I've used, the target of a symlink appears to be relative to the actual symlink entry. Fix this. -- components: Library (Lib) messages: 120208 nosy: magcius priority: normal severity: normal status: open title: tarinfo should use re

[issue10292] tarinfo should use relative symlinks

2010-11-01 Thread JP St. Pierre
Changes by JP St. Pierre : -- keywords: +patch Added file: http://bugs.python.org/file19462/tarinfo-10292.diff ___ Python tracker ___

[issue10292] tarinfo should use relative symlinks

2010-11-01 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- assignee: -> lars.gustaebel nosy: +lars.gustaebel ___ Python tracker ___ ___ Python-bugs-list mailing

<    1   2