[issue12015] possible characters in temporary file name is too few

2011-05-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: - How is it an issue? is the number of combinations really important to you? - Isn't there a greater risk of collisions on a case-insensitive filesystem? -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue11015] Bring test.support docs up to date

2011-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2fd435ac3551 by Eli Bendersky in branch 'default': Issue #11015: bring test.support docs up to date http://hg.python.org/cpython/rev/2fd435ac3551 -- nosy: +python-dev ___ Python tracker

[issue11015] Bring test.support docs up to date

2011-05-05 Thread Eli Bendersky
Eli Bendersky added the comment: Terry, I've incorporated your suggestions except the new formulation for verbosity to doctest.testmod, since it's not really clear which one is more accurate. I think it's intelligible as it is now (especially given that test.support is for use of Python cont

[issue12015] possible characters in temporary file name is too few

2011-05-05 Thread Steve Ward
New submission from Steve Ward : In this revision , the possible characters that comprise a temporary file decreased. It was noted in this thread . The old character set had

[issue11049] add tests for test.support

2011-05-05 Thread Eli Bendersky
Eli Bendersky added the comment: Any news on this? Can you check that your patches apply for latest trunk and commit them? -- ___ Python tracker ___ ___

[issue12014] str.format parses replacement field incorrectly

2011-05-05 Thread Ben Wolfson
Changes by Ben Wolfson : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1677872] Efficient reverse line iterator

2011-05-05 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-05 Thread R. David Murray
Changes by R. David Murray : Added file: http://bugs.python.org/file21905/mailbox_mtime.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-05 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file21904/mailbox_mtime.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-05 Thread R. David Murray
R. David Murray added the comment: Well, it turns out that this sporadic failure is not a test bug, but a real bug in the mailbox module that the test is revealing. This issue is the same one that motivated the changes in issue 6896. Those changes, however, merely reduced the problem, but di

[issue12014] str.format parses replacement field incorrectly

2011-05-05 Thread Ben Wolfson
New submission from Ben Wolfson : As near as I can make out from , the following should return the string "hi": "{0[!]}".format({"!":"hi"}) We have a "{", followed by a field name, followed by a "}", the field name consisting of an ar

[issue12013] file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found

2011-05-05 Thread Alex Lai
New submission from Alex Lai : Hi guys, I was knocked down by a error related to a socket library _socket.so when I was trying to compile distribute-0.6.14: # python3 setup.py install Before install bootstrap. Scanning installed packages No setuptools distribution found running install Traceb

[issue12004] PyZipFile.writepy gives internal error on syntax errors

2011-05-05 Thread Ben Morgan
Ben Morgan added the comment: I've attached a patch to test_zipfile.py. I noticed that it writes out the error to stdout not stderr; I don't know if this is the desired behaviour. -- Added file: http://bugs.python.org/file21903/test-zipfile.patch __

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-05 Thread Nadeem Vawda
Nadeem Vawda added the comment: haypo> Can we just remove the test? I think so. The test was originally intended to catch the case where crc32() or adler32() would get a buffer of >=4GB, and then silently truncate the size and produce an incorrect result (issue10276). However, 2.7's zlib doesn'

[issue12004] PyZipFile.writepy gives internal error on syntax errors

2011-05-05 Thread Eric V. Smith
Eric V. Smith added the comment: Could you incorporate the test into Lib/test/test_zipfile? Thanks! -- components: +Library (Lib) nosy: +eric.smith ___ Python tracker ___ _

[issue12012] _ssl module doesn't compile with OpenSSL 1.0.0d: SSLv2_method is missing

