[issue6271] mmap: don't close file description if fd=-1

2009-06-13 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue6271] mmap: don't close file description if fd=-1

2009-06-13 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Thanks, fixed in r73425(trunk), r73426(release26-maint), r73427(py3k), r73428(release30-maint). -- nosy: +ocean-city ___ Python tracker ___ _

[issue5811] io.BufferedReader.peek(): Documentation differs from Implementation

2009-06-13 Thread Nick Coghlan
Nick Coghlan added the comment: It's not the docstring that is wrong for the current behaviour, it's the IO.BufferedReader documentation: """ peek([n]) Return 1 (or n if specified) bytes from a buffer without advancing the position. Only a single read on the raw stream is done to satisfy th

[issue1615158] POSIX capabilities support

2009-06-13 Thread Matt Kern
Matt Kern added the comment: Ping. Anything I can do? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue6281] Bug in hashlib

2009-06-13 Thread Daniel Eloff
New submission from Daniel Eloff : The try statement at the end of hashlib.py is some of the worst python code I've had the mispleasure of reading for a long time. Secondly, it seems flawed in function as well as form. __get_builtin_constructor can throw an ImportError, which seems erroneously c

[issue6095] os.curdir as the default argument for os.listdir

2009-06-13 Thread Virgil Dupras
Virgil Dupras added the comment: I saw this ticket as a good way to get my feet wet (I almost never touched C) with Python's C API, so I went ahead and did the part for OS X. I also did the Windows part, but I'm not setup to compile Python on Windows, so I don't even know if it remotely works

[issue5720] ctime: I don't think that word means what you think it means.

2009-06-13 Thread Zooko O'Whielacronx
Zooko O'Whielacronx added the comment: Okay, I posted to python-dev: http://mail.python.org/pipermail/python-dev/2009-June/090021.html -- ___ Python tracker ___

[issue6280] calendar.timegm() belongs in time module, next to time.gmtime()

2009-06-13 Thread Zooko O'Whielacronx
Zooko O'Whielacronx added the comment: Here is the ticket that tracked this issue within the Tahoe-LAFS project: http://allmydata.org/trac/tahoe/ticket/733 -- ___ Python tracker

[issue6280] calendar.timegm() belongs in time module, next to time.gmtime()

2009-06-13 Thread Zooko O'Whielacronx
New submission from Zooko O'Whielacronx : I've been struggling to write a function that takes UTC timestamps in ISO-8601 strings and returns UTC timestamps in unix-seconds-since-epoch. The first implementation used time.mktime() minus time.timezone (http://allmydata.org/trac/tahoe/browser/src/al

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer : Added file: http://bugs.python.org/file14295/test_subprocess3.py.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Florian Mayer
Florian Mayer added the comment: Should we also cover the unusual case where stdout, stderr and stdin have different encodings, because now we are assuming the are all the same. -- ___ Python tracker __

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer : Added file: http://bugs.python.org/file14294/subprocess3.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer : Added file: http://bugs.python.org/file14293/subprocess.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer : Removed file: http://bugs.python.org/file14291/subprocess3.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer : Removed file: http://bugs.python.org/file14289/subprocess.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Two things: 1. The argument should be called `errors` for consistency with open() and TextIOWrapper(), not `error` 2. You should add some unit tests. -- nosy: +pitrou stage: needs patch -> patch review versions: +Python 2.7, Python 3.2 -Python 2.6, Pyth

[issue6279] datamodel documentation confuses staticmethod with classmethod

2009-06-13 Thread Florian Mayer
New submission from Florian Mayer : I think it is confusing that the datamodel documentation says __new__ is a staticmethod while it actually is a classmethod (as it takes the class as its first argument). Patch supplied. -- files: datamodel.rst.patch keywords: patch messages: 89331 nosy

[issue6275] let unittest.assertRaises() return the exception object caught

2009-06-13 Thread Michael Foord
Michael Foord added the comment: This was suggested before on Python-dev and Guido rejected it as it is an 'odd' API for a unittest assert method - none of the others return anything. -- resolution: -> rejected status: open -> closed ___ Python trac

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer : Removed file: http://bugs.python.org/file14290/subprocess3.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer : Added file: http://bugs.python.org/file14291/subprocess3.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer : Added file: http://bugs.python.org/file14290/subprocess3.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue5811] io.BufferedReader.peek(): Documentation differs from Implementation

2009-06-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: I'm downgrading this because it can't be changed until after 3.1 is released. -- assignee: benjamin.peterson -> priority: release blocker -> normal ___ Python tracker _

[issue5811] io.BufferedReader.peek(): Documentation differs from Implementation

2009-06-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > We could fill the buffer while moving its start point to 0. I guess this > behavior would require a new function (or a new parameter to > Modules/_io/bufferedio.c:_bufferedreader_fill_buffer() ). > If you are ok with that I could write a patch. The buffer is

[issue5811] io.BufferedReader.peek(): Documentation differs from Implementation

2009-06-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: We could, however, enforce the passed argument and only return the whole remaining buffer when no argument is given. This is a bit like Frederick Reeve's proposal on python-dev, but less sophisticated and therefore less tedious to implement. In any case, I'm no

[issue5811] io.BufferedReader.peek(): Documentation differs from Implementation

2009-06-13 Thread Lucas Prado Melo
Lucas Prado Melo added the comment: We could fill the buffer while moving its start point to 0. I guess this behavior would require a new function (or a new parameter to Modules/_io/bufferedio.c:_bufferedreader_fill_buffer() ). If you are ok with that I could write a patch. --

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer : Removed file: http://bugs.python.org/file14286/subprocess.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Florian Mayer
Florian Mayer added the comment: Cosmetic update. -- Added file: http://bugs.python.org/file14289/subprocess.patch ___ Python tracker ___

[issue5811] io.BufferedReader.peek(): Documentation differs from Implementation

2009-06-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Lucas, it is indeed impossible for peek() to return more than the buffer size and remain compatible with non-seekable raw streams. That's why it /never/ returns more than the buffer size. As for the fact that peek() doesn't behave as documented, I disagree. Her

[issue6277] Add description of new syntax of with to 2.7 whatsnew document.

2009-06-13 Thread Vikram U Shenoy
Changes by Vikram U Shenoy : Added file: http://bugs.python.org/file14288/doc_mult_context_py3k_jun_13_2009.patch ___ Python tracker ___ ___ P

[issue6277] Add description of new syntax of with to 2.7 whatsnew document.

2009-06-13 Thread Vikram U Shenoy
Vikram U Shenoy added the comment: Oops, my mistake. Reattached the proper patches. -- Added file: http://bugs.python.org/file14287/doc_mult_context_trunk_jun_13_2009.patch ___ Python tracker _

[issue6277] Add description of new syntax of with to 2.7 whatsnew document.

2009-06-13 Thread Vikram U Shenoy
Changes by Vikram U Shenoy : Removed file: http://bugs.python.org/file14285/doc_typo_py3k_may_22_2009.patch ___ Python tracker ___ ___ Python-b

[issue6277] Add description of new syntax of with to 2.7 whatsnew document.

2009-06-13 Thread Vikram U Shenoy
Changes by Vikram U Shenoy : Removed file: http://bugs.python.org/file14284/doc_typo_trunk_may_22_2009.patch ___ Python tracker ___ ___ Python-

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Florian Mayer
Florian Mayer added the comment: I wrote a patch to add encoding and error to subprocess.Popen in Python 2.7 (trunk). -- keywords: +patch nosy: +segfaulthunter Added file: http://bugs.python.org/file14286/subprocess.patch ___ Python tracker

[issue6278] http.server, BaseHTTPRequestHandler write string error

2009-06-13 Thread System32
Changes by System32 : -- type: compile error -> resource usage ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue6278] http.server, BaseHTTPRequestHandler write string error

2009-06-13 Thread System32
New submission from System32 : CODE: === from http.server import HTTPServer, BaseHTTPRequestHandler class RequestHandler(BaseHTTPRequestHandler): def _header(self): self.send_response(200) self.send_h

[issue6277] Add description of new syntax of with to 2.7 whatsnew document.

2009-06-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: Are you sure you have attached the right patches? They don't seem to change the howto document, but instead fix some typos. -- nosy: +loewis ___ Python tracker ___

[issue6143] IDLE - an extension to clear the shell window

2009-06-13 Thread Tal Einat
Tal Einat added the comment: First of all I think that the Squeezer (issue #1529353) extension is more useful and solves most of the problems that this proposed feature is set to solve, e.g. issue #1442493. IMO the second method you offer - temporarily moving "iomark" - is preferable. One rea

[issue6277] Add description of new syntax of with to 2.7 whatsnew document.

2009-06-13 Thread Vikram U Shenoy
Changes by Vikram U Shenoy : -- versions: +Python 3.1 Added file: http://bugs.python.org/file14285/doc_typo_py3k_may_22_2009.patch ___ Python tracker ___ _

[issue6277] Add description of new syntax of with to 2.7 whatsnew document.

2009-06-13 Thread Vikram U Shenoy
Changes by Vikram U Shenoy : -- keywords: +patch Added file: http://bugs.python.org/file14284/doc_typo_trunk_may_22_2009.patch ___ Python tracker ___ _

[issue6277] Add description of new syntax of with to 2.7 whatsnew document.

2009-06-13 Thread Vikram U Shenoy
New submission from Vikram U Shenoy : Attached are patches adding multiple context manager usage feature to whats new document to both 2.7.rst in trunk and py3k. Are 2.x.rsts in py3k supposed to be in sync with trunks 2.x.rsts ? -- assignee: georg.brandl components: Documentation messag

[issue6276] Fix contextlib.nested DeprecationWarning for test_signal.

2009-06-13 Thread Vikram U Shenoy
New submission from Vikram U Shenoy : Attached is the patch to fix DeprecationWarning resulting from using contextlib.nested() function in test_signal.py -- components: Tests files: test_signal_with_fix_june_13_2009.patch keywords: patch messages: 89317 nosy: vshenoy severity: normal sta

[issue6258] distributions built with bdist_msi on 64-bit Windows fail to install correctly

2009-06-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: For 2.6 and 3.0, this is now fixed in r73406 and r73407. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue6258] distributions built with bdist_msi on 64-bit Windows fail to install correctly

2009-06-13 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: tarek -> loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai