[issue9545] Adding _collections to static build

2010-08-09 Thread Senthil Kumaran

New submission from Senthil Kumaran :

As a fix for issue9396 in r83874, functools was included in re module and this 
caused a build failure.

This was reverted in r83875, with the following message by Raymond:

The problem is that the re module is imported by sysconfig
and re needs functools which uses collections.OrderedDict()
but the _collectionsmodule.c code is not yet constructed
at this point in the build.

The likely best solution will be to include _collections
as part of the static build before the rest of the
boot-strapping.

We discussed it in IRC, I am including the _collections module to the static 
build.

After this the r83874 can be reapplied.

--
files: _collections.patch
keywords: patch
messages: 113392
nosy: orsenthil
priority: normal
severity: normal
status: open
title: Adding _collections to static build
type: crash
Added file: http://bugs.python.org/file18450/_collections.patch

___
Python tracker 

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



[issue4913] wave.py: add writesamples() and readsamples()

2010-08-09 Thread Alex Robinson

Alex Robinson  added the comment:

Here go, Terry. Copies of the two files in the latest ZIP file.

Hmmm. Well. Maybe just one of 'em. Looks like the only way to upload files is 
to add a msg, so I'll upload the other file in another msg.

--
Added file: http://bugs.python.org/file18451/wave_futz.py

___
Python tracker 

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



[issue5187] distutils upload should prompt for the user/password too

2010-08-09 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

no, distutils is feature frozen

--

___
Python tracker 

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



[issue4913] wave.py: add writesamples() and readsamples()

2010-08-09 Thread Alex Robinson

Alex Robinson  added the comment:

OK, here's the other.

--
Added file: http://bugs.python.org/file18452/test_wave.py

___
Python tracker 

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



[issue9545] Adding _collections to static build

2010-08-09 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

Fixed in revision 83876.

The reverted commit r83875 is re-applied in r83877.

--
assignee:  -> orsenthil
components: +Build
nosy: +rhettinger
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed
versions: +Python 3.2

___
Python tracker 

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



[issue9543] 2.6.6 rc1 socket.py flush() calls del on unbound 'view' variable

2010-08-09 Thread Ezio Melotti

Ezio Melotti  added the comment:

Thanks for the report and for figuring out what was the cause!
Indeed the "view" added after the "del" shouldn't be there, so I will remove it.
It would also be great if you could provide a minimal script to reproduce the 
problem so that it can be turned to a test. None of the tests in the current 
test suite seem to go through that code path, so the error passed unnoticed.

--
assignee:  -> ezio.melotti

___
Python tracker 

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



[issue9543] 2.6.6 rc1 socket.py flush() calls del on unbound 'view' variable

2010-08-09 Thread Martin

Martin  added the comment:

spiv wrote a script to repo the issue in the downstream ubuntu bug:
https://bugs.launchpad.net/python/+bug/615240

--
nosy: +gz

___
Python tracker 

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



[issue9543] 2.6.6 rc1 socket.py flush() calls del on unbound 'view' variable

2010-08-09 Thread Andrew Bennetts

Andrew Bennetts  added the comment:

I have a reproduction script on the Ubuntu bug report I just filed for this 
issue: 

Pasting here for convenience:

"""
import socket
import threading

sock_a, sock_b = socket.socketpair()
sock_a = socket.socket(_sock=sock_a)

def read_byte_then_close(s):
data = s.recv(1)
s.close()

t = threading.Thread(target=read_byte_then_close, args=(sock_b,))
t.start()

file_a = sock_a.makefile('w')
file_a.writelines(['a'*8192]*1000)
file_a.flush()
t.join()
"""

It's not quite good enough to add to the test suite yet IMO, but it's a 
starting point.

--
nosy: +spiv

___
Python tracker 

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



[issue8411] Improve condition variable emulation on NT

2010-08-09 Thread Kristján Valur Jónsson

Kristján Valur Jónsson  added the comment:

You wan't to have the Semaphore with a max count of infinite because
a) of the "race condition" mentioned (actually, possible discrepancy between 
n_waiting and actual semaphore value), which can cause the semaphore count to 
temporarily go positive, and
b) If you implement _cond_broadcast(), which would have code like:
  int waiting = cond->n_waiting;
  if (waiting > 0) {
cond->n_waiting = 0
ReleaseSemaphore(cond->sem, waiting, 0);
}