2011-05-05 Thread STINNER Victor
New submission from STINNER Victor : It looks like OpenSSL can be compiled without SSLv2 (#ifdef OPENSSL_NO_SSL2). See this bug report: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=612780 When compiling Python, I get the following error: /home/haypo/prog/HG/cpython/Modules/_ssl.c: In functi

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-05 Thread STINNER Victor
STINNER Victor added the comment: > http://bugs.python.org/review/8407/show Updated patch (version 2). Note: sigpending() doesn't return an error code but -1 on error. -- Added file: http://bugs.python.org/file21901/pending_signals-2.patch ___ Pyth

[issue9971] Optimize BufferedReader.readinto

2011-05-05 Thread John O'Connor
John O'Connor added the comment: Thanks for the feedback. I made the changes, PTAL. -- Added file: http://bugs.python.org/file21900/buffered_readinto2.patch ___ Python tracker __

[issue12010] Compile fails when sizeof(wchar_t) == 1

2011-05-05 Thread David Coles
David Coles added the comment: Sure. There are a few other build issues (mainly missing types/structs in Bionic) that are preventing a complete build. I'll put together a patch once I have a working build and can verify that HAVE_USABLE_WCHAR_T is set correctly set on a normal Linux build. -

[issue9971] Optimize BufferedReader.readinto

2011-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you for the patch. A couple of comments: - the whole slow path (which loops calling _bufferedreader_raw_read()) should be surrounded by calls to ENTER_BUFFERED() and LEAVE_BUFFERED() - other things: +if (!PyArg_ParseTuple(args, "O:readinto", &buffe

[issue11935] MMDF/MBOX mailbox need utime

2011-05-05 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Thu, 5 May 2011 19:04:16 +0200, R. David Murray wrote: > "prepare new tail" means all of the text from the first modified > line to the end? (As opposed to "just the new mail"?) mailbox > does locking. I see no reason in principle it couldn't > sta

[issue12010] Compile fails when sizeof(wchar_t) == 1

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

[issue12010] Compile fails when sizeof(wchar_t) == 1

2011-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Do you want to propose a patch? I'm not sure any of us can test on an Android setup. -- nosy: +pitrou stage: -> needs patch versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker

[issue11163] iter() documentation code doesn't work

2011-05-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'll replace this with a better example using binary chunked reads that terminate with an empty string. -- priority: normal -> low ___ Python tracker _

[issue11163] iter() documentation code doesn't work

2011-05-05 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue9971] Optimize BufferedReader.readinto

2011-05-05 Thread John O'Connor
John O'Connor added the comment: Attached patch draft for buffered_readinto(). patchcheck removed some whitespace as well. Daniel, I agree. BufferedReader.readinto seemingly defeats the purpose of using a BufferedReader to begin with. Though, for the difference Antoine pointed out it makes s

[issue12011] The signal module should raise OSError for OS-related exceptions, not RuntimeError

2011-05-05 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue12011] The signal module should raise OSError for OS-related exceptions, not RuntimeError

2011-05-05 Thread STINNER Victor
STINNER Victor added the comment: I asked if I should use RuntimeError or OSError for the new signal functions (#8407) on python-dev. Georg Brandl answered: "If it has an errno, it should be a subclass of EnvironmentError." -- ___ Python tracker <

[issue12011] The signal module should raise OSError for OS-related exceptions, not RuntimeError

2011-05-05 Thread Antoine Pitrou
New submission from Antoine Pitrou : Treating RuntimeError as if it could take an errno is no good: >>> try: signal.siginterrupt(32, 12345) ... except RuntimeError as e: print(e.errno) ... Traceback (most recent call last): File "", line 1, in RuntimeError: (22, 'Invalid argument') During h

[issue12010] Compile fails when sizeof(wchar_t) == 1

2011-05-05 Thread David Coles
New submission from David Coles : On Android platforms bionic defines wchar_t as char. This causes compiling of unicodeobject.c to fail with "#error "unsupported wchar_t and PyUNICODE sizes, see issue #8670". The unusual thing is that the configure script does detect if wchar_t is usable (HAV

[issue11163] iter() documentation code doesn't work

2011-05-05 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker ___ ___ Python

[issue11163] iter() documentation code doesn't work

2011-05-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think this is the wrong patch for reasons given below. The example should be replaced instead. Readline is documented as returning '' at EOF for text files. Iter(func,sentinel) is documented as calling func until sentinel is returned. If that never happens,

[issue7359] mailbox cannot modify mailboxes in system mail spool

2011-05-05 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Issue #11935 becomes gigantic and may even swamp this one over! -- nosy: +sdaoden ___ Python tracker ___ ___

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-05 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: In fact i like my idea of using iterations. I have some time tomorrow, so if nobody complains until then, i write diffs for the tests of 3.x and 2.7 with these updates: - Two different target sizes: 1. 0x + x (7) 2. 0x7FFF + x (7) -

[issue11163] iter() documentation code doesn't work

2011-05-05 Thread Bryce Verdier
Bryce Verdier added the comment: Here is the patch to fix the documentation. Asked some core developers off the bug tracker how to handle this bug in relation to the bigger issue regarding "STOP" leading to an infinite loop. -- keywords: +patch nosy: +louiscipher Added file: http://bu

[issue12006] strptime should implement %V or %u directive from libc

2011-05-05 Thread Erik Cederstrand
Erik Cederstrand added the comment: At least in Denmark, week numbers are used regularly in everyday communication and planning, and the numbering follows the ISO rules. Also, the week starts on Monday. -- ___ Python tracker

[issue11729] libffi assembler relocation check is not robust, fails with clang

2011-05-05 Thread Ismail Donmez
Ismail Donmez added the comment: Patch for configure.ac then? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-05-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Brett, can you test this? -- assignee: -> brett.cannon nosy: +rhettinger ___ Python tracker ___ ___

[issue11729] libffi assembler relocation check is not robust, fails with clang

2011-05-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +doko ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11729] libffi assembler relocation check is not robust, fails with clang

2011-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, ctypes is kindof unmaintained right now, and the private libffi copy belongs to that module. (the reason we have a libffi copy is that, IIUC, it's patched) -- nosy: +pitrou ___ Python tracker

[issue11729] libffi assembler relocation check is not robust, fails with clang

2011-05-05 Thread Ismail Donmez
Ismail Donmez added the comment: Ping? Shall I submit a fix for Modules/_ctypes/libffi/configure.ac or better yet will you sync in-tree libffi? -- ___ Python tracker ___ __

[issue8426] multiprocessing.Queue fails to get() very large objects

2011-05-05 Thread Charles-François Natali
Charles-François Natali added the comment: > You can not pickle individual objects larger than 2**31. Indeed, but that's not what's happening here, the failure occurs with much smaller objects (also, note the OP's "cPickle is perfectly capable of pickling these objects"). The problem is reall

[issue9971] Optimize BufferedReader.readinto

2011-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > As I think about this more... I'm not sure how much performance there > is to gain here in practice. It seems like any time I'd want to use > readinto(), it's because I want to do my own buffering, in which case > why would I use a BufferedReader? The differ

[issue8498] Cannot use backlog = 0 for sockets

2011-05-05 Thread Charles-François Natali
Charles-François Natali added the comment: > Thanks for the tip. I added the unit test and uploaded my final patch > (which includes all changes). A couple comments (note that I'm not entitled to accept or commit a patch, so feel free to ignore them if I'm just being a pain): - "the maximum va

[issue6116] frame.f_locals keeps references to things for too long

2011-05-05 Thread Facundo Batista
Facundo Batista added the comment: Antoine, to see if I understood correctly... if we build the dict, and just return it but don't save it in the frame, this leak would be solved? (yes, it'd be slower because everytime it's asked, it'd need to be built again) -- _

[issue1479611] speed up function calls

2011-05-05 Thread Pas
Changes by Pas : -- nosy: +pas ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman

[issue665194] datetime-RFC2822 roundtripping

2011-05-05 Thread R. David Murray
R. David Murray added the comment: Yes, since the package will save the original text anyway, I think just clamping to 59 is best. Hmm. Maybe instead I could put in an assert that says "please report this incident to bugs.python.org so we can argue that datetime should get support for leap

[issue9527] Add aware local time support to datetime module

2011-05-05 Thread R. David Murray
R. David Murray added the comment: LocalTimezone support would be *really* helpful for the email module. It would allow us to have unambiguous semantics for datetime objects representing timestamps exacted from or inserted into email messages (see issue 665194 for recent discussion). The em

[issue10399] AST Optimization: inlining of function calls

2011-05-05 Thread Pas
Changes by Pas : -- nosy: +pas ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/o

[issue665194] datetime-RFC2822 roundtripping

2011-05-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, May 5, 2011 at 12:44 PM, R. David Murray wrote: .. > Do you think we can get 9527 in? I hope we can. Pure Python implementation can be improved by deducing the TZ offset from localtime() and gmtime() calls. In C we can use additional struct tm

[issue11935] MMDF/MBOX mailbox need utime

2011-05-05 Thread R. David Murray
R. David Murray added the comment: Oh, and does mutt's behavior apply to any mbox, or only the one in the system spool? -- ___ Python tracker ___ __

[issue11935] MMDF/MBOX mailbox need utime

2011-05-05 Thread R. David Murray
R. David Murray added the comment: "prepare new tail" means all of the text from the first modified line to the end? (As opposed to "just the new mail"?) mailbox does locking. I see no reason in principle it couldn't stat/restore, it would just be setting the times on the new file rather th

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-05 Thread R. David Murray
R. David Murray added the comment: You are right that I got the regex wrong (I'm bad at regexes), but in fact it is fine the way it is. Since there's no r, the regex is actually "ba[^/]$", which is exactly what I meant. -- ___ Python tracker

[issue665194] datetime-RFC2822 roundtripping

2011-05-05 Thread R. David Murray
R. David Murray added the comment: Do you think we can get 9527 in? My patch was based on the non-existence of a LocalTimezone facility in the stdlib. Good point about the special interpretation of -. Given 9527 (and only given 9527) it would indeed make sense to restrict email to aware

[issue11935] MMDF/MBOX mailbox need utime

2011-05-05 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: After half an hour of shallow inspection. mutt really modifies mailbox files in place (mbox_sync_mailbox()) after creating (all the new tail in) a temporary file. Then seek()/write()/truncate() etc.. It however has mutt_dotlock(1) and it does block si

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Quick review at http://bugs.python.org/review/8407/show -- ___ Python tracker ___ ___ Python-bugs-li

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-05 Thread STINNER Victor
STINNER Victor added the comment: +self.assertRunOK('-q', '-x', 'ba[^\/]*$', self.pkgdir) This regex matchs 'ba(...)\'. I think that you wanted to write r'[^\\/]'. -- ___ Python tracker __

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-05 Thread R. David Murray
R. David Murray added the comment: I ran the patched version 2945 times without failure. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 76bd26565cc7 by R David Murray in branch '3.2': #11873: Improve test regex so random directory names don't cause test to fail http://hg.python.org/cpython/rev/76bd26565cc7 New changeset 83e069281810 by R David Murray in branch 'default': Merge: #11

[issue6116] frame.f_locals keeps references to things for too long

2011-05-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: I vote for option 1. We already eschew hacks with locals(). -- nosy: +benjamin.peterson ___ Python tracker ___ __

[issue12009] netrc module crashes if netrc file has comment lines

2011-05-05 Thread R. David Murray
Changes by R. David Murray : -- keywords: +easy nosy: +r.david.murray stage: -> test needed type: crash -> behavior ___ Python tracker ___ __

[issue12007] Console commands won't work

2011-05-05 Thread R. David Murray
R. David Murray added the comment: I believe this is out of scope for Python itself, and is a platform distribution issue. The platform must do some special magic to make those things work; they don't in a vanilla python build as far as I know. You might look to your readline configuration

[issue11935] MMDF/MBOX mailbox need utime

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

[issue6116] frame.f_locals keeps references to things for too long

2011-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Making a copy of f_locals values to return a dictionary that doesn't > hold references to the locals of the frame is not that simple I think you misunderstood the bug report. The issue here is not that locals are referenced from the dict, it's that the dict

[issue11935] MMDF/MBOX mailbox need utime

2011-05-05 Thread R. David Murray
R. David Murray added the comment: Steffen, your sense of humor is great, but oftentimes I have no clue what you are talking about. Where does ftruncate factor in? I was asking what mutt does when it modifies a file in the hopes that it had some pithy algorithm for making sure the mailbox at

[issue11965] Simplify context manager in os.popen

2011-05-05 Thread Éric Araujo
Éric Araujo added the comment: Looks like I’ve misunderstood and there is no duplication. If you feel sure about it, please reject and close this report. -- ___ Python tracker ___

[issue665194] datetime-RFC2822 roundtripping

2011-05-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Rather than shoehorning datetime class support into existing functions, I think a separate set of functions should be written to convert between RFC 2822 timestamps and datetime instances. Currently, email.utils has three functions dealing with date-ti

[issue6116] frame.f_locals keeps references to things for too long

2011-05-05 Thread Facundo Batista
Facundo Batista added the comment: Making a copy of f_locals values to return a dictionary that doesn't hold references to the locals of the frame is not that simple (for me, at least): - shallow copy: we'll return always a new dict, with the values being a copy of locals; this is simpler, bu

[issue11935] MMDF/MBOX mailbox need utime

2011-05-05 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: > The problem report in question was submitted by one of the > Debian maintainers. Yeah, a documentainer at least. I've used Debian (Woody i think that was 3.1). Actually great because Lehmanns, Heidelberg, Germany did not include the sources but they'v

[issue12006] strptime should implement %V or %u directive from libc

2011-05-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This is a reasonable request and easy to implement. I am not sure how often this functionality is needed, so I am only +0 on this feature. -- keywords: +easy stage: -> needs patch versions: +Python 3.3 ___ P

[issue11935] MMDF/MBOX mailbox need utime

2011-05-05 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Thu, 5 May 2011 13:42:29 +0200, R. David Murray wrote: > what does mutt do in the case you are talking about? 16 -rwxr-s--- 1 steffen mail 14832 23 Jan 19:13 usr/bin/mutt_bitlock set bitlock_program="~/usr/bin/mutt_bitlock -p" I see. Un

[issue11647] function decorated with a context manager can only be invoked once

2011-05-05 Thread Nick Coghlan
Nick Coghlan added the comment: The core bug has been fixed for 3.2.1 and forward ported to 3.3. I credited the patch to "Ysj Ray" in ACKS and NEWS, let me know if you'd prefer a different attribution. Leaving the issue open for now, since _recreate_cm() should be renamed and documented for

[issue12000] SSL certificate verification failed if no dNSName entry in subjectAltName

2011-05-05 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: P.S.: if you're really right ('have those RFC's, but didn't read them yet), you could also open an issue for Mercurial at http://mercurial.selenic.com/bts - i think those guys do the very same. Thanks, Steffen! -- nosy: +sdaoden __

[issue11647] function decorated with a context manager can only be invoked once

2011-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset e4ba097123f6 by Nick Coghlan in branch '3.2': Issue #11647: allow contextmanager objects to be used as decorators as described in the docs. Initial patch by Ysj Ray. http://hg.python.org/cpython/rev/e4ba097123f6 New changeset b23d1df7e47e by Nick

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-05 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: @haypo: trouble, trouble on the dev-list, as i've seen currently. Sorry, sorry. (Cannot subscribe, my DynIP's are often blacklisted ;) Of course my comments were completely wrong, as Ethan has pointed out correctly. This is all s**t. These are mmap(2)

[issue11965] Simplify context manager in os.popen

2011-05-05 Thread Chris Rose
Chris Rose added the comment: I'm pretty sure that the os._wrap_close wrapper is not the same thing as the Popen context manager. I don't think it's useful to try refactor this. As Antoine points out, the current wrapper serves a very different purpose. -- nosy: +offby1 _

[issue12005] modulo result of Decimal differs from float/int

2011-05-05 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue11888] Add C99's log2() function to the math library

