[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

[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 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

[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

[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 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: 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 \\

[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: 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.

[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

[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

[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

[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 __

[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 _

[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

[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

[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
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). ---

[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

[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

[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

[issue10278] add time.wallclock() method

2010-11-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: 2010/11/1 Kristján Valur Jónsson : .. > I put in the patch since it was quick to do, but I'll provoke a discussion > on python-ideas for now. I am looking forward to it. You may find reviewing the following issues helpful for your case: #9079, #2736, and

[issue10278] add time.wallclock() method

2010-11-01 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Certainly. I was going to put this simple code in time.py when I realized that time was a C module. The main point, as Antoine points out, is that time.clock() means two seriously different things on the two main platforms, and time.clock() is potenti

[issue10289] Document magic methods called by built-in functions

2010-11-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Éric, I just wanted to link to a related discussion we had under issue 8983. See msg107689. -- nosy: +belopolsky ___ Python tracker __

[issue10284] Exception raised when decoding NNTP newsgroup descriptions

2010-11-01 Thread R. David Murray
R. David Murray added the comment: That's not what you opened the bug about, though, according to the title. I discussed the headers-in-things-other-than HEAD/ARTICLE, and Antoine was of the opinion that they were "supposed" to be utf-8 and that in any case using surrogate escape was good eno

[issue10289] Document magic methods called by built-in functions

2010-11-01 Thread Éric Araujo
New submission from Éric Araujo : At the top of Doc/library/functions.rst, which documents built-in functions like abs, getattr or hash, a comment reads “document all delegations to __special__ methods”. Some functions are already good: enumerate for instance does link to the definition of it

[issue10273] Clean-up Unittest API

2010-11-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Just my 2 cents: - I think dedocumenting the type-specific methods is fine (it doesn't mean removing them, though); or perhaps relegate them to some advanced section - It's unfortunate that the renaming suggestion comes so late; I'm not sure it's a good idea

[issue10287] NNTP authentication should check capabilities

2010-11-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue8805] urllib should support SSL contexts

2010-11-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Degrade; this old implementation (urllib vs urllib2) shoud be phased out IMO. This issue shows that I was myself fooled by the urllib.request documentation. -- ___ Python tracker

[issue10275] how to know that a module is a module, a function is a function ?

2010-11-01 Thread py.user
py.user added the comment: Ok, thanks, I thought this is some kind of a bug -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue10288] Remove deprecated C "character" handling macros ISUPPER() etc

2010-11-01 Thread Dave Malcolm
Changes by Dave Malcolm : -- title: Remove -> Remove deprecated C "character" handling macros ISUPPER() etc ___ Python tracker ___ ___

[issue10288] Remove

2010-11-01 Thread Dave Malcolm
New submission from Dave Malcolm : Issue 5793 rationalized all usage of C "character" handling to use "Py_"-prefixed locale-unaware macros, at the "char" level. In particular, this comment was added in two places to Include/bytes_methods.h in r72044: http://svn.python.org/view/python/branches/

[issue9926] Wrapped TestSuite subclass does not get __call__ executed

2010-11-01 Thread Michael Foord
Michael Foord added the comment: Committed to release27-maint in revision 86104. -- resolution: -> accepted stage: -> committed/rejected status: open -> closed ___ Python tracker _

[issue10287] NNTP authentication should check capabilities

2010-11-01 Thread Julien ÉLIE
New submission from Julien ÉLIE : RFC 4643: The server MAY list the AUTHINFO capability with no arguments, which indicates that it complies with this specification and does not permit any authentication commands in its current state. In this case, the client MUST NOT attempt to util

[issue10184] tarfile touches directories twice

2010-11-01 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue10184] tarfile touches directories twice

2010-11-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: This is now committed as r86102. I opted to call the parameter set_attrs. -- ___ Python tracker ___ __

[issue10284] Exception raised when decoding NNTP newsgroup descriptions

2010-11-01 Thread Julien ÉLIE
Julien ÉLIE added the comment: Maybe the bug should be reopened -- or the subject changed -- because the real issue is when I read: # Incompatible changes from the 2.x nntplib: # - all commands are encoded as UTF-8 data (using the "surrogateescape" # error handler), except for raw message da

[issue9796] Add summary tables for unittest API

2010-11-01 Thread Ezio Melotti
Ezio Melotti added the comment: I implemented 2) and 3) in issue9796-2.diff. -- assignee: eric.araujo -> ezio.melotti Added file: http://bugs.python.org/file19458/issue9796-2.diff ___ Python tracker ___

[issue10284] Exception raised when decoding NNTP newsgroup descriptions

2010-11-01 Thread Julien ÉLIE
Julien ÉLIE added the comment: Éric: there is no notion of encoding in a few NNTP commands. Regarding AUTHINFO, the real string that I should have written is: AUTHINFO USER \xC9ric 7-bit bytes are considered to be encoded in ASCII. 8-bit bytes are just 8-bit bytes. No encoding. The news cli

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-11-01 Thread STINNER Victor
STINNER Victor added the comment: I reproduced the problem with the following commands: cd py3k export LANG=C export LC_ALL=C make distclean ./configure --with-pydebug --prefix=/home/haypo/tmp/py3ké make It looks like the problem is that srcdir environment variable of Makefile.pre is ".". In

[issue10284] Exception raised when decoding NNTP newsgroup descriptions

2010-11-01 Thread Julien ÉLIE
Julien ÉLIE added the comment: David: no, the RFC does not mention UTF-8 about AUTHINFO. Please note the subtlety: command =/ authinfo-sasl-command / authinfo-user-command / authinfo-pass-command authinfo-sasl-command = "AUTHINFO" WS "SASL" WS mechanism [WS initi

[issue9926] Wrapped TestSuite subclass does not get __call__ executed

2010-11-01 Thread Michael Foord
Michael Foord added the comment: Committed to py3k in revision 86101. Needs porting to Python 2.7 (and unittest2). -- ___ Python tracker ___

[issue9635] Add Py_BREAKPOINT and sys._breakpoint hooks

2010-11-01 Thread Dave Malcolm
Dave Malcolm added the comment: I renamed it from sys.breakpoint to sys._breakpoint, since this is CPython-specific -- title: Add Py_BREAKPOINT and sys.breakpoint hooks -> Add Py_BREAKPOINT and sys._breakpoint hooks ___ Python tracker

[issue9635] Add Py_BREAKPOINT and sys.breakpoint hooks

2010-11-01 Thread Dave Malcolm
Dave Malcolm added the comment: Adding updated version of patch, which adds documentation to sys.rst and adds a unit test. I'm a little wary of this: it seems useful but also too much like a self-destruct button for my taste. -- Added file: http://bugs.python.org/file19457/py3k-add-

[issue10284] Exception raised when decoding NNTP newsgroup descriptions

2010-11-01 Thread R. David Murray
R. David Murray added the comment: Éric: UTF-8 (IIUC the RFC says "SHOULD be UTF-8"). Julien: yes, there are differences in the way printing to the console works between 2.x and 3.x, and this has caused some surprises for Windows users, where the default console codec is a bit limited. So ye

[issue10050] urllib.request still has old 2.x urllib primitives

2010-11-01 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10184] tarfile touches directories twice

2010-11-01 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue10284] Exception raised when decoding NNTP newsgroup descriptions

2010-11-01 Thread Éric Araujo
Éric Araujo added the comment: But É cannot be transferred as is. It needs to be encoded to bytes using some encoding. What encoding is correct? -- ___ Python tracker ___ ___

[issue8805] urllib should support SSL contexts

2010-11-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: In #10050 you suggest deprecating *URLopener (not *Opener, the misspelling also in fix_urllib.py #10286) and other stuff. Which do you actually prefer, upgrade or degrade? -- nosy: +terry.reedy ___ Python tracker

[issue10284] Exception raised when decoding NNTP newsgroup descriptions

2010-11-01 Thread Julien ÉLIE
Julien ÉLIE added the comment: Yes, you're right. I meant to say that AUTHINFO is not expecting a UTF-8-encoded string. For instance: AUTHINFO USER Éric is valid and should not always be transformed by nntplib to: AUTHINFO USER Éric News servers do a byte-string comparison (as specified i

[issue10284] Exception raised when decoding NNTP newsgroup descriptions

2010-11-01 Thread Éric Araujo
Éric Araujo added the comment: FTR, a UTF-8 string *is* a byte string. -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-l

[issue10284] Exception raised when decoding NNTP newsgroup descriptions

2010-11-01 Thread Julien ÉLIE
Julien ÉLIE added the comment: Traceback (most recent call last): File "nntplib-test.py", line 10, in print(s.descriptions('*')) File "C:\Program Files\Python32\lib\encodings\cp850.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_map)[0] UnicodeEncodeE

[issue10232] Tkinter issues with Scrollbar and custom widget list

2010-11-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: For me, with a standard Python install, 'use tix' would be a good answer. After thanking the respondent, you could try answering 'why' ('I am using a custom build.'). Just remember that python-list and mirrors are like the Wild West: you may get a mix of bull

[issue1926] NNTPS support in nntplib

2010-11-01 Thread Julien ÉLIE
Julien ÉLIE added the comment: Regarding these two possibilities, please note that the first one is discouraged (per RFC 4642). STARTTLS is the preferrable way to start a TLS session. In some existing implementations, TCP port 563 has been dedicated to NNTP over TLS. These implementati

[issue10286] URLOpener => URLopener x2 in fix_urllib.py

2010-11-01 Thread Terry J. Reedy
New submission from Terry J. Reedy : Lib/lib2to3/fixes/fix_urllib.py, near the top, has ''' MAPPING = {'urllib': [ ('urllib.request', ['URLOpener', 'FancyURLOpener', 'urlretrieve', ''' 'Opener' should by 'opener' in BOTH cases. Non-fix of URLopener reported o

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

2010-11-01 Thread Matthew Barnett
Matthew Barnett added the comment: issue2636-20101101.zip is a new version of the regex module. I hope it's finally fixed this time! :-) -- Added file: http://bugs.python.org/file19456/issue2636-20101101.zip ___ Python tracker

[issue10284] Exception raised when decoding NNTP newsgroup descriptions

2010-11-01 Thread R. David Murray
R. David Murray added the comment: What's the exception? If there were any escaped bytes in the string returned by descriptions, you would get an error when you try to print them. This could be a design problem. -- nosy: +r.david.murray ___ Python

[issue10284] Exception raised when decoding NNTP newsgroup descriptions

2010-11-01 Thread Julien ÉLIE
Changes by Julien ÉLIE : -- components: +Unicode ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2010-11-01 Thread Julien ÉLIE
New submission from Julien ÉLIE : > +.. method:: NNTP.list(*, file=None) > + > + Send a ``LIST`` command. Return a pair ``(response, list)`` where *list* > is a > + list of tuples representing all the groups available from this NNTP > server. > + Each tuple has the form ``(group, last, f

[issue10284] Exception raised when decoding NNTP newsgroup descriptions

2010-11-01 Thread Julien ÉLIE
New submission from Julien ÉLIE : > +# - all commands are encoded as UTF-8 data (using the "surrogateescape" > +# error handler), except for raw message data (POST, IHAVE) > +# - all responses are decoded as UTF-8 data (using the "surrogateescape" > +# error handler), except for raw message d

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

2010-11-01 Thread Julien ÉLIE
New submission from Julien ÉLIE : NNTP.list(*, file=None) Couldn't a "grouppattern" argument be added? LIST ACTIVE handles a newsgroup pattern (and it would then answer less groups -- also useful for the test suite of nntplib) Something like that: --- nntplib.py.OLD 2010-11-01 19:04:10.

[issue10282] IMPLEMENTATION token differently delt with in NNTP capability

2010-11-01 Thread Julien ÉLIE
New submission from Julien ÉLIE : I believe the case of "IMPLEMENTATION" should be treated differently. It is not helpful at all to split the argument. It is meant to be a text string and ['INN', '2.6.0', '(20101101', 'prelease)'] does not

[issue10280] nntp_version set to the most recent advertised version

2010-11-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue10281] Exception raised when an NNTP overview field is absent

2010-11-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue10281] Exception raised when an NNTP overview field is absent

2010-11-01 Thread Julien ÉLIE
New submission from Julien ÉLIE : Following the first example of the documentation: import nntplib s = nntplib.NNTP('news.trigofacile.com') resp, count, first, last, name = s.group('fr.comp.lang.python') print('Group', name, 'has', count, 'articles, range', first, 'to', last) resp, overviews =

[issue10232] Tkinter issues with Scrollbar and custom widget list

2010-11-01 Thread Robert Lerche
Robert Lerche added the comment: Terry, I tried posting to python-list and all I got was "why are you doing that? Use Tix instead." Maybe it's good advice but it doesn't address the issue. And Tix is yet one more component I'd have to build (the Python distribution comes with Tix interface

[issue10280] nntp_version set to the most recent advertised version

2010-11-01 Thread Julien ÉLIE
New submission from Julien ÉLIE : The NNTP version is currently defined as follows in the source code: self.nntp_version = int(caps['VERSION'][0]) However, Section 3.3.2 of RFC 3977 mentions: VERSION This capability MUST be advertised by all servers and MUST be the first capabil

[issue10252] Fix resource warnings in distutils

2010-11-01 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the patch, I’ll review it and commit it soon. -- assignee: tarek -> eric.araujo status: open -> pending title: Fix resource warnings in distutil tests -> Fix resource warnings in distutils ___ Python tracker

[issue10278] add time.wallclock() method

2010-11-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Nov 1, 2010 at 2:09 PM, Antoine Pitrou wrote: .. > The problem is time.clock(), since it does two wildly different things > depending on the OS. > I would suggest to deprecate time.clock() at the same time as we add > time.wallclock(). For the Uni

[issue10278] add time.wallclock() method

2010-11-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Nov 1, 2010 at 2:09 PM, Antoine Pitrou wrote: .. >> > Well, the problem is that the "appropriate test" is not easy to guess a >> > priori, so it would >> > be useful for the stdlib to provide the right tool for the job. >> >> This sounds like an

[issue10221] {}.pop('a') raises non-standard KeyError exception

2010-11-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Nov 1, 2010 at 2:13 PM, Raymond Hettinger wrote: .. > > We don't usually test the content of error messages because they are not a > guaranteed behavior. > I recall that when I asked about this on #python-dev, someone pointed to places where cont

[issue10259] Entry text not set if all of 'Font', 'Foreground' and 'Justify' are set

2010-11-01 Thread Ivan Razumov
Ivan Razumov added the comment: The bug doesn't seem to be Windows-specific - tested on Ubuntu 10.10 (Python 2.6.6) -- ___ Python tracker ___ __

[issue10221] {}.pop('a') raises non-standard KeyError exception

2010-11-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: We don't usually test the content of error messages because they are not a guaranteed behavior. -- ___ Python tracker ___ _

[issue10278] add time.wallclock() method

2010-11-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > Well, the problem is that the "appropriate test" is not easy to guess a > > priori, so it would > > be useful for the stdlib to provide the right tool for the job. > > This sounds like an argument against this feature, not for it. If it > is hard for the

[issue10263] "python -m site" does not print path details

2010-11-01 Thread Ned Deily
Ned Deily added the comment: Nick is the authority on -m so perhaps he can confirm this but I believe the execution of -m is carried out by the runpy standard library module and the runpy module essentially goes through the process of finding a module from scratch by searching through the mod

[issue10221] {}.pop('a') raises non-standard KeyError exception

2010-11-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Raymond, Did you mean to exclude unit test additions from your commit? See issue10221-with-tests.diff. -- ___ Python tracker ___ _

[issue10278] add time.wallclock() method

2010-11-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Nov 1, 2010 at 1:43 PM, Antoine Pitrou wrote: .. > Well, the problem is that the "appropriate test" is not easy to guess a > priori, so it would > be useful for the stdlib to provide the right tool for the job. This sounds like an argument again

[issue10262] Add --disable-abi-flags option to `configure`

2010-11-01 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10199] Move Demo/turtle under Lib/

2010-11-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in revision 86095. I included only those demo scripts that are described in the current manual. I am open to making further improvements prior to bata 1, and will open separate issues to track those. -- stage: commit review -> commit

[issue10278] add time.wallclock() method

2010-11-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, the problem is that the "appropriate test" is not easy to guess a priori, so it would be useful for the stdlib to provide the right tool for the job. As for where it should live, I have no strong opinion, but it's true that the time module looks appropri

[issue10274] imaplib should provide a means to validate a remote server ssl certificate(s)

2010-11-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sorry, the actual issue number is issue8808. -- dependencies: +imaplib should support SSL contexts -imaplib should provide a means to validate a remote server ssl certificate(s) ___ Python tracker

[issue10274] imaplib should provide a means to validate a remote server ssl certificate(s)

2010-11-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Right, IMAP_SSL should first accept an additional context argument as noted in issue10274. Then it can be patched to optionally call ssl.match_hostname on the server certificate. That second part can mimick what is done by HTTPSConnection: http://code.python.o

[issue10278] add time.wallclock() method

2010-11-01 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10274] imaplib should provide a means to validate a remote server ssl certificate(s)

2010-11-01 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue10276] zlib crc32/adler32 buffer length truncation (64-bit)

2010-11-01 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Extension Modules -Library (Lib) versions: -Python 2.5, Python 2.6, Python 3.3 ___ Python tracker ___ __

[issue10278] add time.wallclock() method

2010-11-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Why does this need to be in stdlib? AFAICT, the proposed patch is just: if : wallclock = time.clock else: wallclock = time.time which is easy enough to stick in your measuring code or a project's utilities module. If others really want to see th

[issue10278] add time.wallclock() method

2010-11-01 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue10263] "python -m site" does not print path details

2010-11-01 Thread Doug Hellmann
Changes by Doug Hellmann : -- nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue10263] "python -m site" does not print path details

2010-11-01 Thread Doug Hellmann
Doug Hellmann added the comment: Adding a print to the site.py in Distribute's egg shows it is being run when I use 'python -m site'. However, when I run 'python -c "import site; print site.__file__"' I get the version from the stdlib, as expected. I guess the module finding mechanism for -m

[issue10199] Move Demo/turtle under Lib/

2010-11-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Oct 27, 2010 at 2:37 PM, Gregor Lingl wrote: .. > Imho it is very important to clarify the name convention for demoscripts to > be added to the demo before committing > (or at least before the apperance of beta1). It decides about adding scripts

[issue9779] argparse.ArgumentParser not support unicode in print help

2010-11-01 Thread Steven Bethard
Steven Bethard added the comment: Closing as invalid, as to me this looks like a classic terminal encoding issue and not an argparse issue, and there was no response from the user who filed the issue. If someone still thinks this is an argparse issue, please provide a test and reopen the issu

[issue10279] test_gc failure on Windows x64

2010-11-01 Thread Brian Curtin
New submission from Brian Curtin : == FAIL: test_garbage_at_shutdown (test.test_gc.GCTests) -- Traceback (most recent call last): File "c:\python-dev\py3k\lib\

[issue9355] argparse add_mutually_exclusive_group more than once has incorrectly formatted help

2010-11-01 Thread Steven Bethard
Steven Bethard added the comment: Committed in r86092 (3.X) and r86093 (2.7). Thanks for the patches! -- assignee: -> bethard resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue9352] argparse eats characters when parsing multiple merged short options

2010-11-01 Thread Steven Bethard
Steven Bethard added the comment: Patches applied in r86090 (3.X) and r86091 (2.7). Thanks for your help Catherine, and sorry it took me so long to apply these. -- assignee: -> bethard resolution: -> fixed status: open -> closed ___ Python tracker

[issue4640] optparse doesn’t disallow adding one-da sh long options (“-option”)

2010-11-01 Thread Steven Bethard
Changes by Steven Bethard : -- nosy: -bethard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue9353] argparse __all__ is incomplete

2010-11-01 Thread Steven Bethard
Steven Bethard added the comment: Fixed in 3.X in r86086 and in 2.7 in r86087. -- assignee: -> bethard resolution: -> fixed status: open -> closed ___ Python tracker ___ __

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

2010-11-01 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: * This method will confuse some people who will think that cond.wait(pred) will wake up when pred becomes true regardless of whether they call cond.notifyAll(). You should warn them about this in the documentation. (This confusion happens inside Google, desp

[issue6706] asyncore's accept() is broken

2010-11-01 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Fixed in r86084 (2.7) and r86085 (3.1). -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed type: behavior -> security versions: +Python 2.7, Python 3.1 ___ Python tracker

[issue9669] regexp: zero-width matches in MIN_UNTIL

2010-11-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +mrabarnett ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue10278] add time.wallclock() method

2010-11-01 Thread Michael Foord
Michael Foord added the comment: +1 -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

  1   2   >