The semaphore value going above 0 is not a "bug" but an implementation detail 
stemming from the fact that n_waiting cannot reliably reflect the semaphore 
state at each particular time.  Due to locking, it may lag behind the state a 
little bit.

--

___
Python tracker 

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



[issue5673] Add timeout option to subprocess.Popen

2010-08-09 Thread Pablo Bitton

Pablo Bitton  added the comment:

I've been using the subprocess-timeout-v5.patch patch with 2.x. Isn't that 
version supposed to work with 2.x?

Other than the stated problem, the patched module generally works, and is very 
helpful.

--

___
Python tracker 

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



[issue5673] Add timeout option to subprocess.Popen

2010-08-09 Thread Tim Golden

Changes by Tim Golden :


--
nosy: +tim.golden

___
Python tracker 

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



[issue5416] str.replace does strange things when given a negative count

2010-08-09 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

Fixed the doc string for release27-maint in revision r83879.
py3k (r83880) and release31-maint in r83881.

--
resolution:  -> fixed
stage: needs patch -> committed/rejected
status: open -> closed
type: feature request -> behavior

___
Python tracker 

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



[issue1682403] docutils clarification request for "rest"

2010-08-09 Thread Éric Araujo

Éric Araujo  added the comment:

Is there documentation somewhere that would explain what file to produce with 
what markup?

--
assignee: loewis -> tarek
nosy: +merwok, tarek

___
Python tracker 

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



[issue9545] Adding _collections to static build

2010-08-09 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Reverted since it broke the buildbots.

--
nosy: +pitrou

___
Python tracker 

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



[issue8685] set(range(100000)).difference(set()) is slow

2010-08-09 Thread Andrew Bennetts

Andrew Bennetts  added the comment:

On 2010-05-17 rhettinger wrote:
> Will look at this when I get back to the U.S.

Ping!  This patch (set-difference-speedup-2.diff) has been sitting around for a 
fair few weeks now.  It's a small patch, so it should be relatively easy to 
review.  It makes a significant improvement to speed and memory in one case 
(which we have encountered and worked around in bzr), and has no significant 
downside to any other cases.

Thanks :)

--

___
Python tracker 

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



[issue1116520] Prefix search is filesystem-centric

2010-08-09 Thread Steve Holden

Steve Holden  added the comment:

Personally I think it's just as relevant as it always was, particularly with 
the introduction of importlib, but Brett will have a more informed opinion. I 
won't be surprised if this issue is closed as wontfix.

--

___
Python tracker 

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



[issue9545] Adding _collections to static build

2010-08-09 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

This is the message from the buildbot failure:

Modules/Setup.dist is newer than Modules/Setup;
check to make sure you have all the updates you
need in your Modules/Setup file.
Usually, copying Modules/Setup.dist to Modules/Setup will work.

I am not sure, if anything more to be done if changes made to 
Modules/Setup.dist are to be propagated to Modules/Setup *in the buildbots*.

On an svn checkout the compilation is successful.

--
priority: normal -> high
resolution: fixed -> 
status: closed -> open

___
Python tracker 

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



[issue9543] 2.6.6 rc1 socket.py flush() calls del on unbound 'view' variable

2010-08-09 Thread Andrew Bennetts

Andrew Bennetts  added the comment:

Chatting with Taggnostr on IRC I've trimmed that reproduction down to something 
much cleaner (no magic numbers or threads involved):

import socket
sock_a, sock_b = socket.socketpair()
sock_a = socket.socket(_sock=sock_a)
sock_b.close()
file_a = sock_a.makefile('w')
file_a.write('x')
file_a.flush()

--

___
Python tracker 

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



[issue9546] buildbot: if a compile error occurs, the "clean" step is skipped

2010-08-09 Thread Florent Xicluna

New submission from Florent Xicluna :

When the buildbot fails to compile, the "clean" step is not run.
 http://www.python.org/dev/buildbot/builders/i386%20Ubuntu%203.x/builds/1838/

This is a problem for issue #9545 where the Modules/Setup.dist cannot be copied 
to Modules/Setup on next run (file already exist).

Normally, "clean" step takes care  to remove "Modules/Setup":
 
http://www.python.org/dev/buildbot/builders/i386%20Ubuntu%203.x/builds/1820/steps/clean/logs/stdio

--
components: Tests
keywords: buildbot
messages: 113409
nosy: flox, orsenthil, pitrou, rhettinger
priority: normal
severity: normal
status: open
title: buildbot: if a compile error occurs, the "clean" step is skipped
type: resource usage
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2

___
Python tracker 

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