2011-05-05 Thread STINNER Victor
STINNER Victor added the comment: Updated patch to use the system log2() if it is available. The test pass with the system log2() on Linux (Debian Sid, eglibc 2.11.2). -- Added file: http://bugs.python.org/file21897/issue11888-2.patch ___ Python tra

[issue12000] SSL certificate verification failed if no dNSName entry in subjectAltName

2011-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Are you sure about "if not san and not dnsnames"? It is even more restrictive than the currently condition. "if not dnsnames" looks like it would fit the bill better. Also, better if you can provide a complete patch, including additional test(s) in Lib/test/

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-05 Thread STINNER Victor
Changes by STINNER Victor : -- Removed message: http://bugs.python.org/msg135199 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-05 Thread STINNER Victor
STINNER Victor added the comment: Ah ah, this bug is funny :-) test_regexp doesn't fail because of a race condition or a file system issue, but because of the regex! The regex "ba.*" is applied on the fullname, not only on the basename. If the temporary contains "ba", the test fails :-) Repla

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-05 Thread STINNER Victor
STINNER Victor added the comment: Ah ah, this bug is funny :-) test_regexp doesn't fail because of a race condition or a file system issue, but because of the regex! The regex "ba.*" is applied on the fullname, not only on the basename. If the temporary contains "ba", the test fails :-) Repla

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-05 Thread STINNER Victor
STINNER Victor added the comment: Ah ah, this bug is funny :-) test_regexp doesn't fail because of a race condition or a file system issue, but because of the regex! The regex "ba.*" is applied on the fullname, not only on the basename. If the temporary contains "ba", the test fails :-) Repla

