[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: vshenoy
severity: normal
status: open
title: Fix contextlib.nested DeprecationWarning for test_signal.
versions: Python 2.7
Added file: 
http://bugs.python.org/file14283/test_signal_with_fix_june_13_2009.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6276
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
components: Documentation
messages: 89318
nosy: georg.brandl, vshenoy
severity: normal
status: open
title: Add description of new syntax of with to 2.7 whatsnew document.
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6277
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 iomark - is
preferable.

One reason is that it will allow using the undo feature to undo deleting
the entire shell history. I think this is important since deleting the
history by accident without a way to retrieve it would be very annoying.

I propose going with the clear_window2 method, wrapping it with
undo_block_start() and undo_block_stop().

--
nosy: +taleinat

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6143
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue6277
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
self.send_header(Content-type, text/html)
self.end_headers()

def do_HEAD(self):
self._header()

def do_GET(self):
self._header()  

self.wfile.write('test')

server = HTTPServer(('localhost', 80), RequestHandler)
server.serve_forever()
===

ERROR:
===
localhost - - [13/Jun/2009 14:00:13] GET / HTTP/1.1 200 -

Exception happened during processing of request from ('127.0.0.1', 1907)
Traceback (most recent call last):
  File C:\Python30\lib\socketserver.py, line 281, in 
_handle_request_noblock
self.process_request(request, client_address)
  File C:\Python30\lib\socketserver.py, line 307, in process_request
self.finish_request(request, client_address)
  File C:\Python30\lib\socketserver.py, line 320, in finish_request
self.RequestHandlerClass(request, client_address, self)
  File C:\Python30\lib\socketserver.py, line 614, in __init__
self.handle()
  File C:\Python30\lib\http\server.py, line 363, in handle
self.handle_one_request()
  File C:\Python30\lib\http\server.py, line 357, in handle_one_request
method()
  File C:\Documents and Settings\User\Desktop\mHome\webserver.py, 
line 18, in
do_GET
self.wfile.write('human')
  File C:\Python30\lib\socket.py, line 219, in write
return self._sock.send(b)
TypeError: send() argument 1 must be bytes or buffer, not str
===

--
components: Library (Lib)
messages: 89321
nosy: System32
severity: normal
status: open
title: http.server, BaseHTTPRequestHandler write string error
type: compile error
versions: Python 3.0

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6278
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker rep...@bugs.python.org
http://bugs.python.org/issue6135
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue6277
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, I disagree.
Here is what the docstring says:

Returns buffered bytes without advancing the position.

The argument indicates a desired minimal number of bytes; we
do at most one raw read to satisfy it.  We never return more
than self.buffer_size.


Please note : a desired /minimal/ number of bytes (minimal, not
maximal). Furthermore, We never return more than self.buffer_size. The
behaviour looks ok to me.

--
nosy: +pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5811
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5811
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 any case, I'm not sure it should be committed before the 3.1 release.
The second and last release candidate is supposed to be today.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5811
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 buffer is used for both reading and writing and you have to be
careful when shifting it. Besides, the same change (or similar) should
also be done in the Python implementation (in _pyio.py).

If you come up with a patch, please add some tests and check the whole
regression suite passes.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5811
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue5811
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6275
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
messages: 89331
nosy: segfaulthunter
severity: normal
status: open
title: datamodel documentation confuses staticmethod with classmethod
Added file: http://bugs.python.org/file14292/datamodel.rst.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6279
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 -Python 2.6, Python 3.0

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6135
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue6135
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
(http://allmydata.org/trac/tahoe/browser/src/allmydata/util/time_format.py?rev=2424
), but that doesn't work in London if the argument date is in a certain
period during the 1970's.  Then there was force-the-tz-to-UTC
(http://allmydata.org/trac/tahoe/changeset/3911/src/allmydata/util/time_format.py
), but that doesn't work on Windows.  Then there was
force-the-tz-to-UTC-except-on-Windows
(http://allmydata.org/trac/tahoe/changeset/3913/src/allmydata/util/time_format.py
), but that still doesn't work on Windows.  Then there was this horrible
hack of converting from string-iso-8601 to localseconds with
time.mktime(), then converting from the resulting localseconds to an
iso-8601 string, then converting the resulting string back to seconds
with time.mktime(), then subtracting the two seconds values to find out
the real offset between UTC-seconds and local-seconds for the current tz
and for the time indicated by the argument
(http://allmydata.org/trac/tahoe/changeset/3914/src/allmydata/util/time_format.py
).  This actually works everywhere, but it is horrible.  Finally,
yesterday, someone pointed out to me that the inverse of time.gmtime()
is located in the calendar module and is named calendar.timegm().  Now
the implementation of our function is simple
(http://allmydata.org/trac/tahoe/changeset/3915/src/allmydata/util/time_format.py
)  I suggest that timegm() be moved to the time module next to its
sibling gmtime().

--
components: Library (Lib)
messages: 89334
nosy: zooko
severity: normal
status: open
title: calendar.timegm() belongs in time module, next to time.gmtime()
versions: Python 2.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6280
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 if it remotely works.

It would be nice if someone could review this patch and tell me about 
mistakes (such as memory management ones, probably). Thanks!

--
keywords: +patch
nosy: +vdupras
Added file: http://bugs.python.org/file14296/t6095.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6095
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 seems
erroneously caught in the except (why on earth does the except span more
than the import _hashlib? That's bad style for precisely this reason.)
This will cause an error in the import of hashlib when there are
possibly many working hash functions already imported. Changing the:

try:
exec funcName + ' = __get_builtin_constructor(funcName)'
except ValueError:
pass

to catch ImportError as well solves the problem for me.

--
messages: 89338
nosy: Eloff
severity: normal
status: open
title: Bug in hashlib
type: behavior
versions: Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6281
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 done to satisfy
the call. The number of bytes returned may be less than requested since
at most all the buffer’s bytes from the current position to the end are
returned.


That gives absolutely no indication that the call might return more
bytes than expected, and the indication that leaving out the argument
will return only the next byte is flat out wrong.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5811
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue6271
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com