[issue3833] python-2.6b3.msi and python-2.6b3.amd64.msi can't both be installed on one machine

2008-09-13 Thread Martin v. Löwis

Martin v. Löwis <[EMAIL PROTECTED]> added the comment:

Thanks for the reminder. This is now fixed in r66439 and r66440, as well
as 2.6rc1 (although I haven't actually tested it, due to lack of access
to an AMD64 system right now - please report whether it works).

--
nosy: +loewis
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3857] ImportError: No module named test.test_support

2008-09-13 Thread Winfried Plappert

New submission from Winfried Plappert <[EMAIL PROTECTED]>:

The following 2 line program fails under Python 2.6rc1: 
Python 2.6b3 (r26b3:66303, Sep  8 2008, 13:45:13) [MSC v.1500 32 bit
(Intel)] on win32

as downloaded today (2008-09-13):

# start program ---
import urllib
fh = urllib.urlopen('http://bugs.python.org/')
# end program ---

with the messages:
Traceback (most recent call last):
  File "bug.py", line 2, in 
fh = urllib.urlopen('http://bugs.python.org/')
  File "d:\Python26\lib\urllib.py", line 87, in urlopen
return opener.open(url)
  File "d:\Python26\lib\urllib.py", line 203, in open
return getattr(self, name)(url)
  File "d:\Python26\lib\urllib.py", line 285, in open_http
import httplib
  File "d:\Python26\lib\httplib.py", line 72, in 
from test.test_support import catch_warning
ImportError: No module named test.test_support

The program works fine on Python 2.5

--
components: Library (Lib)
messages: 73169
nosy: wplappert
severity: normal
status: open
title: ImportError: No module named test.test_support
type: crash
versions: Python 2.6

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3833] python-2.6b3.msi and python-2.6b3.amd64.msi can't both be installed on one machine

2008-09-13 Thread Jimmy Retzlaff

Jimmy Retzlaff <[EMAIL PROTECTED]> added the comment:

Works great on 2.6rc1. Thanks!

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3857] ImportError: No module named test.test_support

2008-09-13 Thread Winfried Plappert

Winfried Plappert <[EMAIL PROTECTED]> added the comment:

OK, by now I know exactly what the problem is: The Windows installer
allows you the option of DESELECTING the "Test Suite". Initially I
deselected the Test Suite because I thought I do not need it. But this
is wrong. urllib loads test.test_support. 

In my opinion you must not be able to deselect a feature if this feature
is needed for the proper running of Python.

PS.: Forget all the bits about "Python 2.6b3 (r26b3:66303, Sep  8 2008,
13:45:13) [MSC v.1500 32 bit (Intel)] on win32": I just was too fast. I
have verified the bug now with proper 2.6rc1: Python 2.6rc1
(r26rc1:66438, Sep 13 2008, 09:20:38) [MSC v.1500 32 bit (Intel)].

Thanks a lot for the wonderful programming language Python!!

--
components: +Windows -Library (Lib)

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3321] _multiprocessing.Connection() doesn't check handle

2008-09-13 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment:

Note that Windows does not crash in such cases:

>>> import socket, _multiprocessing
>>> obj = _multiprocessing.Connection(44977608)
>>> obj.poll()
IOError: [Errno 10038] An operation was attempted on something that is
not a socket

>>> s = socket.socket()
>>> obj = _multiprocessing.Connection(s.fileno())
>>> obj.poll()
False
>>> s.close()
>>> obj.poll()
IOError: [Errno 10038] An operation was attempted on something that is
not a socket


So some "#ifndef MS_WINDOWS" should be enough...

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3857] ImportError: No module named test.test_support

2008-09-13 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment:

I just installed python 2.6rc1, and I don't get the error at all.
are you sure that you did not install a 2.6b3 afterwards?

The content of your file d:\Python26\lib\httplib.py does not match with
mine, suggest a version mismatch.

--
nosy: +amaury.forgeotdarc

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3845] memory access before short string when checking suffix

2008-09-13 Thread Ralph Corderoy

Changes by Ralph Corderoy <[EMAIL PROTECTED]>:


--
nosy: +ralph.corderoy

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3657] pickle can pickle the wrong function

2008-09-13 Thread Antoine Pitrou

Antoine Pitrou <[EMAIL PROTECTED]> added the comment:

> I expect this is why nobody has ever complained about it:  unless you're
> looking at the strings embedded in the pickle GLOBAL opcode, it's
> unlikely to have a visible consequence.

