[issue13889] str(float) and round(float) issues with FPU precision

2012-02-05 Thread Samuel Iseli

Samuel Iseli  added the comment:

I can run the tests on 32bit. Would be nice if somebody else could do this on 
64bit (my VS2008 machine is currently on 32bit-Windows).

--

___
Python tracker 

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



[issue13703] Hash collision security issue

2012-02-05 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

IIUC, Win9x and NT4 are not supported anymore in any of the target releases of 
the patch, so calling CryptGenRandom should be fine.

In a security fix release, we shouldn't change the linkage procedures, so I 
recommend that the LoadLibrary dance remains.

--

___
Python tracker 

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



[issue13947] gdbm reorganize() leaves hanging file descriptor

2012-02-05 Thread Jack Miller

Jack Miller  added the comment:

I am using gdbm 1.10, the latest available.

pacman says:
core/gdbm 1.10-1 [installed]
GNU database library

Which also contains the file (libgdbm.so.4) that Python's gdbm.so is linked to 
(just in case there was some version trickery going on here).

I guess it's possible this is Arch brokenness, but the only patch applied to 
the 1.10 code in the PKGBUILD is malloc -> calloc for a known bug.

--

___
Python tracker 

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



[issue13947] gdbm reorganize() leaves hanging file descriptor

2012-02-05 Thread Jesús Cea Avión

Jesús Cea Avión  added the comment:

Can't reproduce either in Ubuntu 10.04, 64 bits, with GDBM 1.8.3.

Closing bug.

Reporter, please indicate your GDBM version. Can you possibly upgrade it?.

--
stage:  -> committed/rejected

___
Python tracker 

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



[issue13947] gdbm reorganize() leaves hanging file descriptor

2012-02-05 Thread Jesús Cea Avión

Jesús Cea Avión  added the comment:

I can not reproduce the issue with GDBM 1.9.1, neither GDBM 1.8.3, neither GDBM 
1.10, under Solaris.

I don't see the file descriptor leak either.

According to 
http://sunsite.ualberta.ca/Documentation/Gnu/gdbm-1.8.0/html_node/gdbm_10.html, 
all file descriptor management is done inside GDBM.

What GDBM are you using?. Could you possibly upgrade?. Beware, 1.8 and 1.9/1.10 
fileformats are *NOT* compatible.

--
nosy: +jcea
resolution:  -> works for me
status: open -> closed

___
Python tracker 

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



[issue13947] gdbm reorganize() leaves hanging file descriptor

2012-02-05 Thread Jack Miller

New submission from Jack Miller :

I've discovered that using either 2.7.2 or 3.2.2 (from Arch) reorganizing gdbm 
databases leave hanging file descriptors that will cause EAGAIN errors trying 
to reopen it until the process is killed. For example:

Python 2.7.2 (default, Jan 31 2012, 13:19:49) 
[GCC 4.6.2 20120120 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gdbm
>>> o = gdbm.open("test27", "c")
>>> o.reorganize()
>>> o.close()
>>> o = gdbm.open("test27", "w")
Traceback (most recent call last):
  File "", line 1, in 
gdbm.error: (11, 'Resource temporarily unavailable')
>>>

By using lsof you can see that after reorganize() test27 has two open file 
descriptors, and after close() one is still open with no (obvious) way to close 
it. This happens with freshly created and populated databases and regardless of 
open mode flags.

I also tested this on 3.2.2 with dbm.gnu and got identical behavior.

--
messages: 152719
nosy: themoken
priority: normal
severity: normal
status: open
title: gdbm reorganize() leaves hanging file descriptor
versions: 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



[issue13370] test_ctypes fails on osx 10.7

2012-02-05 Thread Meador Inge

Meador Inge  added the comment:

> Since the first argument is a 'signed char', that should be 'movsbq'.

Hmmm, on second thought I am not 100% sure about that exact statement, but I 
still think this is most likely a clang bug having something to do with sign 
extension.

--

___
Python tracker 

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



[issue13370] test_ctypes fails on osx 10.7

2012-02-05 Thread Meador Inge

Meador Inge  added the comment:

So I have debugged the first failure and it has to do with the sign extending 
of 'signed char' parameters.  The first test case basically does this:

   _dll = CDLL(_ctypes_test.__file__)
   _dll.tf_b.restype = c_byte
   _dll.tf_b.argtypes = (c_byte,)
   _dll.tf_b(-126)

where 'tf_b' is defined in C code like:

   signed char tf_b(signed char c) { return c/3; }

Clang with -O3 generates code for 'tf_b' like:

0x00010ed0 :push   %rbp
0x00010ed1 :mov%rsp,%rbp
0x00010ed4 :movslq %edi,%rax
0x00010ed7 :imul   $0x5556,%rax,%rax
0x00010ede :   mov%rax,%rcx
0x00010ee1 :   shr$0x3f,%rcx
0x00010ee5 :   shr$0x20,%rax
0x00010ee9 :   add%ecx,%eax
0x00010eeb :   movsbl %al,%eax
0x00010eee :   pop%rbp
0x00010eef :   retq   

See how 'movslq' is used to sign extend the first argument?  Since the first 
argument is a 'signed char', that should be 'movsbq'.  I am pretty sure this is 
a clang bug.

I am going to see if this is fixed in later versions of clang.  I will also 
search the clang tracker to see if this has been reported.

--

___
Python tracker 

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



[issue10881] test_site and macframework builds fails

2012-02-05 Thread Ned Deily

Ned Deily  added the comment:

P.S. I forgot to mention that one of the 2.7 test_site failures was due to the 
PYTHONUSERBASE env variable having no effect with OS X framework builds.  That 
had been fixed in 3.x; it's now back ported.

--

___
Python tracker 

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



[issue13943] distutils’ build_py fails when package string is unicode

2012-02-05 Thread Patrick Andrew

Patrick Andrew  added the comment:

>From py-logilab-common 0.57.1 port for FreeBSD. No patches applied:


package init file './test/__init__.py' not found (or not a regular file)
Traceback (most recent call last):
  File "setup.py", line 170, in 
install()
  File "setup.py", line 166, in install
**kwargs
  File "/usr/local/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
  File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
  File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
  File "/usr/local/lib/python2.7/distutils/command/build.py", line 127, in run
self.run_command(cmd_name)
  File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
  File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
  File "/usr/local/lib/python2.7/distutils/command/build_py.py", line 93, in run
self.build_packages()
  File "/usr/local/lib/python2.7/distutils/command/build_py.py", line 372, in 
build_packages
self.build_module(module, module_file, package)
  File "/usr/local/lib/python2.7/distutils/command/build_py.py", line 333, in 
build_module
"'package' must be a string (dot-separated), list, or tuple")
TypeError: 'package' must be a string (dot-separated), list, or tuple
*** Error code 1

Stop in /usr/src/ports/devel/py-logilab-common.


This package's setup.py is auto-generating the packages list with the current 
working directory.


def get_packages(directory, prefix):
"""return a list of subpackages for the given directory"""
result = []
for package in os.listdir(directory):
absfile = join(directory, package)
if isdir(absfile):
if exists(join(absfile, '__init__.py')) or \
   package in ('test', 'tests'):
if prefix:
result.append('%s.%s' % (prefix, package))
else:
result.append(package)
result += get_packages(absfile, result[-1])
return result

...

packages = [modname] + get_packages(os.getcwd(), modname)

kwargs['packages'] = packages

setup(...
**kwargs)

where modname is imported from __pkginfo__.py:
distname = 'logilab-common'
modname = 'common'


What's interesting is there is no explicit unicode string definition within 
this package list gerneration, yet the final packages list looks like:

['logilab.common', u'logilab.common.test', u'logilab.common.test.data', 
u'logilab.common.test.data.find_test', u'logilab.common.ureports']

--

___
Python tracker 

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



[issue13370] test_ctypes fails on osx 10.7

2012-02-05 Thread Ezra Berch

Ezra Berch  added the comment:

The reason for this issue appears to be a bug in the clang optimizer. This is 
why it only shows up with debug disabled. When I compile with -O0 instead of 
-O3, the test passes.

This issue from the clang tracker may be the same issue:
http://llvm.org/bugs/show_bug.cgi?id=9524

--
nosy: +ezberch

___
Python tracker 

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



[issue13590] exension module builds fail with python.org OS X installers on OS X 10.7 and 10.6 with Xcode 4.2

2012-02-05 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +benjamin.peterson, georg.brandl
priority: normal -> release blocker
title: Prebuilt python-2.7.2 binaries for macosx can not compile c extensions 
-> exension module builds fail with python.org OS X installers on OS X 10.7 and 
10.6 with Xcode 4.2
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



[issue10881] test_site and macframework builds fails

2012-02-05 Thread Ned Deily

Ned Deily  added the comment:

Thanks, Vinay, for your analysis.  I adapted it for the applied fix.  For 2.7, 
there were two additional test_site failures that are fixed by back porting 
minor fixes to site.py and sysconfig.py from 3.x.  Applied in 2.7 (for 2.7.3), 
3.2 (for 3.2.3), and default (for 3.3).