[issue9545] Adding _collections to static build

2010-08-09 Thread Florent Xicluna

Florent Xicluna  added the comment:

See report on issue #9546: the "clean" step should remove "Modules/Setup", but 
it is skipped.

--
dependencies: +buildbot: if a compile error occurs, the "clean" step is skipped
nosy: +flox

___
Python tracker 

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



[issue9452] configparser support for reading from strings and dictionaries

2010-08-09 Thread Fred L. Drake, Jr.

Fred L. Drake, Jr.  added the comment:

Patch committed on py3k branch in r83889.

--
resolution:  -> accepted
status: open -> closed

___
Python tracker 

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



[issue9546] buildbot: if a compile error occurs, the "clean" step is skipped

2010-08-09 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +loewis
priority: normal -> high

___
Python tracker 

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



[issue3592] Patch to add imp.get_codingspec()

2010-08-09 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

We don't need this. We have tokenize.detect_encoding().

--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue6678] inspect.currentframe documentation omits optional depth parameter

2010-08-09 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

r83890 no longer produces the extra argument in help().

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue8666] Allow ConfigParser.get*() to take a default value

2010-08-09 Thread Łukasz Langa

Łukasz Langa  added the comment:

Superseded by #6751 in terms of age. A new patch for the functionality is going 
to be prepared.

--
nosy: +lukasz.langa
resolution:  -> duplicate
status: open -> closed
superseder:  -> Default return value in ConfigParser

___
Python tracker 

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



[issue5804] Add an 'offset' argument to zlib.decompress

2010-08-09 Thread Kristján Valur Jónsson

Kristján Valur Jónsson  added the comment:

decompressobj is indeed "enough".  But if you are doing a lot of this 
(decompressing chunks), then using the unused_data, as it is, involves a lot of 
copying.
If there were a "unused_data_pos" or some equivalent, then it would be possible 
to continue decommpressing with buffer(olddata, unused_data_pos), without 
copying the source data.

The point of the "offset" keyword argument was to have a way to get this end 
position also without having an explicit decompressobj.

I agree that having the result type change to a tuple is not good.

So, a suggestion:
1) Add the unused_data_pos to the decompressobj.
2) (opotional) Add the automatic retrieval of this with a decompress_ex method, 
for convenience, making it usable without creating a decompressobj
3) (optional) Add the "offset" kw argument to decompress and (decompress_ex) 
making the creation of a temporary buffer() object unnecessary.

--

___
Python tracker 

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



[issue8685] set(range(100000)).difference(set()) is slow

2010-08-09 Thread Florent Xicluna

Changes by Florent Xicluna :


--
nosy: +flox

___
Python tracker 

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



[issue5673] Add timeout option to subprocess.Popen

2010-08-09 Thread Brian Curtin

Brian Curtin  added the comment:

"I've been using the subprocess-timeout-v5.patch patch with 2.x. Isn't that 
version supposed to work with 2.x?"

Actually, yes, so I was wrong at first. The v5 patch will work with 2.x, but 
that's not the most up to date or correct patch. This feature will only be 
going into the py3k branch (aka 3.2), so issues with prior patches on 2.x 
aren't as valuable as those possibly found on the latest patch on 3.x.

--

___
Python tracker 

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



[issue4726] doctest gets line numbers wrong due to quotes in comments

2010-08-09 Thread Florent Xicluna

Florent Xicluna  added the comment:

Out of date.

--
nosy: +flox
status: pending -> closed

___
Python tracker 

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



[issue8685] set(range(100000)).difference(set()) is slow

2010-08-09 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

Andrew,

This issue is somewhat similar to issue8425.   I may be reading too much into 
the "priority" field, but it looks like Raymond would like to review #8425 
first.  You can help by commenting on how the two issues relate to each other.  
I believe the two are complementary, but I did not attempt to apply both 
patches.

(The patch still applies with little fuzz.)

--
stage:  -> patch review

___
Python tracker 

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



[issue8631] subprocess.Popen.communicate(...) hangs on Windows

2010-08-09 Thread Alex Quinn

Alex Quinn  added the comment:

I am on Windows 7.  I realized the "echo" command I'm piping to belongs to 
Cygwin.  I'll try to make a different example to either support this, or 
otherwise close the bug.

Thanks!

--

___
Python tracker 

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



[issue9547] iterator length

2010-08-09 Thread Alexandru Moșoi

New submission from Alexandru Moșoi :