Well, it may have a consequence if pickle picks the "random" function
from a third-party module named "foobar", and you give the pickle to a
friend and expect it to work for him while he hasn't installed module
"foobar".

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3858] make install tries to install files outside of --prefix

2008-09-13 Thread John J Lee

New submission from John J Lee <[EMAIL PROTECTED]>:

./configure --prefix=DIR && make && make install tries to install files
in directories outside of DIR.  This happens both with trunk (r66412)
and 2.6b3.  This is a problem for users of GNU stow, for example.  I
know that certainly this worked fairly recently on the py3k branch, for
example, and I believe it also used to work on trunk.

I'm not certain whether in this particular run the --prefix directory
existed or not prior to make install, but I certainly get essentially
the same failure regardless of whether that directory exists.

~/src/Python-2.6b3$ ./configure  --prefix=/home/john/stow/python26b3
...
~/src/Python-2.6b3$ make
...
~/src/Python-2.6b3$ make install
/usr/bin/install -c python-config
/home/john/stow/python26b3/bin/python2.6-config
rm python-config
./python -E ./setup.py install \
--prefix=/home/john/stow/python26b3 \
--install-scripts=/home/john/stow/python26b3/bin \

--install-platlib=/home/john/stow/python26b3/lib/python2.6/lib-dynload \
--root=/
running install
running build
running build_ext
INFO: Can't locate Tcl/Tk libs and/or headers

Failed to find the necessary bits to build these modules:
_bsddb _tkinter   bsddb185
dbmgdbm   sunaudiodev 
To find the necessary bits, look in setup.py in detect_modules() for the
module's name.

running build_scripts
running install_lib
copying build/lib.linux-i686-2.6/_random.so ->
/home/john/lib/python2.6/site-packages
error: could not delete
'/home/john/lib/python2.6/site-packages/_random.so': Permission denied
make: *** [sharedinstall] Error 1

--
messages: 73175
nosy: jjlee
severity: normal
status: open
title: make install tries to install files outside of --prefix

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3766] socket.socket.recv broken (unbearably slow)

2008-09-13 Thread Antoine Pitrou

Antoine Pitrou <[EMAIL PROTECTED]> added the comment:

> Yes, obviously. Although adding it to the client socket did make no
> difference after I had already done so for the server. Still
> communication is too slow by orders of magnitude. (Sorry for pointing
> this out again)

Well, if this precise use case is really important for you, I suggest
using Wireshark (or any other packet analyzer) to see what happens in
terms of latency between packets over the wire.

Something else: try replacing "localhost" with "127.0.0.1", perhaps your
DNS resolution eats a lot of time.

> I would greatly appreciate any help on the subject. How do *BSD
> sockets differ from Linux sockets and what do I do to make things
> faster.

I don't know, but I suspect the difference is more in the TCP stack
implementation than in the sockets layer.

In any case, I'm gonna close this bug, as this is very likely not a
Python problem. Please ask further questions on comp.lang.python, lots
of people there may help you :)

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3766] socket.socket.recv broken (unbearably slow)

2008-09-13 Thread Antoine Pitrou

Changes by Antoine Pitrou <[EMAIL PROTECTED]>:


--
resolution:  -> invalid
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3858] make install tries to install files outside of --prefix

2008-09-13 Thread Antoine Pitrou

Changes by Antoine Pitrou <[EMAIL PROTECTED]>:


--
components: +Installation
priority:  -> critical
type:  -> behavior
versions: +Python 2.6

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3850] find_recursion_limit.py is broken

2008-09-13 Thread Antoine Pitrou

Antoine Pitrou <[EMAIL PROTECTED]> added the comment:

> On my Macbook, it segfaults; perhaps that docstring applied only 
> to MacOS 9?

Well, I just tried under Windows and the interpreter neither segfaults
nor prints a MemoryError, it aborts silently. I guess the comment is
either out of date or too optimistic about a supposedly deterministic
behaviour of C stack overflows on those platforms.

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3321] _multiprocessing.Connection() doesn't check handle

2008-09-13 Thread Hirokazu Yamamoto

Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment:

I thought socket handle on BeOS is not file descripter neighter. (I'm
not sure BeOS is still supported or not)

>Another solution would be to reuse code from Modules/selectmodule.c.

You mean this code?

if (v < 0 || v >= FD_SETSIZE) {
PyErr_SetString(PyExc_ValueError,
"filedescriptor out of range in select()");
goto finally;
}

Cygwin's thread is somewhat troublesome, so I'm not sure I can test this
issue on cygwin but, (I'm now building python --with-threads) if clash
happens in conn_poll(_multiprocessing/connection.h)'s FD_SET, I think
this kind of check is needed... (At least safer)

--
keywords:  -needs review
nosy: +ocean-city

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3321] _multiprocessing.Connection() doesn't check handle