--
resolution:  -> fixed
stage: needs patch -> 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



[issue10881] test_site and macframework builds fails

2012-02-05 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 82c4f094f811 by Ned Deily in branch '2.7':
Issue #10881: Fix test_site failures with OS X framework builds.
http://hg.python.org/cpython/rev/82c4f094f811

New changeset 013cba2eb008 by Ned Deily in branch '3.2':
Issue #10881: Fix test_site failure with OS X framework builds.
http://hg.python.org/cpython/rev/013cba2eb008

New changeset c88606bd5287 by Ned Deily in branch 'default':
Issue #10881: merge
http://hg.python.org/cpython/rev/c88606bd5287

--
nosy: +python-dev

___
Python tracker 

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



[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-02-05 Thread Helder Magalhães

Helder Magalhães  added the comment:

@Brian: glad to know about it. It will surely help, as many Windows users 
aren't much comfortable with the console already, and even less comfortable for 
tweaking the system at this level (apart from permission issues, etc.). ;-)

@Martin: you're right, sorry. I'd swear I several versions selected and only a 
couple missing, but probably I was tricked by a related/duplicate issue. Better 
read the manual next time... :-)

--

___
Python tracker 

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



[issue9750] sqlite3 iterdump fails on column with reserved name

2012-02-05 Thread Marko Kohtala

Changes by Marko Kohtala :


Removed file: http://bugs.python.org/file18720/sqlite3bug.py

___
Python tracker 

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



[issue9750] sqlite3 iterdump fails on column with reserved name

2012-02-05 Thread Marko Kohtala

Changes by Marko Kohtala :


Removed file: http://bugs.python.org/file18725/sqlite3bug2.py

___
Python tracker 

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



[issue9750] sqlite3 iterdump fails on column with reserved name

2012-02-05 Thread Marko Kohtala

Changes by Marko Kohtala :


Removed file: http://bugs.python.org/file18726/sqlite3dump.patch

___
Python tracker 

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



[issue9750] sqlite3 iterdump fails on column with reserved name

2012-02-05 Thread Marko Kohtala

Marko Kohtala  added the comment:

Here is finally an update to my patch modified according to comments received. 
It should apply on 2.7 and 3.3 branches.

--
Added file: http://bugs.python.org/file24429/sqlite3dump.patch

___
Python tracker 

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



