[issue11459] Python select.select does not correctly report read readyness

2011-03-15 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

to get that behavior, change the =1 default to =io.DEFAULT_BUFFER_SIZE in 
ross's patch.

--

___
Python tracker 

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



[issue10812] Add some posix functions

2011-03-15 Thread Ross Lagerwall

Ross Lagerwall  added the comment:

PyParse_off_t was already added when sendfile() was added as was the 
iovec_setup stuff.

I'll upload a patch soon which updates it to take this and the other comments 
into account.

--

___
Python tracker 

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



[issue11459] Python select.select does not correctly report read readyness

2011-03-15 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

ross's patch looks good to me.

Isn't the behavior just plain broken in 3.1 and 3.2?  The docs say that the 
default bufsize=0 is unbuffered in Popen but the implementation has that nasty 
XXX to make it line buffered instead of unbuffered in it.

This appears to have hid the problems with the textiowrapper being used in 
os.popen.

I think fixing it in 3.1 and 3.2 is the right thing to do.

It is desirable for os.popen()'s default buffering to match that of open() 
itself which is that they're buffered a buffer size of io.DEFAULT_BUFFER_SIZE.

--

___
Python tracker 

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



[issue10812] Add some posix functions

2011-03-15 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

I added some comments on the review for 10812_v5.patch.  not sure why v6 
doesn't have a review link.  Overall, very nice after addressing the few 
comments I had.

btw, can you sync this up with the hg tip (3.3) now while addressing the above?

I'm excited to see readv/writev/fadvise added.  Extremely useful.

--
stage:  -> patch review

___
Python tracker 

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



[issue11055] OS X IDLE 3.2 Save As menu accelerator opens two Save windows

2011-03-15 Thread Ned Deily

Ned Deily  added the comment:

Another data point: the key binding for Undo (Shift-Command-Z) exhibits similar 
behavior, i.e. it is executed twice.  And trying with Python 2.7.1 linked with 
A/S Tk 8.5 and with the old key bindings where Shift-Command-S is Save Copy 
rather than Save As, it appears that now two Save Copy events happen.  So it 
appears to happen in general (?) when Shift is combined with another 
accelerator. But it doesn't happen with Option-Command-S in 3.2.  And, using 
the Wish 8.5 menu demo, I was not able to reproduce the problem there by simply 
changing the accelerators to from Command- to Shift-Command-.  
So it's hard not to rule out something in IDLE yet.

--

___
Python tracker 

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



[issue2249] To document "assertTrue" in unittest

2011-03-15 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



[issue2578] additional unittest type equality methods

2011-03-15 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



[issue11567] http.server error message format

2011-03-15 Thread Ivan Radigales Creus

New submission from Ivan Radigales Creus :

The global variable DEFAULT_ERROR_MESSAGE on the module http.server is set to a 
non W3C standard value.

It would be better to use something like:

DEFAULT_ERROR_MESSAGE = """\
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml";>


Error response


Error response
Error code %(code)d.
Message: %(message)s.
Error code explanation: %(code)s = %(explain)s.


"""

That follows the W3C standards and validates successful on the 
http://validator.w3.org

Thanks!

--
components: Library (Lib)
messages: 131086
nosy: Ivan.Radigales.Creus
priority: normal
severity: normal
status: open
title: http.server error message format
type: performance
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



[issue11549] Rewrite peephole to work on AST

2011-03-15 Thread Nick Coghlan

Nick Coghlan  added the comment:

No need, since you manually created a review on appspot. The local Reitveld 
links are just a convenience that can avoid the need to manually create a 
review instance.

--

___
Python tracker 

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



[issue11549] Rewrite peephole to work on AST

2011-03-15 Thread Eugene Toder

Eugene Toder  added the comment:

I see. Should I attach diffs vs. some revision from hg.python.org?

--

___
Python tracker 

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



[issue11549] Rewrite peephole to work on AST

2011-03-15 Thread Nick Coghlan

Nick Coghlan  added the comment:

The review links didn't come up automatically because 336137a359ae isn't a 
hg.python.org/cpython revision ID.

--

___
Python tracker 

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



[issue5846] Deprecate obsolete functions in unittest

2011-03-15 Thread Ezio Melotti

Changes by Ezio Melotti :


--
stage:  -> needs patch
versions: +Python 3.3 -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



[issue11565] Another (the last) group of misspellings

2011-03-15 Thread Ezio Melotti

Changes by Ezio Melotti :


--
assignee:  -> ezio.melotti

___
Python tracker 

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



[issue11507] Misspelled exercises

2011-03-15 Thread Ezio Melotti

Changes by Ezio Melotti :


--
resolution:  -> fixed
stage:  -> committed/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



[issue11507] Misspelled exercises

2011-03-15 Thread Ezio Melotti

Changes by Ezio Melotti :


--
superseder:  -> Misspelled actually

___
Python tracker 

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