2008-09-13 Thread Hirokazu Yamamoto

Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>:


--
keywords: +needs review

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3853] Windows SQLite DLL should be built with multithreading enabled

2008-09-13 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment:

It seems that it is already the case. On Windows, a one-big-source-file
version of sqlite is used, fetched from
http://svn.python.org/projects/external/sqlite-3.5.9 
(see Tools/buildbot/external-common.bat)

and in this file, SQLITE_THREADSAFE is always set to 1, unless you
explicitely compile with "THREADSAFE=0".

--
nosy: +amaury.forgeotdarc

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3856] IDLE fails on startup on Mac 10.5 for 2.6b3 and 3.0b3

2008-09-13 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

This bug was fixed after b3 was released (r65971). You should retry it
using python 2.6rc1 or update your sources for py3k.

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

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3851] IDLE: Pressing "Home" on Windows places cursor before ">>>" instead of after. Solution offered.

2008-09-13 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

Did you mean "(event.state & 10) != 0" instead of "(event.state & 1) !=
0" ? Otherwise it won't work when event.state is 8.

I'm attaching a patch that does the same thing that is done on py3k
branch and python-trunk.

--
keywords: +patch
nosy: +gpolo
Added file: http://bugs.python.org/file11483/issue_3851.diff

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3859] test_sys.Sizeof fails on win64

2008-09-13 Thread Amaury Forgeot d'Arc

New submission from Amaury Forgeot d'Arc <[EMAIL PROTECTED]>:

the "AMD64 W2k8 3.0" buildbot always fail test_sys:

...
check(range(66000), size(h + '3l'))
...
AssertionError: wrong size for : got 56, expected 48

The previous line of the test is:
check(range(1), size(h + '3P'))
(win64 is the only platform where 'P' has a different size than 'l')
Why are there two versions of the structure? There is only one range 
object.

I suggest to replace the failing line with:
check(range(66000), size(h + '3P'))
to properly reflect the three PyObject* of the structure.

--
components: Tests
keywords: needs review
messages: 73181
nosy: amaury.forgeotdarc
priority: critical
severity: normal
status: open
title: test_sys.Sizeof fails on win64
versions: Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3698] incompatible arguments in warning formatting for idle

2008-09-13 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

Duplicate of issue3391

--
nosy: +gpolo
resolution:  -> duplicate
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3825] Major reworking of Python 2.5.2 re module

2008-09-13 Thread Antoine Pitrou

Antoine Pitrou <[EMAIL PROTECTED]> added the comment:

By the way, the patch must be pretty incomplete, since there are almost
no changes to _sre.c. Am I missing something?

___
Python tracker <[EMAIL PROTECTED]>

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



[issue2636] Regexp 2.6 (modifications to current re 2.2.2)

2008-09-13 Thread Antoine Pitrou

Antoine Pitrou <[EMAIL PROTECTED]> added the comment:

See also #3825.

___
Python tracker <[EMAIL PROTECTED]>

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



[issue1482122] Shift+Backspace exhibits odd behavior

2008-09-13 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

I've just found some discussion about the problem here:

http://groups.google.com/group/comp.lang.tcl/browse_thread/thread/577df9cfa39e6688/49484ac512f13693?lnk=gst&q=shift+backspace#49484ac512f13693

Hope this is enough to close this issue, as it is not a tkinter neither
idle issue.

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3318] Documentation: timeit: "lower bound" should read "upper bound"

2008-09-13 Thread unutbu

unutbu <[EMAIL PROTECTED]> added the comment:

Georg, please forgive me. I thought a sample size of 3 was much too small to 
make a claim about the typical case, but it appears after doing a computer 
experiment that I was wrong:

#!/usr/bin/env python
from __future__ import division
import timeit
import random

repeat=100
num=100

def test_func():
l=1
for idx in range(1):
l=l*idx

timer=timeit.Timer('test_func()','from __main__ import test_func')

data=timer.repeat(repeat=repeat,number=num)

def test_timer():
sample=random.sample(data,3)
minval=min(sample)
onerun=random.choice(data)
return 1 if minval

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



[issue3638] tkinter.mainloop() is meanling less and crash: remove it

2008-09-13 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

Looks fine to me. 
But I can't see the reason to keep this as a module function in python
2.6 so I would remove it there too.

--
nosy: +gpolo

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3638] tkinter.mainloop() is meaningless and crash: remove it

2008-09-13 Thread Guilherme Polo