[issue12009] netrc module crashes if netrc file has comment lines

2011-05-05 Thread Ruslan Mstoi
New submission from Ruslan Mstoi : It seems recent patch from Issue 10464 has introduced problems into one line comment handling of netrc module. Problem 1: If there is a line starting with a comment sign the following traceback is shown: Traceback (most recent call last): File "/usr/lib/py

[issue10496] "import site failed" when Python can't find home directory (sysconfig._getuserbase)

2011-05-05 Thread STINNER Victor
STINNER Victor added the comment: > If the user base cannot be calculated, paths > starting with ~ should not exist or be used at all in this context. It's not "~" but "{userbase}" substitution variable. Here is a new patch implementing this idea: don't create the variables using the user dir

[issue11981] dupe self.fp.tell() in zipfile.ZipFile.writestr

2011-05-05 Thread Johan Euphrosine
Johan Euphrosine added the comment: Here is a log that shows zinfo.header_offset value after each .tell() when running test_zipfile -- Added file: http://bugs.python.org/file21895/zinfo.header_offset.log ___ Python tracker

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-05 Thread STINNER Victor
STINNER Victor added the comment: @sdaoden(, @pitrou): Antoine proposes to skip the zlib "big buffer" (1 GB) test on 32 bits system. What do you think? On 64 bits system, we check a buffer of 2 GB-1 byte (0x7FFF bytes). Is the test useful or not? What do we test? Can you check if the tes