Sometimes it's useful to get the number of elements yield by an iterator. For 
example (if ilen is the name of the function):

def pi(n):
  return ilen(for e in xrange(n) if isprime(e))

def count_pred(pred, iterator):
  return ilen(itertools.ifilter(pred, iterator))

Two notable solutions are discussed here 
http://stackoverflow.com/questions/3393431/how-to-counting-not-0-elements-in-an-iterable

1) sum(1 for e in iterator)
2) len(list(iterator))

First solution is slow, the second solution uses O(N) extra memory.

I propose the addition of a new function ilen() which is functionally 
equivalent to:

def ilen(iterator):
  return sum(1 for e in iterator)

This function should be different from len() because it's time complexity is 
O(N) (most people assume that len() takes O(1)) and it consumes the iterator.

--
messages: 113421
nosy: Alexandru.Moșoi
priority: normal
severity: normal
status: open
title: iterator length
type: feature request
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

___
Python tracker 

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



[issue9547] iterator length

2010-08-09 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Please post to python-ideas first.

--
nosy: +benjamin.peterson
resolution:  -> rejected
status: open -> closed

___
Python tracker 

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



[issue6678] inspect.currentframe documentation omits optional depth parameter

2010-08-09 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Benjamin: Previously, .currentframe() == sys._getframe() == sys._getframe(0) 
but you redefined it as sys._getframe(1), which is a change in semantics. Is 
this intentional (ie, was it buggy before)?

William: Benjamin's point was that the bug was not the doc but the 
implementation of .currentframe, so we were making the wrong fix relative to 
the intention of .currentframe.

--

___
Python tracker 

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



[issue6678] inspect.currentframe documentation omits optional depth parameter

2010-08-09 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

2010/8/9 Terry J. Reedy :
>
> Terry J. Reedy  added the comment:
>
> Benjamin: Previously, .currentframe() == sys._getframe() == sys._getframe(0) 
> but you redefined it as sys._getframe(1), which is a change in semantics. Is 
> this intentional (ie, was it buggy before)?

Yes, currentframe() doesn't take an argument. Whether it should or not
is a feature request.

--

___
Python tracker 

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



[issue8834] Define order of Misc/ACKS entries

2010-08-09 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

Committed in release27-maint branch in r83893.  I am not sure this belongs in 
2.6 and there is a small practical problem with the merge due to Latin-1 
encoding used in the 2.6 version.

I am also not sure whether keeping separate 2.x and 3.x versions serves any 
useful purpose.

I would like to merge 2.7 and 3.2 lists.   I am about +0.5 on syncing all three 
versions after that.  If the 2.6 has to stay in Latin-1, I would rather not 
touch it.

--

___
Python tracker 

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



[issue1485576] Backwards compatibility support for Py_ssize_t

2010-08-09 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

This request, however legitimate, is completely outdated.

--
nosy: +pitrou
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue949667] setblocking() method on file objects

2010-08-09 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
stage: unit test needed -> needs patch

___
Python tracker 

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



[issue949667] setblocking() method on file objects

2010-08-09 Thread Giampaolo Rodola'

Giampaolo Rodola'  added the comment:

Any clue on where to start to do this?
What about Windows where fcntl is not available?

--
nosy: +giampaolo.rodola

___
Python tracker 

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



[issue949667] setblocking() method on file objects

2010-08-09 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
components: +IO

___
Python tracker 

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



[issue7467] The zipfile module does not check files' CRCs, including in ZipFile.testzip

2010-08-09 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Patch looks good to me.

--
assignee:  -> pitrou
nosy: +pitrou
resolution:  -> accepted
stage: needs patch -> patch review

___
Python tracker 

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



[issue1492240] Socket-object convenience function: getpeercred().

2010-08-09 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
nosy: +giampaolo.rodola

___
Python tracker 

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



[issue6550] asyncore incorrect failure when connection is refused and using async_chat channel

2010-08-09 Thread Giampaolo Rodola'

Giampaolo Rodola'  added the comment:

What's the current status of this issue?
I think some of the problems raised at the time this was opened should have 
been fixed in meantime, like checking for errors in handle_expt_event and 
handle_connect_event (issue 2944).

The handle_close being called twice problem is still there though, as shown in 
issue 4690.

Not sure what other problems remain.

--

___
Python tracker 

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



[issue6550] asyncore incorrect failure when connection is refused and using async_chat channel

2010-08-09 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
versions: +Python 3.1, Python 3.2

___
Python tracker 

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