Changes by Guilherme Polo <[EMAIL PROTECTED]>:


--
title: tkinter.mainloop() is meanling less and crash: remove it -> 
tkinter.mainloop() is meaningless and crash: remove it

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3825] Major reworking of Python 2.5.2 re module

2008-09-13 Thread Matthew Barnett

Changes by Matthew Barnett <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file11451/regex_2.5.2.diff

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3825] Major reworking of Python 2.5.2 re module

2008-09-13 Thread Matthew Barnett

Matthew Barnett <[EMAIL PROTECTED]> added the comment:

Corrected the diff file, again. :-(

The atomic groups and possessive quantifiers are as described at
http://www.regular-expressions.info.

Added file: http://bugs.python.org/file11484/regex_2.5.2.diff

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3825] Major reworking of Python 2.5.2 re module

2008-09-13 Thread Benjamin Peterson

Changes by Benjamin Peterson <[EMAIL PROTECTED]>:


--
nosy:  -benjamin.peterson

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3825] Major reworking of Python 2.5.2 re module

2008-09-13 Thread Fredrik Lundh

Fredrik Lundh <[EMAIL PROTECTED]> added the comment:

A bit more information on the changes to the core engine that are
responsible for the 2x speedup (on what?) would be nice to have, I think
(especially since you seem to have removed the KMP prefix scanner).

(Isn't there a RE benchmark suite somewhere under tests?)

--
nosy: +effbot

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3321] _multiprocessing.Connection() doesn't check handle

2008-09-13 Thread Hirokazu Yamamoto

Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment:

I've implemented "another solution". test_open() in
test_multithreading.patch won't pass though It'll raise error in
conn.poll() not in constructor.

$ ./dummy.exe b.py
Traceback (most recent call last):
  File "b.py", line 6, in 
conn.poll()
IOError: [Errno 9] Bad file descriptor

test_operations() will pass.

Added file: http://bugs.python.org/file11485/another_solution.patch

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3857] ImportError: No module named test.test_support

2008-09-13 Thread Winfried Plappert

Winfried Plappert <[EMAIL PROTECTED]> added the comment:

Please close this issue. Between 2.6b3 and 2.6rc1 Lib/httplib.py has
been changed. Sorry about the confusion!

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3857] ImportError: No module named test.test_support

2008-09-13 Thread Benjamin Peterson

Changes by Benjamin Peterson <[EMAIL PROTECTED]>:


--
resolution:  -> out of date
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3859] test_sys.Sizeof fails on win64

2008-09-13 Thread Benjamin Peterson

Changes by Benjamin Peterson <[EMAIL PROTECTED]>:


--
assignee:  -> schuppenies
nosy: +schuppenies

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3860] GzipFile and BZ2File should support context manager protocol

2008-09-13 Thread Hagen Fürstenau

New submission from Hagen Fürstenau <[EMAIL PROTECTED]>:

When you've become used to writing

with open("xzy", "w") as f: 

it's strange when it doesn't work for gzip.open or bz2.BZ2File.
Or is there a reason for them not being context managers?

--
components: Library (Lib)
messages: 73194
nosy: hagen
severity: normal
status: open
title: GzipFile and BZ2File should support context manager protocol
type: feature request
versions: Python 2.6, Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3860] GzipFile and BZ2File should support context manager protocol

2008-09-13 Thread Benjamin Peterson

Changes by Benjamin Peterson <[EMAIL PROTECTED]>:


--
priority:  -> normal
versions: +Python 2.7, Python 3.1 -Python 2.6, Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3617] Add MS EULA to the list of third-party licenses in the Windows installer

2008-09-13 Thread Martin v. Löwis

Martin v. Löwis <[EMAIL PROTECTED]> added the comment:

Van, your recommendation is much appreciated. I'll add your text to the
LICENSE file of the next release candidates.

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3850] find_recursion_limit.py is broken

2008-09-13 Thread Antoine Pitrou

Antoine Pitrou <[EMAIL PROTECTED]> added the comment:

Bug fixed and module comments updated in r66457.

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

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3531] file read preallocs 'size' bytes which can cause memory problems

2008-09-13 Thread Antoine Pitrou

Changes by Antoine Pitrou <[EMAIL PROTECTED]>:


--
resolution:  -> rejected
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3617] Add MS EULA to the list of third-party licenses in the Windows installer

2008-09-13 Thread Neil Hodgson

Neil Hodgson <[EMAIL PROTECTED]> added the comment:

The recommended addition includes the 'excluded license' section which 
appears unnecessary as Python does not distribute any source code 
redistributables, only the .DLL file which is a binary executable. 
Including this is likely to confuse those who wish to use the GPL when 
distributing projects which include Python since the license is trying 
to limit their redistributing something they will not be able to find 
and so remove from Python.