[issue11647] function decorated with a context manager can only be invoked once

2011-05-05 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan versions: +Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mail

[issue11690] Devguide: Add "communication" FAQ

2011-05-05 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: docs@python -> ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10775] assertRaises as a context manager should accept a 'msg' keyword argument.

2011-05-05 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: -ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue11981] dupe self.fp.tell() in zipfile.ZipFile.writestr

2011-05-05 Thread Johan Euphrosine
Johan Euphrosine added the comment: I just find it while reading the source, for fixing #11980 zinfo.header_offset is only read in self._write_check, and it seems to me that no file operation are performed on self.fp between the two call. So I can't see see how it could different. Also the t

[issue12002] ftplib.FTP.abort fails with TypeError on Python 3.x

2011-05-05 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- assignee: -> giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12005] modulo result of Decimal differs from float/int

2011-05-05 Thread Mark Dickinson
Mark Dickinson added the comment: The doc change should also note that // and divmod suffer from a similar mismatch: >>> Decimal(-2) // Decimal(3) Decimal('-0') >>> -2 // 3 -1 >>> -2.0 // 3 -1.0 However, the invariant that x = x // y * y + x % y is retained, as it should be. --

[issue11935] MMDF/MBOX mailbox need utime

2011-05-05 Thread R. David Murray
R. David Murray added the comment: Yes if you are a member of group mail you would not need setgid mail, obviously. The problem report in question was submitted by one of the Debian maintainers, so I have to believe that the system in question was not misconfigured. This part of the discussi