[issue11453] asyncore.file_wrapper should implement __del__ and call close there to prevent resource leaks and behave like socket.socket does.

2011-03-15 Thread Ben Hayden

Ben Hayden  added the comment:

Adding a patch that adds an __exit__ function much like the one that 
socket.socket implements. Passes the test_asyncore & also doesn't raise a 
resource warning when I explicitly comment out some close() calls on file 
wrapper objects in the test.

--
keywords: +patch
nosy: +beardedp
Added file: http://bugs.python.org/file21236/issue11453.patch

___
Python tracker 

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



[issue8600] test_gdb failures

2011-03-15 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset bca545c0941a by Jesus Cea in branch '3.2':
Close issue #8600: test_gdb failures because innocuous warnings
http://hg.python.org/cpython/rev/bca545c0941a

New changeset bbfc6a6ca017 by Jesus Cea in branch 'default':
Merge: Close issue #8600: test_gdb failures because innocuous warnings
http://hg.python.org/cpython/rev/bbfc6a6ca017

--

___
Python tracker 

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



[issue8600] test_gdb failures

2011-03-15 Thread Jesús Cea Avión

Jesús Cea Avión  added the comment:

I don't see it in python 3.1 branch.

Will fix 3.2 and 3.x.

--

___
Python tracker 

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



[issue8600] test_gdb failures

2011-03-15 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> gdb tests. The python gdb scripting ability.

?

$ ls Lib/test/test_gdb.py 
Lib/test/test_gdb.py

--

___
Python tracker 

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



[issue8600] test_gdb failures

2011-03-15 Thread Jesús Cea Avión

Jesús Cea Avión  added the comment:

gdb tests. The python gdb scripting ability.

--

___
Python tracker 

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



[issue8600] test_gdb failures

2011-03-15 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
status: open -> closed

___
Python tracker 

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



[issue8600] test_gdb failures

2011-03-15 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> Uhmm, the test seems to have vanished in 3.x. Uhmmm... Why?.

Which test are you talking about?

--

___
Python tracker 

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



[issue8600] test_gdb failures

2011-03-15 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 93053ce76075 by Jesus Cea in branch '2.7':
Close issue #8600: test_gdb failures because innocuous warnings
http://hg.python.org/cpython/rev/93053ce76075

--
nosy: +python-dev

___
Python tracker 

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



[issue8600] test_gdb failures

2011-03-15 Thread Jesús Cea Avión

Jesús Cea Avión  added the comment:

Uhmm, the test seems to have vanished in 3.x. Uhmmm... Why?.

--

___
Python tracker 

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



[issue11549] Rewrite peephole to work on AST

2011-03-15 Thread Eugene Toder

Eugene Toder  added the comment:

Thanks. Review link: http://codereview.appspot.com/4281051

--

___
Python tracker 

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



[issue8600] test_gdb failures

2011-03-15 Thread Jesús Cea Avión

Jesús Cea Avión  added the comment:

This issue is still bugging OpenIndiana buildbots. The patch is trivial and 
painless. I will patch 2.7, 3.1, 3.2 and 3.x in a few minutes.

--
assignee: dmalcolm -> jcea
status: closed -> open
versions: +Python 3.1, Python 3.3

___
Python tracker 

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



[issue11549] Rewrite peephole to work on AST

2011-03-15 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> Because I don't know how to make them. Any pointers?

Martin is hacking on the tool these days... So it's no surprise it
doesn't work perfectly yet ;)
If you have a Google account you can upload these patches to
http://codereview.appspot.com/, though.

--

___
Python tracker 

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



[issue11549] Rewrite peephole to work on AST

2011-03-15 Thread Eugene Toder

Eugene Toder  added the comment:

Because I don't know how to make them. Any pointers?

--

___
Python tracker 

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



[issue11549] Rewrite peephole to work on AST

2011-03-15 Thread Skip Montanaro

Skip Montanaro  added the comment:

I'm confused.  Why aren't there review links?

--
nosy: +skip.montanaro

___
Python tracker 

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



[issue11244] Negative tuple elements produce inefficient code.

2011-03-15 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Eugene, according to Mark your patch is fine. It just needs someone to commit 
it. I would personally prefer to let Mark handle it, since he's our specialist 
in negative zeroes (and other numerical subtleties) ;)

--
stage: patch review -> commit review
versions: +Python 3.1

___
Python tracker 

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



[issue11244] Negative tuple elements produce inefficient code.

2011-03-15 Thread Eugene Toder

Eugene Toder  added the comment:

Is anyone reviewing my patch? It's just 1 line long. Should it be moved to 
another issue? Though, technically, it's needed to address the regression in 
question: Python 3.1 folds -0, the current code still does not.

--

___
Python tracker 

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



