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

2009-06-13 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: tarek - loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6258 ___ ___

[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 mar...@v.loewis.de added the comment: For 2.6 and 3.0, this is now fixed in r73406 and r73407. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6258

[issue6276] Fix contextlib.nested DeprecationWarning for test_signal.

2009-06-13 Thread Vikram U Shenoy
New submission from Vikram U Shenoy vikram.u.she...@gmail.com: 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:

[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 vikram.u.she...@gmail.com: 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

[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 vikram.u.she...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file14284/doc_typo_trunk_may_22_2009.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6277

[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 vikram.u.she...@gmail.com: -- versions: +Python 3.1 Added file: http://bugs.python.org/file14285/doc_typo_py3k_may_22_2009.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6277

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

2009-06-13 Thread Tal Einat
Tal Einat talei...@users.sourceforge.net 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

[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 mar...@v.loewis.de 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 rep...@bugs.python.org

[issue6278] http.server, BaseHTTPRequestHandler write string error

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

[issue6278] http.server, BaseHTTPRequestHandler write string error

2009-06-13 Thread System32
Changes by System32 mull...@gmail.com: -- type: compile error - resource usage ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6278 ___ ___

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

2009-06-13 Thread Florian Mayer
Florian Mayer florma...@aim.com 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

[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 vikram.u.she...@gmail.com: Removed file: http://bugs.python.org/file14284/doc_typo_trunk_may_22_2009.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6277 ___

[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 vikram.u.she...@gmail.com: Removed file: http://bugs.python.org/file14285/doc_typo_py3k_may_22_2009.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6277 ___

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

2009-06-13 Thread Vikram U Shenoy
Vikram U Shenoy vikram.u.she...@gmail.com 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 rep...@bugs.python.org

[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 vikram.u.she...@gmail.com: Added file: http://bugs.python.org/file14288/doc_mult_context_py3k_jun_13_2009.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6277 ___

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

2009-06-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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,

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

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

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

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer florma...@aim.com: Removed file: http://bugs.python.org/file14286/subprocess.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6135 ___

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

2009-06-13 Thread Lucas Prado Melo
Lucas Prado Melo lukepada...@gmail.com 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.

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

2009-06-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2009-06-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2009-06-13 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org 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 rep...@bugs.python.org

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

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer florma...@aim.com: Added file: http://bugs.python.org/file14291/subprocess3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6135 ___

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

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer florma...@aim.com: Removed file: http://bugs.python.org/file14290/subprocess3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6135 ___

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

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer florma...@aim.com: Added file: http://bugs.python.org/file14290/subprocess3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6135 ___

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

2009-06-13 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk 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

[issue6279] datamodel documentation confuses staticmethod with classmethod

2009-06-13 Thread Florian Mayer
New submission from Florian Mayer florma...@aim.com: 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

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

2009-06-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer florma...@aim.com: Removed file: http://bugs.python.org/file14289/subprocess.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6135 ___

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

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer florma...@aim.com: Removed file: http://bugs.python.org/file14291/subprocess3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6135 ___

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

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer florma...@aim.com: Added file: http://bugs.python.org/file14293/subprocess.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6135 ___

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

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer florma...@aim.com: Added file: http://bugs.python.org/file14294/subprocess3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6135 ___

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

2009-06-13 Thread Florian Mayer
Florian Mayer florma...@aim.com 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 rep...@bugs.python.org

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

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer florma...@aim.com: Added file: http://bugs.python.org/file14295/test_subprocess3.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6135 ___

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

2009-06-13 Thread Zooko O'Whielacronx
New submission from Zooko O'Whielacronx zo...@zooko.com: 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

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

2009-06-13 Thread Zooko O'Whielacronx
Zooko O'Whielacronx zo...@zooko.com 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 rep...@bugs.python.org http://bugs.python.org/issue6280

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

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

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

2009-06-13 Thread Virgil Dupras
Virgil Dupras hs...@hardcoded.net 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

[issue6281] Bug in hashlib

2009-06-13 Thread Daniel Eloff
New submission from Daniel Eloff dan.el...@gmail.com: 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

[issue1615158] POSIX capabilities support

2009-06-13 Thread Matt Kern
Matt Kern matt.k...@undue.org added the comment: Ping. Anything I can do? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1615158 ___ ___

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

2009-06-13 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

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

2009-06-13 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Thanks, fixed in r73425(trunk), r73426(release26-maint), r73427(py3k), r73428(release30-maint). -- nosy: +ocean-city ___ Python tracker rep...@bugs.python.org

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

2009-06-13 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6271 ___