[issue12005] modulo result of Decimal differs from float/int

2011-05-05 Thread Mark Dickinson
Mark Dickinson added the comment: I believe that this was a deliberate design decision, though now that I look it seems it's not well documented. That should probably be fixed, so I see this as a documentation issue. More details: The specification on which the decimal module is based requi

[issue11981] dupe self.fp.tell() in zipfile.ZipFile.writestr

2011-05-05 Thread Ezio Melotti
Ezio Melotti added the comment: Can you prove that the second one is useless (did it cause you any problem or did you just find it reading the source)? There might be reasons why there are two calls to fp.tell() (e.g. the result is different in the two places and/or zinfo.header_offset is read

[issue11997] One typo in Doc/c-api/init.rst

2011-05-05 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch. -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue11997] One typo in Doc/c-api/init.rst

2011-05-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 76a2354aa427 by Ezio Melotti in branch '2.7': #11997: fix typo in init.rst. http://hg.python.org/cpython/rev/76a2354aa427 New changeset 3aa51217492c by Ezio Melotti in branch '3.1': #11997: fix typo in init.rst. http://hg.python.org/cpython/rev/3aa

[issue12002] ftplib.FTP.abort fails with TypeError on Python 3.x

2011-05-05 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue11935] MMDF/MBOX mailbox need utime

2011-05-05 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Thu, 5 May 2011 03:52:29 +0200, R. David Murray wrote: > [..] the shell [..] I believe it just looks at the mtime/atime. Pretty good, huh? Mr. Mojo says: Prowd to be a part of this number. Successful hills are here to stay. Everythi

  1   2   >