[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2011-03-15 Thread Ralf Schmitt

New submission from Ralf Schmitt :

The following program

#include 
#include 

results in the following error when compiled with g++ and -std=gnu++0x:

$ g++ -std=gnu++0x -c t.cc -I /c/Python27/Include
In file included from 
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.5.1/include/c++/cmath:629:0,
 from t.cc:2:
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.5.1/include/c++/tr1_impl/cmath:203:11:
 error: '::hypot' has not been declared

The problem is, that pyconfig.h has the following define:

#define hypot _hypot

It should probably just be removed when using gcc.

--
components: None
messages: 131067
nosy: schmir
priority: normal
severity: normal
status: open
title: hypot define in pyconfig.h clashes with g++'s cmath
type: compile error
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



[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-03-15 Thread Santoso Wijaya

Changes by Santoso Wijaya :


--
nosy: +santa4nt

___
Python tracker 

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



[issue11133] inspect.getattr_static code execution

2011-03-15 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 8c7eac34f7bf by Michael Foord in branch '3.2':
Closes issue 11133. Fixes two cases where inspect.getattr_static could trigger 
code execution
http://hg.python.org/cpython/rev/8c7eac34f7bf

--
nosy: +python-dev
resolution:  -> fixed
stage:  -> committed/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



[issue10736] test_ttk_guionly fails on OS X using ActiveState Tcl 8.5.9 (Cocoa)

2011-03-15 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

The attached patch fixes the test failures with Tk 8.5.9, I haven't tested with 
other versions or other platforms.

The change to 'test_traversal' should be sane.

The change to 'test_tab_identifiers' is more phishy. I've done two changes 
there: (1) slightly different index to test for tab 0, as layout on OSX needs 
more space and (2) the code assumes that tab("idx") won't raise an exception, 
I've added a TclError catch to ensure that other locations get tested as well.

With these changes the tests pass, but I'd like a review from someone that 
knows about tkinter and ttk before committing.

--
Added file: http://bugs.python.org/file21235/issue10736.txt

___
Python tracker 

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



[issue11564] pickle not 64-bit ready

2011-03-15 Thread Alexandre Vassalotti

Alexandre Vassalotti  added the comment:

We could resort to the text-based protocol which doesn't have these limitations 
with respect to object lengths (IIRC). Performance won't be amazing, but we 
won't have to modify the current pickle protocol.

--

___
Python tracker 

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



[issue11298] unittest discovery needs better explanation

2011-03-15 Thread R. David Murray

R. David Murray  added the comment:

Drat, I accidentally deleted the patch file.  Reattaching.

--
nosy: +r.david.murray
Added file: http://bugs.python.org/file21234/issue11298_py2.7.patch

___
Python tracker 

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



[issue11562] += on list inside a tuple raises TypeError but succeds anyway

2011-03-15 Thread Santoso Wijaya

Changes by Santoso Wijaya :


--
nosy: +santa4nt
versions: +Python 3.3

___
Python tracker 

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



[issue11298] unittest discovery needs better explanation

2011-03-15 Thread R. David Murray

Changes by R. David Murray :


Removed file: http://bugs.python.org/file21043/issue11298_py2.7.patch

___
Python tracker 

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



[issue11564] pickle not 64-bit ready

2011-03-15 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Indeed:

>>> s = b'a' * (2**31)
>>> d = pickle.dumps(s)
Traceback (most recent call last):
  File "", line 1, in 
SystemError: error return without exception set

There are two aspects to this:
- (bugfix) raise a proper exception when an object too large for handling by 
pickle is given
- (feature) improve the pickle protocol to handle objects larger than (2**31-1) 
elements

The improvement to the pickle protocol should probably be considered along 
other improvements, because we don't want to create a new protocol too often.

See also issue9614.

--
nosy: +alexandre.vassalotti, amaury.forgeotdarc, belopolsky, pitrou
title: pickle limits most datatypes -> pickle not 64-bit ready
versions: +Python 3.1, Python 3.3

___
Python tracker 

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



[issue11565] Another (the last) group of misspellings

2011-03-15 Thread Piotr Kasprzyk

New submission from Piotr Kasprzyk :

This it the second (and last) part of misspellings.

Please also close/reject issue 11507 - it is outdated.

--
components: None
files: another_misspellings.patch
keywords: patch
messages: 131061
nosy: ezio.melotti, kwadrat
priority: normal
severity: normal
status: open
title: Another (the last) group of misspellings
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file21233/another_misspellings.patch

___
Python tracker 

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



[issue11477] Bug in code dispatching based on internal slots

2011-03-15 Thread Armin Rigo

Changes by Armin Rigo :


--
nosy:  -arigo

___
Python tracker 

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



[issue11564] pickle limits most datatypes

2011-03-15 Thread Nik Galitsky

New submission from Nik Galitsky :

Python 3.2 on linux (RHEL 5.3) x86_64 build from source code.
Configure options:
./configure --prefix=/scratch/Python-3.2 --enable-big-digits=30 
--with-universal-archs=all --with-fpectl --enable-shared
Built with GCC 4.3.3 with major options 
-g3 -O3 -m64 -fPIC.

Testcase that shows the issue:

#import numpy

import pickle
print("begin")
#a = numpy.zeros((2.5e9 / 8,), dtype = numpy.float64)
a = ('a' * (2 ** 31))
print("allocated")
#print(a);
pickle.dumps(a, pickle.DEFAULT_PROTOCOL)
print("end")

The problem as I can see it is that in pickle.py most types defined either as 2 
bytes, or 4 bytes.
For example it is peppered with lines like:
self.write(SOMETYPE + pack("\0\1\0\0\0\300>\0\0\0\0\0\0"..., 
832) = 832
fstat(5, {st_mode=S_IFREG|0755, st_size=412939, ...}) = 0
mmap(NULL, 2185384, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 
0x2b05b5f68000
mprotect(0x2b05b5f7b000, 2093056, PROT_NONE) = 0
mmap(0x2b05b617a000, 16384, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x12000) = 0x2b05b617a000
close(5)= 0
close(4)= 0
close(3)= 0
write(1, "begin\n", 6begin
)  = 6
mmap(NULL, 4294971392, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 
= 0x2b05b617e000
write(1, "allocated\n", 10allocated
) = 10
mmap(NULL, 8589938688, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 
= 0x2b06b617f000
mremap(0x2b06b617f000, 8589938688, 2147487744, MREMAP_MAYMOVE) = 0x2b06b617f000
mmap(NULL, 4294971392, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 
= 0x2b073618
munmap(0x2b06b617f000, 2147487744)  = 0
munmap(0x2b073618, 4294971392)  = 0
write(2, "Traceback (most recent call last"..., 35Traceback (most recent call 
last):
) = 35
write(2, "  File \"pickle_long.py\", line 9,"..., 45  File "pickle_long.py", 
line 9, in 
) = 45
open("pickle_long.py", O_RDONLY)= 3
fstat(3, {st_mode=S_IFREG|0644, st_size=251, ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x79f7c9e0) = -1 ENOTTY 
(Inappropriate ioctl for device)
fstat(3, {st_mode=S_IFREG|0644, st_size=251, ...}) = 0
lseek(3, 0, SEEK_CUR)   = 0
dup(3)  = 4
fcntl(4, F_GETFL)   = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(4, {st_mode=S_IFREG|0644, st_size=251, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x2b06b617f000
lseek(4, 0, SEEK_CUR)   = 0
read(4, "#import numpy\n\nimport pickle\npri"..., 4096) = 251
close(4)= 0
munmap(0x2b06b617f000, 4096)= 0
lseek(3, 0, SEEK_SET)   = 0
lseek(3, 0, SEEK_CUR)   = 0
read(3, "#import numpy\n\nimport pickle\npri"..., 4096) = 251
close(3)= 0
write(2, "pickle.dumps(a, pickle.DEFAU"..., 45pickle.dumps(a, 
pickle.DEFAULT_PROTOCOL)
) = 45
write(2, "SystemError: error return withou"..., 48SystemError: error return 
without exception set
) = 48
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x2b05b118e4c0}, 
{0x2b05b0e7a570, [], SA_RESTORER, 0x2b05b118e4c0}, 8) = 0
munmap(0x2b05b617e000, 4294971392)  = 0
exit_group(1)   = ?

Why is this limitation?
Please advise.

--
components: Interpreter Core
messages: 131060
nosy: nyevik
priority: normal
severity: normal
status: open
title: pickle limits most datatypes
type: crash
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



[issue11563] test_urllibnet is triggering a ResourceWarning

2011-03-15 Thread Brett Cannon

New submission from Brett Cannon :

test.test_urllibnet.urlopenNetworkTests.test_getcode() is leaving a socket 
open. My guess is that the error condition being triggered is somehow leaving 
the socket open but I can't find where.

--
components: Library (Lib)
messages: 131059
nosy: brett.cannon
priority: normal
severity: normal
stage: needs patch
status: open
title: test_urllibnet is triggering a ResourceWarning

___
Python tracker 

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



[issue11401] email.header error during .flatten()

2011-03-15 Thread R. David Murray

R. David Murray  added the comment:

It turns out this is a bug in 3.1, not something introduced by email5.1 in 3.2. 
 The minimum reproducer is stringifying any message containing a header with no 
body.

--
stage:  -> needs patch
versions: +Python 3.1

___
Python tracker 

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



[issue11562] += on list inside a tuple raises TypeError but succeds anyway

2011-03-15 Thread Daniel Stutzbach

Changes by Daniel Stutzbach :


--
nosy: +stutzbach
stage:  -> test needed
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



[issue11477] Bug in code dispatching based on internal slots

2011-03-15 Thread Nick Coghlan

Nick Coghlan  added the comment:

We know, I left it there to help MvL debug the issues in the diff generator.

The version I created with the rdiff extension is correct though, and Martin 
fixed the Reitveld integration to handle the extra lines at the start of the 
diff.

I wouldn't actually commit the change as it stands (if nothing else, 
PyErr_Matches() calls are needed in the unicode methods), but it gives a clear 
idea of the magnitude of the changes needed.

--

___
Python tracker 

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



[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-03-15 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Could someone with access to a windows box test the patch there?

--

___
Python tracker 

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



[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-03-15 Thread Nick Coghlan

Changes by Nick Coghlan :


--
nosy: +brett.cannon, ncoghlan

___
Python tracker 

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



[issue11562] += on list inside a tuple raises TypeError but succeds anyway

2011-03-15 Thread Mike Smith

New submission from Mike Smith :

Using += to append to a list inside a tuple raises a TypeError but succeeds in 
appending the value anyway:

>>> t = (1, [2, 3, 4])
>>> t[1].append(5)
>>> t[1] += [6]
Traceback (most recent call last):
  File "", line 1, in 
TypeError: 'tuple' object does not support item assignment
>>> t
(1, [2, 3, 4, 5, 6])

I have reproduced this on all the Python interpreters available to me (CPython 
2.6, 2.7, and 3.1).

--
components: Interpreter Core
messages: 131055
nosy: scgtrp
priority: normal
severity: normal
status: open
title: += on list inside a tuple raises TypeError but succeds anyway
type: behavior
versions: Python 2.6, 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



[issue11549] Rewrite peephole to work on AST

2011-03-15 Thread Nick Coghlan

Changes by Nick Coghlan :


--
nosy: +brett.cannon

___
Python tracker 

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



[issue11510] Peephole breaks set unpacking

2011-03-15 Thread R. David Murray

R. David Murray  added the comment:

Raymond, it looks like you committed this fix separately to the 3.2 branch and 
the default branch, instead of committing to 3.2 and then merging to default.  
With svn, this wasn't a big deal, but with mercurial it will leave the 3.2 
changeset unmerged, and the next person who wants to submit something will have 
to merge it.  (A dummy merge, since you already committed the fix to default).

--
nosy: +r.david.murray

___
Python tracker 

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



[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-03-15 Thread Brandon Craig Rhodes

Brandon Craig Rhodes  added the comment:

Here is a module that solves this problem if the tests are run with the 
"fullcoverage" directory at the front of the PYTHONPATH, like this:

PYTHONPATH=Tools/fullcoverage ./python -m coverage run --pylib 
Lib/test/regrtest.py test_copy

--
keywords: +patch
Added file: http://bugs.python.org/file21232/fullcoverage.patch

___
Python tracker 

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



[issue11055] OS X IDLE 3.2 Save As menu accelerator opens two Save windows

2011-03-15 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

This is not caused by unwanted interaction with Tk's default bindings, changing 
the save-as bindings to Shift+Cmd+M doesn't "fix" the issue.

It seems that the save event is generated twice, for reasons I don't yet 
understand (I'm definitely not enough of a Tkinter user to understand what's 
going on).

I have attached a new patch that fixes the issue for me, by recognizing that a 
save event is getting in while already saving. The fix is only active on OSX.

BTW. This issue probably also affects 2.7, I haven't done a rebuild of 2.7 yet 
to check that.

--
Added file: http://bugs.python.org/file21231/issue11055.txt

___
Python tracker 

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



[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-03-15 Thread Brandon Craig Rhodes

New submission from Brandon Craig Rhodes :

When running the Python regression tests in "coverage", the initial outer level 
of interpreted code in several standard library modules shows as not having 
been covered by the tests, because they were imported during the Python boot 
process and were already loaded when the "coverage" command got control.

--
messages: 131051
nosy: brandon-rhodes
priority: normal
severity: normal
status: open
title: "coverage" of Python regrtest cannot see initial import of libs

___
Python tracker 

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



[issue11510] Peephole breaks set unpacking

2011-03-15 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Eugene, thanks for noticing and reporting this.

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



[issue11510] Peephole breaks set unpacking

2011-03-15 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset db6997fb4c99 by Raymond Hettinger in branch 'default':
Issue 11510: Fix BUILD_SET optimizer bug.
http://hg.python.org/cpython/rev/db6997fb4c99

--

___
Python tracker 

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



[issue11055] OS X IDLE 3.2 Save As menu accelerator opens two Save windows

2011-03-15 Thread Ronald Oussoren

Changes by Ronald Oussoren :


Removed file: http://bugs.python.org/file21218/issue11055.patch

___
Python tracker 

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



[issue11216] email.message.Message set_charset does not encode properly?

2011-03-15 Thread R. David Murray

R. David Murray  added the comment:

I've committed the patch as is.  We'll address improving the semantics one way 
or another as part of email6 development.

--
resolution:  -> fixed
stage: patch review -> committed/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



[issue11469] Fix resource warning in test_trailers

2011-03-15 Thread brian.curtin.test

brian.curtin.test  added the comment:

On Mar 15, 2011 5:39 PM, "Brett Cannon"  wrote:
>
>
> Brett Cannon  added the comment:
>
> So is this a bogus bug, or a valid bug created with a bogus account?
>
> --
> nosy: +brett.cannon
>
> ___
> Python tracker 
> 
> ___

The bug is valid, at least as of Friday afternoon.

--
Added file: http://bugs.python.org/file21230/unnamed

___
Python tracker 

___
On Mar 15, 2011 5:39 PM, "Brett Cannon" rep...@bugs.python.org> wrote:
>
>
> Brett Cannon br...@python.org> added the comment:
>
> So is this a bogus bug, or a valid bug created with a bogus account?
>
> --
> nosy: +brett.cannon
>
> ___
> Python tracker rep...@bugs.python.org>
> http://bugs.python.org/issue11469>
> ___
The bug is valid, at least as of Friday afternoon. 
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11216] email.message.Message set_charset does not encode properly?

2011-03-15 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 43ccd051ec6c by R David Murray in branch '2.7':
Merge #11216: document all possible set_charset execution paths.
http://hg.python.org/cpython/rev/43ccd051ec6c

--

___
Python tracker 

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



[issue11510] Peephole breaks set unpacking

2011-03-15 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 912eb87946e0 by Raymond Hettinger in branch '3.2':
Issue 11510: Fix BUILD_SET optimizer bug.
http://hg.python.org/cpython/rev/912eb87946e0

--
nosy: +python-dev

___
Python tracker 

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



[issue11216] email.message.Message set_charset does not encode properly?

2011-03-15 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset cf1859f9aed9 by R David Murray in branch '3.1':
#11216: document all possible set_charset execution paths.
http://hg.python.org/cpython/rev/cf1859f9aed9

New changeset 4d25b9d2aa05 by R David Murray in branch '3.2':
Merge #11216: document all possible set_charset execution paths.
http://hg.python.org/cpython/rev/4d25b9d2aa05

New changeset 2dd70fd26f24 by R David Murray in branch 'default':
Merge #11216: document all possible set_charset execution paths.
http://hg.python.org/cpython/rev/2dd70fd26f24

--
nosy: +python-dev

___
Python tracker 

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



[issue11469] Fix resource warning in test_trailers

2011-03-15 Thread Brett Cannon

Brett Cannon  added the comment:

So is this a bogus bug, or a valid bug created with a bogus account?

--
nosy: +brett.cannon

___
Python tracker 

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



[issue11276] 2to3: imports fixer doesn't update references to modules specified without attributes

2011-03-15 Thread Jason R. Coombs

Jason R. Coombs  added the comment:

it looks like lib maintainers can work around the limitation by using the 
syntax:

 import _winreg as winreg

And then reference the name winreg (or any other preferred name).

--

___
Python tracker 

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



[issue11560] Expand test coverage in shutil

2011-03-15 Thread Evan Dandrea

New submission from Evan Dandrea :

The attached patch increases the coverage in shutil.  It makes the following 
changes:
 - Tests the code paths for file and directory copies across filesystems by 
mocking out rename.
 - Adds a test for shutil.copy.
 - Adds a test for shutil.copy2.
 - Tests shutil.unpack_archive with the format specified.
 - Tests the code path for creating the target directory in _make_tarball.

I have tested this on Ubuntu natty and OSX 10.6.6.  Note that this will fail 
until http://bugs.python.org/issue11548 is applied.

--
components: Tests
files: increase_test_shutil_coverage.patch
keywords: patch
messages: 131041
nosy: ev, tarek
priority: normal
severity: normal
status: open
title: Expand test coverage in shutil
Added file: http://bugs.python.org/file21229/increase_test_shutil_coverage.patch

___
Python tracker 

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



[issue11548] Passing format= to unpack_archive fails

2011-03-15 Thread Evan Dandrea

Changes by Evan Dandrea :


Removed file: http://bugs.python.org/file21196/fix_unpack_with_format.patch

___
Python tracker 

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



[issue11548] Passing format= to unpack_archive fails

2011-03-15 Thread Evan Dandrea

Changes by Evan Dandrea :


Added file: http://bugs.python.org/file21228/fix_unpack_with_format.patch

___
Python tracker 

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



[issue11088] IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input

2011-03-15 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Added an updated version of the patch:

* Only perform the workaround in IDLE.app on OSX
* A slightly longer timeout is needed to work reliably on my machine
 
The latter bullet indicates that this is probably not a reliable fix,
there is a timeing issue.

--
Added file: http://bugs.python.org/file21227/issue-11088.patch

___
Python tracker 

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



[issue11088] IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input

2011-03-15 Thread Ronald Oussoren

Changes by Ronald Oussoren :


Removed file: http://bugs.python.org/file21226/issue-11088.patch

___
Python tracker 

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



[issue11550] Fix ResourceWarning in test_pulldom

2011-03-15 Thread Brett Cannon

Brett Cannon  added the comment:

Fixed in [aa000dd4287f]. I went with a simpler solution than Ben's, but it did 
help figure out what to do.

--
nosy: +brett.cannon
resolution:  -> fixed
stage:  -> committed/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



[issue11550] Fix ResourceWarning in test_pulldom

2011-03-15 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset aa000dd4287f by Brett Cannon in branch 'default':
Close a stream properly in test.test_pulldom.
http://hg.python.org/cpython/rev/aa000dd4287f

--
nosy: +python-dev

___
Python tracker 

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



[issue11088] IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input

2011-03-15 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Got it to work by introducing both a delayed call and a generated event, just 
one of those isn't good enough.

The attached patch seems to fix the issue for me (patch was created using 
diff(1), not through mercurial).

I haven't tested this on anything else than IDLE 3.2 on OSX 10.6 with Tk 8.5.9 
from ActiveState. 

If this gets committed I'd at the very least use this workaround only for 
Tk-Cocoa on OSX, and use the current code path on other platforms. That gives 
more code, but makes it clear than something special is being done for one 
specific platform.

--
keywords: +patch
Added file: http://bugs.python.org/file21226/issue-11088.patch

___
Python tracker 

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



[issue9263] Try to print repr() when an C-level assert fails (in the garbage collector, beyond?)

2011-03-15 Thread Nick Coghlan

Nick Coghlan  added the comment:

I'd suggest calling Py_FatalError rather than calling abort() directly in 
_PyObject_AssertFailed, but otherwise this looks like a nice improvement over 
standard C asserts for state invariants that may be broken by buggy C 
extensions.

For the tests, take a look at test.script_helper - it provides some convenience 
wrappers for spawning subprocesses for tests that would cause problems if run 
in the current process.

--
nosy: +ncoghlan

___
Python tracker 

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



[issue11088] IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input

2011-03-15 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

This isn't strictly a key-bindings problem, other events also cause problems. 

I've patched ScriptBinding.py and repacled run_module_event that causes the 
original, now renamed, method to be called a little why later. This change 
doesn't fix the issue but makes it even worse: even the menu no longer works.

def run_module_event(self, event):
self.editwin.text_frame.after('idle', self._run_module_event, None)
return 'break'

def _run_module_event(self, event):
"""Run the module after setting up the environment.

I'm getting more and more disappointed in the way Tk on OSX is moving forward.

--

___
Python tracker 

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



[issue11501] distutils.archive_util should handle absence of zlib module

2011-03-15 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed
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



[issue11550] Fix ResourceWarning in test_pulldom

2011-03-15 Thread Nadeem Vawda

Changes by Nadeem Vawda :


--
nosy: +nvawda

___
Python tracker 

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



[issue11501] distutils.archive_util should handle absence of zlib module

2011-03-15 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 6b33aa811821 by Antoine Pitrou in branch '3.1':
On behalf of Tarek: Issue #11501: disutils.archive_utils.make_zipfile no
http://hg.python.org/cpython/rev/6b33aa811821

New changeset 1bf4383f190a by Antoine Pitrou in branch '3.2':
Merge fix for issue #11501
http://hg.python.org/cpython/rev/1bf4383f190a

New changeset cccddd797d95 by Antoine Pitrou in branch 'default':
Merge fix for issue #11501
http://hg.python.org/cpython/rev/cccddd797d95

--
nosy: +python-dev

___
Python tracker 

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



[issue11432] webbrowser.open on unix fails.

2011-03-15 Thread Gregory P. Smith

Changes by Gregory P. Smith :


--
resolution:  -> fixed
status: open -> closed
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



[issue11432] webbrowser.open on unix fails.

2011-03-15 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 82e010943c68 by Gregory P. Smith in branch '3.2':
issue 11432 news entry.
http://hg.python.org/cpython/rev/82e010943c68

New changeset 8d3bcf57977b by Gregory P. Smith in branch 'default':
Misc/NEWS entry for issue 11432
http://hg.python.org/cpython/rev/8d3bcf57977b

--

___
Python tracker 

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



[issue11276] 2to3: imports fixer doesn't update references to modules specified without attributes

2011-03-15 Thread Jason R. Coombs

Jason R. Coombs  added the comment:

This bug also affects poster. http://bitbucket.org/jaraco/poster (httplib 
reference in httpstreaming.py)

--

___
Python tracker 

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



[issue11432] webbrowser.open on unix fails.

2011-03-15 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 08daf3ef6509 by Gregory P. Smith in branch 'default':
Add unittests demonstrating issue #11432.
http://hg.python.org/cpython/rev/08daf3ef6509

New changeset adcf03b074b7 by Gregory P. Smith in branch 'default':
Fix issue #11432. if the stdin pipe is the same file descriptor as either 
stdout or stderr
http://hg.python.org/cpython/rev/adcf03b074b7

New changeset ead52adcd0c8 by Gregory P. Smith in branch '3.2':
Fix issue #11432. if the stdin pipe is the same file descriptor as either 
stdout or stderr
http://hg.python.org/cpython/rev/ead52adcd0c8

New changeset ad2bd8d338b0 by Gregory P. Smith in branch '3.2':
Add unittests demonstrating issue #11432.
http://hg.python.org/cpython/rev/ad2bd8d338b0

--
nosy: +python-dev

___
Python tracker 

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



[issue11477] Bug in code dispatching based on internal slots

2011-03-15 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

b9b7d4c10bc4.diff is a huge compilation of all commits from the last few days, 
with the abstract.c diff buried about 3/4ths of the way through.

--

___
Python tracker 

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



[issue11559] Increase test coverage in dis module

2011-03-15 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset f41c3d9e05bd by Benjamin Peterson in branch 'default':
improve dis test coverage (closes #11559)
http://hg.python.org/cpython/rev/f41c3d9e05bd

--
nosy: +python-dev
resolution:  -> fixed
stage:  -> committed/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



[issue10242] unittest's assertItemsEqual() method makes too many assumptions about its input

2011-03-15 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

assertCountEqual has been released in 3.2 as the new name.  close this?

--

___
Python tracker 

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



[issue1559549] ImportError needs attributes for module and file name

2011-03-15 Thread Filip Gruszczyński

Filip Gruszczyński  added the comment:

I didn't know about this mq extension. I will do a proper patch with a test 
after friday.

--

___
Python tracker 

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



[issue11559] Increase test coverage in dis module

2011-03-15 Thread Nick Coghlan

Changes by Nick Coghlan :


--
nosy: +ncoghlan

___
Python tracker 

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



[issue1559549] ImportError needs attributes for module and file name

2011-03-15 Thread Nick Coghlan

Changes by Nick Coghlan :


--
nosy: +ncoghlan

___
Python tracker 

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



[issue8754] ImportError: quote bad module name in message

2011-03-15 Thread Nick Coghlan

Changes by Nick Coghlan :


--
nosy: +ncoghlan

___
Python tracker 

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



[issue1189811] pydoc may hide non-private doc strings.

2011-03-15 Thread Tim Lesher

Changes by Tim Lesher :


--
nosy: +tlesher

___
Python tracker 

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



[issue11501] distutils.archive_util should handle absence of zlib module

2011-03-15 Thread Tarek Ziadé

Changes by Tarek Ziadé :


Removed file: http://bugs.python.org/file21142/pycon-issue11501.patch

___
Python tracker 

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



[issue11501] distutils.archive_util should handle absence of zlib module

2011-03-15 Thread Tarek Ziadé

Changes by Tarek Ziadé :


Removed file: http://bugs.python.org/file21137/pycon-issue11501.patch

___
Python tracker 

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



[issue11515] Misspelled actually

2011-03-15 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I want to thank you all too, both for the changes themselves and for the 
bundling.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue11289] smtplib context manager

2011-03-15 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
stage:  -> committed/rejected
type:  -> feature request

___
Python tracker 

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



[issue11289] smtplib context manager

2011-03-15 Thread Barry A. Warsaw

Changes by Barry A. Warsaw :


--
resolution:  -> accepted

___
Python tracker 

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



[issue11289] smtplib context manager

2011-03-15 Thread Barry A. Warsaw

Changes by Barry A. Warsaw :


--
status: open -> closed

___
Python tracker 

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



[issue11289] smtplib context manager

2011-03-15 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset a6a94cfb75e9 by Barry Warsaw in branch 'default':
- Issue #11289: `smtp.SMTP` class becomes a context manager so it can be used
http://hg.python.org/cpython/rev/a6a94cfb75e9

--
nosy: +python-dev

___
Python tracker 

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



[issue11559] Increase test coverage in dis module

2011-03-15 Thread Matias Bordese

Matias Bordese  added the comment:

Updated patch following Benjamin advice (1. and 2.).

Re 3. Why is dist(None) a RuntimeError and anything else invalid TypeError?

When the dis argument is None, the last traceback is disassembled; if something 
different to None and that does not have code (ie. no class, method, function 
or bytecode) is passed, the TypeError exception is raised [0].

[0] http://hg.python.org/cpython/file/1c0cded97280/Lib/dis.py#l28

--
Added file: http://bugs.python.org/file21225/updated_add_dis_tests.patch

___
Python tracker 

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



[issue11257] asyncore stores unnecessary object references

2011-03-15 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue11257] asyncore stores unnecessary object references

2011-03-15 Thread Giampaolo Rodola'

Giampaolo Rodola'  added the comment:

Closing out as per msg128969.

--

___
Python tracker 

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



  1   2   >