--
nosy: +nyamatongwe

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3617] Add MS EULA to the list of third-party licenses in the Windows installer

2008-09-13 Thread Van Lindberg

Van Lindberg <[EMAIL PROTECTED]> added the comment:

Neil, you are right. I was thinking about linking to the binary dll
(which some people think might impose licensing restrictions under some
circumstances), but the text does refer to the source code.

As Python does not distribute any source code from Microsoft, it is
better to remove the last restriction identified by Neil from the
recommended text (and fix the grammar accordingly).

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3843] hexadecimal, not decimal

2008-09-13 Thread maix

maix <[EMAIL PROTECTED]> added the comment:

I'll just reuse that since it's such a little thing (complain if that's
not okay then I won't do again :) ):

On http://docs.python.org/dev/whatsnew/2.6.html , it says
> The bsddb module also has a new maintainer, Jes|uacute|s Cea
Should be a ú I think :)

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3858] make install tries to install files outside of --prefix

2008-09-13 Thread John J Lee

John J Lee <[EMAIL PROTECTED]> added the comment:

OK, this was because I had a .pydistutils.cfg file containing the
following (ironically, put there following somebody's recipe for
installing setuptools packages using stow):

[install]
install_lib=~/lib/python$py_version_short/site-packages
install_scripts=~/bin
 
[easy_install]
site_dirs=~/lib/python$py_version_short/site-packages

Removing that file, make install no longer tries to install files
outside of the directory passed to --prefix

So this bug is not valid, and I don't think there's any regression.

There's probably another bug about making it awkward to invent a
consistent way of installing Python software using tools like stow, but
I'm not sure whether that bug lies with Python or with setuptools, or both.

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3843] hexadecimal, not decimal

2008-09-13 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

No problem! Fixed in r66458.

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3858] make install tries to install files outside of --prefix

2008-09-13 Thread Antoine Pitrou

Antoine Pitrou <[EMAIL PROTECTED]> added the comment:

OK, thanks for the report anyway :)

--
nosy: +pitrou
resolution:  -> invalid
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3861] distutils CCompiler._compile doesn't require lang keyword argument

2008-09-13 Thread Mike Auty

New submission from Mike Auty <[EMAIL PROTECTED]>:

I'm testing out Python-2.6b3 and attempted to build wxpython-2.8.8.1. 
It creates a subclassed CCompiler (MyUnixCCompiler), which overrides the
_compile function, with the following signature:

_compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts)

This is the same function signature found in distutils/ccompiler.py
(line 705).  However, it gets called further up in
distutils/ccompiler.py (at line 699) with a lang keyword argument. 
Since **kwargs or similar isn't included in the signature, it raises an
exception.

The best solution seems like removing the lang=lang keyword argument on
line 669, but it's not clear why this was added or what consumers use
this new addition.  Changing the signature would be an interface break
and require old code to be updated, but might allow for a **kwargs entry
that would allow for future additions.

Please let me know if you need any further information...  5:)

--
components: Distutils
messages: 73203
nosy: [EMAIL PROTECTED]
severity: normal
status: open
title: distutils CCompiler._compile doesn't require lang keyword argument
type: behavior
versions: Python 2.6

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3862] test_array fails on FreeBSD7 amd64

2008-09-13 Thread Reed O'Brien

New submission from Reed O'Brien <[EMAIL PROTECTED]>:

or in FreeBSD?

2.6rc1 and 3.0b3 both fail test_array on FreeBSD7 amd64

test_array passes in 2.5.2 on the same machine but fails test_list the
same as test_array...

*** Signal 9

--
components: Tests
messages: 73204
nosy: robrien
severity: normal
status: open
title: test_array fails on FreeBSD7 amd64
type: crash
versions: Python 2.5, Python 2.6, Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3859] test_sys.Sizeof fails on win64

2008-09-13 Thread Robert Schuppenies

Robert Schuppenies <[EMAIL PROTECTED]> added the comment:

You are right, it should be '3P'. When merging to py3k I changed the
previous line, but not the one causing trouble.

--
keywords: +patch
Added file: http://bugs.python.org/file11486/test_sys.patch

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3617] Add MS EULA to the list of third-party licenses in the Windows installer

2008-09-13 Thread Barry A. Warsaw

Changes by Barry A. Warsaw <[EMAIL PROTECTED]>:


--
priority: normal -> release blocker

___
Python tracker <[EMAIL PROTECTED]>

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