[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-02-05 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

Helder: please don't change tracker settings unless you know what they are for. 
Python 2.6 and 3.1 can't possibly see any change here since they are in 
security fix mode, and can't see any fixes affecting this issue. Likewise, 2.7 
and 3.2 will only see bug fixes. As the lack of supporting changes to Path 
isn't a bug (but possibly a missing feature), these versions can't see the bug, 
either. Putting 3.4 and 3.3 into an issue is just nonsense at this point: if 
the issue gets resolved for 3.3 before 3.4 is released, it will never be an 
issue for 3.4.

--
versions:  -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.4

___
Python tracker 

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



[issue964437] idle help is modal

2012-02-05 Thread Roger Serwy

Roger Serwy  added the comment:

I pulled the latest repo with the patch for 2.7. It works.

--

___
Python tracker 

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



[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-02-05 Thread Brian Curtin

Brian Curtin  added the comment:

FWIW I have an installer built which optionally adds to the path. It's not 
complete - still needs some GUI work to hook it all up, but I'll be proposing 
it shortly.

--

___
Python tracker 

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



[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-02-05 Thread Helder Magalhães

Helder Magalhães  added the comment:

See tightly related ActivePython issue [1] regarding the way directories are 
added to the PATH environment variable.

Also, here's qooxdoo (a well-known JavaScript framework) giving out 
instructions [2] on how to use the official python distribution due to the 
missing path and file association treatment (and also redirecting the 
preference to ActivePython for that).

(Setting to all versions as I believe this isn't addressed in any previous or 
current release.)

[1] http://bugs.activestate.com/show_bug.cgi?id=92615
[2] 
http://manual.qooxdoo.org/current/pages/getting_started/troubleshooting.html#windows

--
nosy: +helder-magalhaes
versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.4

___
Python tracker 

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



[issue964437] idle help is modal

2012-02-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I was sure I had reverted, but did again, redownloaded, applied, and tested, 
and all well, so committed and pushed. 2.7 required hand-patching of ', modal' 
for chunk 5 due to 3rd argument being 'textFile.read()' instead of 'contents'. 
I presume I got it right, though could not test.

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



[issue964437] idle help is modal

2012-02-05 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 5452c881bd2d by Terry Jan Reedy in branch '2.7':
Issue 964437 Make IDLE help window non-modal.
http://hg.python.org/cpython/rev/5452c881bd2d

New changeset a949956a80cc by Terry Jan Reedy in branch '3.2':
Issue 964437 Make IDLE help window non-modal.
http://hg.python.org/cpython/rev/a949956a80cc

New changeset 2b841adbae81 by Terry Jan Reedy in branch 'default':
Merge with 3.2 #964437
http://hg.python.org/cpython/rev/2b841adbae81

--
nosy: +python-dev

___
Python tracker 

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



[issue10482] subprocess and deadlock avoidance

2012-02-05 Thread Jon Brandvein

Changes by Jon Brandvein :


--
nosy: +brandj

___
Python tracker 

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



[issue13946] readline completer could return an iterable

2012-02-05 Thread Nicolas

New submission from Nicolas :

The function set by readline.set_completer must return one completion per call. 
 This should be great if we can return an iterable, because with current 
implementation I have to write a wrapper:

cache = None
def completer(text, state):
  if cache:
if len(cache) > 0:
  return cache.pop(0)
else:
  cache = None
  return None
  res = completer_returning_iterable(text)
  if isinstance(res, str) or res == None:
return res
  cache = res
  return completer(text, state)
readline.set_completer(completer)

And completer_returning_list, the true completer, returns a pythonic iterable 
for all possible completion.

--
components: Library (Lib)
messages: 152703
nosy: nicolas_49
priority: normal
severity: normal
status: open
title: readline completer could return an iterable
type: enhancement
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



[issue4709] Mingw-w64 and python on windows x64

2012-02-05 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

John: in the current versions of the toolchain, Python's configure fails for 
me. I follow steps 1..3 of "Steps to date". Then running ./configure fails 
saying that it does not work. I then tried alternatively these three approaches:

1. set PATH to include /mingw/mingw/bin
2. set CC to /mingw/mingw/bin/gcc.exe
3. set CC to /c/mingw/mingw/bin/gcc.exe

Even though I can run gcc -v just fine, configure fails with

configure:3593: checking whether the C compiler works
configure:3615: /mingw/mingw/bin/gccconftest.c  >&5
gcc.exe: error: CreateProcess: No such file or directory^
configure:3619: $? = 1
configure:3657: result: no

So apparently, mingw has some problem mapping the file name back to a Win32 
path.

--

___
Python tracker 

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



[issue13933] IDLE:not able to complete the hashlib module

2012-02-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

6.11 Import statement says " __all__; if defined, it must be a sequence of 
strings which are names defined or imported by that module."

I am tempted to open an issue to change 'sequence' to 'list', or even 'sorted 
sequence', but that is difficult to enforce.

--

___
Python tracker 

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



[issue13933] IDLE:not able to complete the hashlib module

2012-02-05 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 2b93ee675ec4 by Terry Jan Reedy in branch '2.7':
#13933 refine patch using 'new' builtin
http://hg.python.org/cpython/rev/2b93ee675ec4

New changeset d8f988b0c959 by Terry Jan Reedy in branch '3.2':
#13933 refine patch using 'new' builtin
http://hg.python.org/cpython/rev/d8f988b0c959

New changeset 60beb14636b7 by Terry Jan Reedy in branch 'default':
Merge with 3.2
http://hg.python.org/cpython/rev/60beb14636b7

--

___
Python tracker 

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



[issue13370] test_ctypes fails on osx 10.7

2012-02-05 Thread Meador Inge

Meador Inge  added the comment:

I can reproduce it without --with-pydebug.  Thanks.  I will investigate.

--

___
Python tracker 

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



[issue8184] multiprocessing.managers will not fail if listening ocket already in use

2012-02-05 Thread Charles-François Natali

Charles-François Natali  added the comment:

> I think you read it wrong.

Duh, I managed to misread both the comment and the code :-)

What my subconscious refused to admit is the fact that on Windows, SO_REUSEADDR 
allows you to bind to any port - even though the other application didn't set 
SO_REUSEADDR on its socket - which is a security nightmare.

Anyway, in that case, my last patch should be correct (tested on one of the 
Win7 buildbots).

--
keywords: +needs review

___
Python tracker 

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



[issue8184] multiprocessing.managers will not fail if listening ocket already in use

2012-02-05 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> Actually, it seems that even though the documentation doesn't mention
> sockets in TIME_WAIT state, SO_REUSEADDR is actually required on
> Windows:
> http://twistedmatrix.com/trac/ticket/1151#comment:18

According to that message, we would only need (or desire)
SO_EXCLUSIVEADDRUSE.

Note however what the MSDN doc says: “Conversely, a socket with the
SO_EXCLUSIVEADDRUSE set cannot necessarily be reused immediately after
socket closure. For example, if a listening socket with
SO_EXCLUSIVEADDRUSE set accepts a connection and is then subsequently
closed, another socket (also with SO_EXCLUSIVEADDRUSE) cannot bind to
the same port as the first socket until the original connection becomes
inactive.”

... and goes on to discuss the virtues of shutdown() etc.

So I still think we need no option at all under Windows, and
SO_EXCLUSIVEADDR actually prevents the behaviour we are trying to avoid.

> So the proper solution is the one adopted by support.bind_port(),
> SO_REUSEADDR + SO_EXCLUSIVEADDRUSE.

I think you read it wrong. bind_port() only uses SO_EXCLUSIVEADDRUSE and
forbids SO_REUSEADDR.
Not surprising considering the commentor above, Trent, is the same that
wrote the bind_port() code :)

--

___
Python tracker 

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



[issue8184] multiprocessing.managers will not fail if listening ocket already in use

2012-02-05 Thread Charles-François Natali

Charles-François Natali  added the comment:

> However, let me point out the following sentence:
> “Ports without SO_EXCLUSIVEADDRUSE set may be reused as soon as the socket on 
> which bind was previously called is closed.”
>
> ...which seems to suggest we shouldn't use SO_REUSEADDR under Windows, since 
> Windows sockets appear to have the Unix SO_REUSEADDR semantics by default.

Actually, it seems that even though the documentation doesn't mention
sockets in TIME_WAIT state, SO_REUSEADDR is actually required on
Windows:
http://twistedmatrix.com/trac/ticket/1151#comment:18

So the proper solution is the one adopted by support.bind_port(),
SO_REUSEADDR + SO_EXCLUSIVEADDRUSE.

Since Windows semantics is different (I'd rather say broken) and
SO_REUSEADDR is currently mis-used throughout the stdlib, what do you
think of adding a set_reuse() method to socket that would do the right
thing?

--

___
Python tracker 

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



[issue10284] NNTP should accept bytestrings for username and password

2012-02-05 Thread Hynek Schlawack

Changes by Hynek Schlawack :


--
nosy: +hynek

___
Python tracker 

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



[issue964437] idle help is modal

2012-02-05 Thread Roger Serwy

Roger Serwy  added the comment:

Those four lines are present just in case self.root is not initialized. 
Even if you short-circuit the behavior and set parent=self.top, the patch still 
works, only that closing the calling EditorWindow instance also closes the help 
dialog. 

I tested the patch against 3.3a0 on Ubuntu and 3.2.2 on Vista and it does 
attach to root, not self.top. 

It sounds like remnants of "_singledialog" are present in EditorWindow.py. Did 
you back out of the previous patch before applying help_nonmodal_revision.patch?

--

___
Python tracker 

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



[issue4709] Mingw-w64 and python on windows x64

2012-02-05 Thread John Pye

John Pye  added the comment:

Hi Martin

I have documented a build process for a Python package on MinGW-w64, including 
a requirement that this patch be applied. You might want to revisit it, given 
that your attempt to reproduce this bug earlier was unsuccessful.

http://ascend4.org/Building_ASCEND_for_64-bit_Windows

Please let me know if you're looking at it and if there's anything that needs 
to be clarified.

Cheers
JP

--
nosy: +jdpipe

___
Python tracker 

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



[issue1975] signals not always delivered to main thread, since other threads have the signal unmasked

2012-02-05 Thread Charles-François Natali

Charles-François Natali  added the comment:

Closing (see http://bugs.python.org/msg149904 and 
http://bugs.python.org/msg149909).

--
assignee: docs@python -> 
resolution:  -> rejected
stage: patch review -> committed/rejected
status: open -> closed
versions:  -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



[issue12410] Create a new helper function that enable to test that an operation don't hang more than a given timeout.

2012-02-05 Thread Charles-François Natali

Charles-François Natali  added the comment:

Closing, since it's hard to write correctly, and apparently not that useful.

--
resolution:  -> rejected
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



[issue13734] Add a generic directory walker method to avoid symlink attacks

2012-02-05 Thread Charles-François Natali

Charles-François Natali  added the comment:

Committed, thanks for the comments.

Note to myself (and others that might be interested in the O(1)) version):
we can't simply call openat(dirfd, "..", O_RDONLY) to re-open the current 
directory's file descriptor after having walked a into one of its 
subdirectories because if this subdirectory is actually a link, we'll open the 
parent directory of the target directory, instead of the current (toppath) 
directory. OTOH, if the user passes followlinks=True, then we don't have to 
bother with openat() and friends in which case we don't have to bother passing 
FDs between calls to fwalk().

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



[issue13370] test_ctypes fails on osx 10.7

2012-02-05 Thread Ned Deily

Ned Deily  added the comment:

It looks like the test failures do not show up with debug enabled 
(--with-pydebug).  I'm able to reproduce them with:

./configure MACOSX_DEPLOYMENT_TARGET=10.7 CC=clang

--
nosy: +ned.deily

___
Python tracker 

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



[issue10487] http.server doesn't process Status header from CGI scripts

2012-02-05 Thread Ross Lagerwall

Changes by Ross Lagerwall :


--
nosy: +rosslagerwall

___
Python tracker 

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



[issue10482] subprocess and deadlock avoidance

2012-02-05 Thread Ross Lagerwall

Changes by Ross Lagerwall :


--
nosy: +rosslagerwall

___
Python tracker 

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



[issue13734] Add a generic directory walker method to avoid symlink attacks

2012-02-05 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 773a97b3927d by Charles-François Natali in branch 'default':
Issue #13734: Add os.fwalk(), a directory walking function yielding file
http://hg.python.org/cpython/rev/773a97b3927d

--
nosy: +python-dev

___
Python tracker 

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



[issue13921] sqlite3: OptimizedUnicode obsolete in Py3k

2012-02-05 Thread Petri Lehtinen

Petri Lehtinen  added the comment:

Éric Araujo wrote:
> I’m not sure the doc note is useful, but didn’t code search to
> confirm it.

Yeah. Perhaps it would be better as a comment in the code.

> Also, 3.2 may be out of bounds for this cleanup (I don’t know the
> rules for what can be committed in what branches these days).

My intention was to apply it to 3.3 only.

--

___
Python tracker 

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



[issue1040439] Missing documentation on how to link with libpython

2012-02-05 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 79e8de78abd0 by Éric Araujo in branch '3.2':
Markup improvements for the embedding CPython doc patch from #1040439
http://hg.python.org/cpython/rev/79e8de78abd0

New changeset 1cb9b8126534 by Éric Araujo in branch 'default':
Merge edits from 3.2 (#13716, #1040439, #2945, #13770, #6715)
http://hg.python.org/cpython/rev/1cb9b8126534

--

___
Python tracker 

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



[issue13716] distutils doc contains lots of XXX

2012-02-05 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 3d25869fce0c by Éric Araujo in branch '3.2':
Hide or remove user-visible XXX notes from distutils doc (#13716).
http://hg.python.org/cpython/rev/3d25869fce0c

New changeset 1cb9b8126534 by Éric Araujo in branch 'default':
Merge edits from 3.2 (#13716, #1040439, #2945, #13770, #6715)
http://hg.python.org/cpython/rev/1cb9b8126534

--
nosy: +python-dev

___
Python tracker 

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



[issue2945] bdist_rpm does not list dist files (should effect upload)

2012-02-05 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 26aea1825418 by Éric Araujo in branch '3.2':
Stop ignoring RPMs in distutils' upload command (#2945).
http://hg.python.org/cpython/rev/26aea1825418

New changeset 1cb9b8126534 by Éric Araujo in branch 'default':
Merge edits from 3.2 (#13716, #1040439, #2945, #13770, #6715)
http://hg.python.org/cpython/rev/1cb9b8126534

--
nosy: +python-dev

___
Python tracker 

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



[issue6715] xz compressor support

2012-02-05 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 11bd2d32b4e8 by Éric Araujo in branch '3.2':
Improve interlinking of archiving/compression modules docs.
http://hg.python.org/cpython/rev/11bd2d32b4e8

New changeset 1cb9b8126534 by Éric Araujo in branch 'default':
Merge edits from 3.2 (#13716, #1040439, #2945, #13770, #6715)
http://hg.python.org/cpython/rev/1cb9b8126534

--

___
Python tracker 

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



[issue13770] python3 & json: add ensure_ascii documentation

2012-02-05 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 33d6da1b1c71 by Éric Araujo in branch '3.2':
Document json.dump ensure_ascii parameter (#13770)
http://hg.python.org/cpython/rev/33d6da1b1c71

New changeset 1cb9b8126534 by Éric Araujo in branch 'default':
Merge edits from 3.2 (#13716, #1040439, #2945, #13770, #6715)
http://hg.python.org/cpython/rev/1cb9b8126534

--
nosy: +python-dev

___
Python tracker 

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



[issue13839] -m pstats should combine all the profiles given as arguments

2012-02-05 Thread Éric Araujo

Éric Araujo  added the comment:

This sounds like a reasonable request.  The patch needs tests, probably using 
test.script_helper.assert_python_ok.

--
nosy: +eric.araujo

___
Python tracker 

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



[issue1625] bz2.BZ2File doesn't support multiple streams

2012-02-05 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset ad20324229f4 by Nadeem Vawda in branch '2.7':
Clarify note in BZ2File docs about lack of multi-stream support (issue #1625).
http://hg.python.org/cpython/rev/ad20324229f4

New changeset e4c4595033ad by Nadeem Vawda in branch '3.2':
Clarify note in BZ2File docs about lack of multi-stream support (issue #1625).
http://hg.python.org/cpython/rev/e4c4595033ad

--

___
Python tracker 

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



[issue13843] Python doesn't compile anymore on our Solaris buildbot: undefined libintl_* symbols

2012-02-05 Thread STINNER Victor

STINNER Victor  added the comment:

> See also #6617 (which I marked as a duplicate).

This issue contains an interesting message (msg91758):
"I dont know Solaris, but googling for "libintl_textdomain solaris" shows 
that many other projects have the same issue.
The solution seems to set LDFLAGS=-lintl"

But I don't think that it would fix the issue because the failing command is 
"gcc -o python Modules/python.o libpython3.3dm.a -lintl ...".

--

___
Python tracker 

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



[issue13712] pysetup create should not convert package_data to extra_files

2012-02-05 Thread Éric Araujo

Changes by Éric Araujo :


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



[issue11805] package_data only allows one glob per-package

2012-02-05 Thread Éric Araujo

Éric Araujo  added the comment:

Thanks for the help Erik.

--
resolution:  -> fixed
stage: needs patch -> 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



[issue11805] package_data only allows one glob per-package

2012-02-05 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 83a0985c7aad by Éric Araujo in branch 'default':
Allow multiple values for package_data in setup.cfg (#11805).
http://hg.python.org/distutils2/rev/83a0985c7aad

New changeset ea717d8e71d0 by Éric Araujo in branch 'python3':
Merge fixes for #13901, #11805, #13712 and other improvements
http://hg.python.org/distutils2/rev/ea717d8e71d0

--

___
Python tracker 

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



[issue13901] test_get_outputs (test_distutils) failure with --enable-shared on Mac OS X

2012-02-05 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset e6a28ae0dfd6 by Éric Araujo in branch 'default':
Port OS X --enable-shared fix from packaging (#13901; untested)
http://hg.python.org/distutils2/rev/e6a28ae0dfd6

New changeset ea717d8e71d0 by Éric Araujo in branch 'python3':
Merge fixes for #13901, #11805, #13712 and other improvements
http://hg.python.org/distutils2/rev/ea717d8e71d0

--

___
Python tracker 

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



[issue13712] pysetup create should not convert package_data to extra_files

2012-02-05 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 730c2e4aaf9c by Éric Araujo in branch 'default':
Stop converting package_data to extra_files in pysetup create (#13712).
http://hg.python.org/distutils2/rev/730c2e4aaf9c

New changeset ea717d8e71d0 by Éric Araujo in branch 'python3':
Merge fixes for #13901, #11805, #13712 and other improvements
http://hg.python.org/distutils2/rev/ea717d8e71d0

--

___
Python tracker 

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



[issue13893] Make CGIHTTPServer capable of redirects (and status other than 200)

2012-02-05 Thread Éric Araujo

Changes by Éric Araujo :


--
stage: test needed -> committed/rejected
status: open -> closed
superseder:  -> http.server doesn't process Status header from CGI scripts
versions:  -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 
3.4

___
Python tracker 

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



[issue11805] package_data only allows one glob per-package

2012-02-05 Thread Éric Araujo

Éric Araujo  added the comment:

> Note that my proposed syntax does not allow something equivalent to {'': 
> [etc.]} in
> distutils, i.e. package data for top-level modules.  I think this is okay: 
> modules should
> not install data in their installation dir.  I don’t think it was widely used

I tested: This construct was allowed but did not actually cause any file to be 
installed (i.e. no crash, no-op), so we’re not removing any functionality here.

--

___
Python tracker 

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



[issue1625] bz2.BZ2File doesn't support multiple streams

2012-02-05 Thread Éric Araujo

Éric Araujo  added the comment:

Just a thought: maybe the doc note should mention that bz2file is a backport of 
3.3’s improved class, so that people know that 1) it’s well-supported code 2) a 
future Python version will remove the need for the external dependency.

--

___
Python tracker 

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



[issue13933] IDLE:not able to complete the hashlib module

2012-02-05 Thread Éric Araujo

Éric Araujo  added the comment:

BTW I wonder if setting __all__ to something but a list is valid.  I think I 
ran into a similar bug once and fixing __all__ fixed it.  The IDLE robustness 
fix is probably a good thing, but maybe we should also check the stdlib’s 
__all__s and the docs.

--
nosy: +eric.araujo

___
Python tracker 

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



[issue7559] TestLoader.loadTestsFromName swallows import errors

2012-02-05 Thread Éric Araujo

Changes by Éric Araujo :


--
versions: +Python 3.3 -Python 2.6, Python 3.1

___
Python tracker 

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



[issue13773] Support sqlite3 uri filenames

2012-02-05 Thread Éric Araujo

Éric Araujo  added the comment:

> I've added an updated patch which adds a link. I've also changed the 
> exception when URIs
> are not supported to sqlite3.NotSupportedError.
Sounds good.  Note to the person who will commit: :const:`True` should be 
marked up as ``True.``

> I prefer anonymity. :)
OK.  I’m still not sure if a contributor agreement is needed for this patch.

--

___
Python tracker 

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



[issue13943] distutils’ build_py fails when package string is unicode

2012-02-05 Thread Éric Araujo

Éric Araujo  added the comment:

Thanks for the report and patch.  I think distutils was not written with 
Unicode in mind, or maybe even before Python had a unicode type.  Technically, 
http://docs.python.org/distutils/setupscript#additional-meta-data says that 
unicode is not allowed for metadata fields (nothing is said about py_modules, 
packages and the like), but we’ve fixed a couple of bugs related to unicode, so 
I think this is a reasonable request.  Can you post (part of) your failing 
setup script?

--
assignee: tarek -> eric.araujo
keywords: +easy
title: Lib/distutils/command/build_py fails when package string is unicode -> 
distutils’ build_py fails when package string is unicode

___
Python tracker 

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



[issue13843] Python doesn't compile anymore on our Solaris buildbot: undefined libintl_* symbols

2012-02-05 Thread Stefan Krah

Stefan Krah  added the comment:

See also #6617 (which I marked as a duplicate).

--
nosy: +amaury.forgeotdarc, skrah, thoratsandip

___
Python tracker 

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



[issue6617] During compiling python 3.1 getting error Undefined symbol libintl_bind_textdomain_codeset

2012-02-05 Thread Stefan Krah

Stefan Krah  added the comment:

I'm tagging this as a duplicate of #13843, since I expect more activity
on the newer issue.

--
nosy: +skrah
resolution:  -> duplicate
stage:  -> committed/rejected
status: open -> closed
superseder:  -> Python doesn't compile anymore on our Solaris buildbot: 
undefined libintl_* symbols

___
Python tracker 

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



[issue13771] HTTPSConnection __init__ super implementation causes recursion error

2012-02-05 Thread Éric Araujo

Éric Araujo  added the comment:

super without arguments literally relies on a compiler hack.

--

___
Python tracker 

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



[issue13712] pysetup create should not convert package_data to extra_files

2012-02-05 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset edb6f9fb54ac by Éric Araujo in branch 'default':
Stop converting package_data to extra_files in pysetup create (#13712).
http://hg.python.org/cpython/rev/edb6f9fb54ac

--
nosy: +python-dev

___
Python tracker 

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



[issue11805] package_data only allows one glob per-package

2012-02-05 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 2c08bf9aca22 by Éric Araujo in branch 'default':
Allow multiple values for package_data in setup.cfg (#11805).
http://hg.python.org/cpython/rev/2c08bf9aca22

--
nosy: +python-dev

___
Python tracker 

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



[issue13945] Mistake in the text for PEP-383

2012-02-05 Thread Georg Brandl

Georg Brandl  added the comment:

Done in 5748c9cf7628.

--
nosy: +georg.brandl
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



[issue13944] HMAC object called hmac

2012-02-05 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 7c263bfc92f5 by Georg Brandl in branch '2.7':
Closes #13944: fix capitalization of class name.
http://hg.python.org/cpython/rev/7c263bfc92f5

New changeset cd748bab3cdd by Georg Brandl in branch '3.2':
Closes #13944: fix capitalization of class name.
http://hg.python.org/cpython/rev/cd748bab3cdd

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