[issue8685] set(range(100000)).difference(set()) is slow

2010-08-09 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

I'll be looking at it shortly.  Py3.2 is still aways from release so there is 
no hurry.

--

___
Python tracker 

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



[issue1673007] urllib2 requests history + HEAD support

2010-08-09 Thread Jack Diederich

Changes by Jack Diederich :


--
nosy: +jackdied

___
Python tracker 

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



[issue949667] setblocking() method on file objects

2010-08-09 Thread Tim Golden

Tim Golden  added the comment:

There are at least two ways to do non-blocking file IO on Windows:

Overlapped I/O
I/O Completion ports

Don't know what's best here, but happy to see what might be achieved
if it was thought worth pursuing.

--
nosy: +tim.golden

___
Python tracker 

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



[issue6678] inspect.currentframe documentation omits optional depth parameter

2010-08-09 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

You ignored my question: why did you change the argument passed on to 
sys._getframe?

--

___
Python tracker 

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



[issue6678] inspect.currentframe documentation omits optional depth parameter

2010-08-09 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

2010/8/9 Terry J. Reedy :
>
> Terry J. Reedy  added the comment:
>
> You ignored my question: why did you change the argument passed on to 
> sys._getframe?

Ah, so that the caller's frame is returned and not currentframe's.

--

___
Python tracker 

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



[issue9547] iterator length

2010-08-09 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

This has been rejected before.  The core issue is that it is not a very useful 
operation because it consumes the iterator.   

Also, this isn't an operation worth optimizing because most iterators that do 
something interesting are already slower than a genexp inside a sum().

--
nosy: +rhettinger

___
Python tracker 

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



[issue9421] configparser.ConfigParser's getint, getboolean and getfloat don't accept `vars`

2010-08-09 Thread Fred L. Drake, Jr.

Fred L. Drake, Jr.  added the comment:

The getters should all accept a `default` argument that's used when no value is 
found in the configuration.  If the default is given, that should be returned 
(without conversion), instead of raising an exception.

This can be included in the same patch.

--

___
Python tracker 

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



[issue8834] Define order of Misc/ACKS entries

2010-08-09 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

At this point, I am sure that Barry would prefer leaving things alone for 2.6.

I am surprised that there are separate lists. I thought there was just one 
which distributions grabbed when made.

I suppose that one could claim that someone who only contributes to a branch 
after it branches off should not be listed for other branches, but in the 
absence of an automatic addition mechanism and dependence on hand-addition by 
committers, that does not work so well.

Certainly, Guido's header does not specify 'this release'.

--
versions:  -Python 2.6, Python 2.7

___
Python tracker 

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



[issue949667] setblocking() method on file objects

2010-08-09 Thread Brian Curtin

Changes by Brian Curtin :


--
nosy: +brian.curtin

___
Python tracker 

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



[issue8834] Define order of Misc/ACKS entries

2010-08-09 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

On Mon, Aug 9, 2010 at 2:16 PM, Terry J. Reedy  wrote:
..
> I am surprised that there are separate lists. I thought there was just one 
> which distributions grabbed when made.

I don't think this is intentional.  More likely committers add
acknowledgments in the same commit as the code changes and they end up
in whatever branch the patch is applied to.   I think this is fine,
but from time to time the list should be merged to avoid svnmerge
annoyances.  Whoever is annoyed by svnmerge (like myself :-) should
resync the lists.

--

___
Python tracker 

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



[issue3489] add rotate{left,right} methods to bytearray

2010-08-09 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Antoine, do you disagree with Raymond or should we close this?
In any case, I believe this would delayed by the moratorium.

--
nosy: +terry.reedy
versions: +Python 3.3 -Python 2.7, Python 3.2

___
Python tracker 

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



[issue6783] Add a builtin method to 'int' for base/radix conversion

2010-08-09 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I believe this is covered by the PEP3003 3.2 change moratorium.

--
nosy: +terry.reedy
versions: +Python 3.3 -Python 2.7, Python 3.2

___
Python tracker 

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



[issue6632] Include more fullwidth chars in the decimal codec

2010-08-09 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I believe this is covered by the PEP3003 3.2 change moratorium.

--
nosy: +terry.reedy
versions: +Python 3.3 -Python 2.7, Python 3.2

___
Python tracker 

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



[issue6783] Add a builtin method to 'int' for base/radix conversion

2010-08-09 Thread Mark Dickinson

Mark Dickinson  added the comment:

> I believe this is covered by the PEP3003 3.2 change moratorium.

No, I don't think so.  My understanding is that PEP 3003 doesn't cover new 
methods on builtin types.  int.from_bytes and int.to_bytes are examples of new 
methods that were added for 3.2.

--

___
Python tracker 

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



[issue3329] API for setting the memory allocator used by Python

2010-08-09 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.7, Python 3.1

___
Python tracker 

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



[issue7094] Add alternate float formatting styles to new-style formatting.

2010-08-09 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I believe this is covered by the PEP3003 3.2 change moratorium.

--
nosy: +terry.reedy
versions: +Python 3.3 -Python 2.7, Python 3.2

___
Python tracker 

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



[issue730473] Add Py_AtInit() startup hook for extenders

2010-08-09 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.7

___
Python tracker 

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



[issue3353] make built-in tokenizer available via Python C API

2010-08-09 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.7

___
Python tracker 

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



[issue2921] enable embedding: declare/#define only py* symbols in #includes

2010-08-09 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.7

___
Python tracker 

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



[issue1634034] Show "expected" token on syntax error

2010-08-09 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.7

___
Python tracker 

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



[issue2443] Define Py_VA_COPY macro as a cross-platform replacement for gcc __va_copy

2010-08-09 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.7

___
Python tracker 

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



[issue8212] A tp_dealloc of a subclassed class cannot resurrect an object

2010-08-09 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.7

___
Python tracker 

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



[issue6081] str.format_from_mapping()

2010-08-09 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I believe this is covered by the PEP3003 3.2 change moratorium.

--
nosy: +terry.reedy
versions: +Python 3.3 -Python 2.7, Python 3.2

___
Python tracker 

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



[issue9405] crash when calling urllib.getproxies() under OSX with subprocess / particular memory usage

2010-08-09 Thread mike bayer

mike bayer  added the comment:

Yeah we are fine if I build the release2.7-maint branch.Also just noticed 
that this bug prevents really basic things, like using urllib2 from a Pylons 
application that's running in "daemon" mode.  Pretty major, though unusual that 
I have some colleagues who don't have the issue with 2.6.

--

___
Python tracker 

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



[issue1644818] Allow built-in packages and submodules as well as top-level modules

2010-08-09 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I believe this is covered by the PEP3003 3.2 change moratorium.

--
nosy: +terry.reedy
versions: +Python 3.3 -Python 3.2

___
Python tracker 

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



[issue1402289] Allow mappings as globals (was: Fix dictionary subclass ...)

2010-08-09 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I believe this is covered by the PEP3003 3.2 change moratorium.

--
nosy: +terry.reedy
versions: +Python 3.3 -Python 3.2

___
Python tracker 

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



[issue7951] Should str.format allow negative indexes when used for __getitem__ access?

2010-08-09 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I believe this is covered by the PEP3003 3.2 change moratorium.

--
nosy: +terry.reedy
versions: +Python 3.3 -Python 3.2

___
Python tracker 

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



[issue6632] Include more fullwidth chars in the decimal codec

2010-08-09 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
keywords: +after moratorium

___
Python tracker 

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



[issue1402289] Allow mappings as globals (was: Fix dictionary subclass ...)

2010-08-09 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
keywords: +after moratorium -patch

___
Python tracker 

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



[issue6783] Add a builtin method to 'int' for base/radix conversion

2010-08-09 Thread Mark Dickinson

Mark Dickinson  added the comment:

In fact, PEP 3003 says explicitly, under "Case-by-Case Exemptions":

"""
New methods on built-ins

The case for adding a method to a built-in object can be made.
"""

So I'm changing the version back to 3.2.  Having said that, I'm still -0 on 
this change.  I can see some (small) value for bases 36 and 62 in particular, 
but little use for the other bases.

Incidentally, Yuvgoog Greenle did bring this up on the python-ideas list (thank 
you!).  The thread starts here:

http://mail.python.org/pipermail/python-ideas/2009-August/005611.html

The thread was rather inconclusive:  it got bogged down in discussions over 
whether bases 37+ should be allowed, whether there should be options to specify 
the digit-set used, and the like.

--
versions: +Python 3.2 -Python 3.3

___
Python tracker 

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



[issue6678] inspect.currentframe documentation omits optional depth parameter

2010-08-09 Thread Georg Brandl

Georg Brandl  added the comment:

Terry: due to the additional indirection by making currentframe() a separate 
function, _getframe(0) would return the frame in currentframe().

--

___
Python tracker 

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



[issue1565525] tracebacks eat up memory by holding references to locals and globals when they are not wanted

2010-08-09 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

This seems to be about reducing internal resource usage in a way that would be 
mostly invisible to the normal user. A core surface feature request would have 
to be put off to 3.3, but I do not see that as such.

--
type: feature request -> resource usage

___
Python tracker 

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



[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2010-08-09 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Would whatever remains of this be deferred by the PEP3003 moratorium?

--
nosy: +terry.reedy
versions:  -Python 2.7, Python 3.1

___
Python tracker 

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



[issue5950] Make zipimport work with zipfile containing comments

2010-08-09 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I believe this is covered by the PEP3003 3.2 change moratorium.

--
versions: +Python 3.3 -Python 3.2

___
Python tracker 

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



[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2010-08-09 Thread Eric Smith

Eric Smith  added the comment:

I don't think it would be covered by the moratorium, since it's not a language 
change. The change to make structseq derive from tuple was not subject to the 
moratorium, for example.

--

___
Python tracker 

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



[issue1173475] __slots__ for subclasses of variable length types

2010-08-09 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I believe this is covered by the PEP3003 3.2 change moratorium.

--
keywords: +after moratorium -patch
nosy: +terry.reedy
versions: +Python 3.3 -Python 3.2

___
Python tracker 

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



[issue1479611] speed up function calls

2010-08-09 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
type: feature request -> performance

___
Python tracker 

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



[issue1498363] Improve super() objects support for implicit method calls

2010-08-09 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I believe this is covered by the PEP3003 3.2 change moratorium.

--
keywords: +after moratorium -patch
nosy: +terry.reedy
versions: +Python 3.3 -Python 3.2

___
Python tracker 

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



[issue9269] Cannot pickle self-referencing sets

2010-08-09 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
components: +Library (Lib) -Interpreter Core
versions:  -Python 2.7

___
Python tracker 

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



[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2010-08-09 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

This is definitely not covered by the language moratorium.  Guido has requested 
this change and it needs to go forward.

--

___
Python tracker 

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



[issue9548] locale can be imported at startup but relies on too many library modules

2010-08-09 Thread Antoine Pitrou

New submission from Antoine Pitrou :

Consider the two following commands, from an SVN working copy:

$ ./python -c 'import heapq; print(heapq.heapify)'


$ cat | ./python -c 'import heapq; print(heapq.heapify)'


In the second case, the "from _heapq import *" in heapq fails silently. The 
reason was a bit difficult to find, but it goes as following:
- when run from a non-pty, initializing the standard streams imports 
Lib/locale.py
- Lib/locale.py import collections which import heapq
- heapq tries to import _heapq but, at this point, the build dir (such as 
"build/lib.linux-x86_64-3.2/") hasn't been added to sys.path, since site.py 
does it: the import fails
- heapq silences the ImportError, and this early loaded copy of the module is 
then made available to all subsequent consumers of heapq, without C accelerators

The issue might seem rather exotic, but it is a more general symptom of the 
problem that importing Lib/locale.py when initializing std{in,out,err} brings 
too many import dependencies.

A possible solution is to define a subset of locale.py that is used for 
bootstrap and rely on as little modules as possible.

--
components: Library (Lib)
messages: 113457
nosy: haypo, pitrou
priority: normal
severity: normal
status: open
title: locale can be imported at startup but relies on too many library modules
type: behavior
versions: Python 3.2

___
Python tracker 

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



[issue665761] reduce() masks exception

2010-08-09 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


Added file: http://bugs.python.org/file18453/issue665761-release27.diff

___
Python tracker 

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



[issue6786] readline and zero based indexing

2010-08-09 Thread James

James  added the comment:

I'd be writing a patch which would allow a programmer the option to explicitly 
use/instantiate the library in a zero-based way. This way throughout their 
particular program, the indexing of elements could be consistent. Not having 
this causes you to have to reason differently about which parts should be 
list[i+1] versions list[i].

Would this be reasonable?
Thanks,

_J

--

___
Python tracker 

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



[issue9548] locale can be imported at startup but relies on too many library modules

2010-08-09 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +lemburg, orsenthil, rhettinger

___
Python tracker 

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



[issue9548] locale can be imported at startup but relies on too many library modules

2010-08-09 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Attached patch fixes the issue by creating a separate "_bootlocale" module, 
used at bootstrap, which doesn't import collections, functools and friends.

--
keywords: +patch
Added file: http://bugs.python.org/file18454/bootlocale.patch

___
Python tracker 

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



[issue9548] locale can be imported at startup but relies on too many library modules

2010-08-09 Thread Mark Dickinson

Changes by Mark Dickinson :


--
nosy: +mark.dickinson

___
Python tracker 

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



[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-08-09 Thread Thomas Heller

Thomas Heller  added the comment:

> Thomas, it seems this change doesn't work for py3k. Buildbots complain and my 
> working copy does as well.
> 
> Example:
> 
> http://www.python.org/dev/buildbot/all/builders/x86%20gentoo%203.1/builds/990

I do not know why this happens.  It works for me, inside my sandbox
as well as on a newly checkout copy.
Anyway, I'm not able to fix it since I'm going to holidays.

--
title: ctypes should work with systems where mmap can't be PROT_WRITE and 
PROT_EXEC -> ctypes should work with systems where mmap can't be  
PROT_WRITE and PROT_EXEC

___
Python tracker 

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



[issue9549] Remove sys.setdefaultencoding()

2010-08-09 Thread Antoine Pitrou

New submission from Antoine Pitrou :

The use of sys.setdefaultencoding() has always been discouraged, and it has 
become a no-op in py3k (the encoding is hard-wired to utf-8 and changing it 
raises an error). It is time to remove this function entirely.

The state of PyUnicode_SetDefaultEncoding() should be also considered, since it 
has become useless for the same reasons.

--
components: Interpreter Core, Library (Lib)
messages: 113461
nosy: pitrou
priority: low
severity: normal
stage: needs patch
status: open
title: Remove sys.setdefaultencoding()
type: behavior
versions: Python 3.2, Python 3.3

___
Python tracker 

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



[issue9549] Remove sys.setdefaultencoding()

2010-08-09 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti

___
Python tracker 

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



[issue9548] locale can be imported at startup but relies on too many library modules

2010-08-09 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Updated patch also replaces imports of locale in site.py (since it can be 
imported early on startup).

--
Added file: http://bugs.python.org/file18455/bootlocale.patch

___
Python tracker 

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



[issue9548] locale can be imported at startup but relies on too many library modules

2010-08-09 Thread Antoine Pitrou

Changes by Antoine Pitrou :


Removed file: http://bugs.python.org/file18454/bootlocale.patch

___
Python tracker 

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



[issue9324] signal.signal(bogus_signal, handler) segfaults on Windows

2010-08-09 Thread Brian Curtin

Brian Curtin  added the comment:

Attached is a patch using Ronald's suggestion to rework this as a switch 
statement. Also included is a minor reworking that Paul noticed in 
Lib/test/test_signal.py.

Added the people who responded to the python-dev checkin comments to the nosy 
list. Feel free to remove yourself.

--
nosy: +gcewing, ocean-city, pmoore, ronaldoussoren
resolution: fixed -> accepted
stage: committed/rejected -> patch review
Added file: http://bugs.python.org/file18456/issue9324_v2.diff

___
Python tracker 

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



[issue7007] Tiny inconsistency in the orthography of "url encoded" in the doc of urllib.parse

2010-08-09 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

Docs updated in r83900 (py3k),  r83903 (release31-maint), r83905 
(release27-maint)

Modules updated in revision 83901 (py3k), r83904 (release31-maint), r83906 
(release27-maint).

--
resolution:  -> fixed
stage: needs patch -> committed/rejected
status: open -> closed
type: feature request -> behavior

___
Python tracker 

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



[issue9546] buildbot: if a compile error occurs, the "clean" step is skipped

2010-08-09 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

I think "cannot be copied" is an exaggeration. Of course it can be copied - 
it's just that the Makefile skips doing so.

What's the specific problem that this causes?

Not sure why this had high priority - if anybody wants to fix it, please go 
ahead.

--
priority: high -> normal

___
Python tracker 

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



[issue9548] locale can be imported at startup but relies on too many library modules

2010-08-09 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Chances are that the patch will also fix the test_heapq failures on some 
buildbots (see e.g. 
http://www.python.org/dev/buildbot/3.x/builders/x86%20Tiger%203.x/builds/759/steps/test/logs/stdio
 ).

--

___
Python tracker 

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



[issue5950] Make zipimport work with zipfile containing comments

2010-08-09 Thread Georg Brandl

Georg Brandl  added the comment:

Why?

--
versions: +Python 3.2 -Python 3.3

___
Python tracker 

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



  1   2   >