[issue12999] _XOPEN_SOURCE usage on Solaris

2011-09-17 Thread Charles-François Natali

Changes by Charles-François Natali :


--
nosy: haypo, neologix
priority: normal
severity: normal
stage: needs patch
status: open
title: _XOPEN_SOURCE usage on Solaris
type: behavior
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



[issue12999] _XOPEN_SOURCE usage on Solaris

2011-09-17 Thread Charles-François Natali

New submission from Charles-François Natali :

While testing issue #12981, I stumbled on a problem on OpenIndiana buildbot:
"""
test test_multiprocessing crashed -- Traceback (most recent call last):
  File 
"/export/home/buildbot/64bits/custom.cea-indiana-amd64/build/Lib/test/regrtest.py",
 line 1133, in runtest_inner
the_package = __import__(abstest, globals(), locals(), [])
  File 
"/export/home/buildbot/64bits/custom.cea-indiana-amd64/build/Lib/test/test_multiprocessing.py",
 line 38, in 
from multiprocessing import util, reduction
  File 
"/export/home/buildbot/64bits/custom.cea-indiana-amd64/build/Lib/importlib/_bootstrap.py",
 line 437, in load_module
return self._load_module(fullname)
  File 
"/export/home/buildbot/64bits/custom.cea-indiana-amd64/build/Lib/importlib/_bootstrap.py",
 line 141, in decorated
return fxn(self, module, *args, **kwargs)
  File 
"/export/home/buildbot/64bits/custom.cea-indiana-amd64/build/Lib/importlib/_bootstrap.py",
 line 342, in _load_module
exec(code_object, module.__dict__)
  File 
"/export/home/buildbot/64bits/custom.cea-indiana-amd64/build/Lib/multiprocessing/reduction.py",
 line 57, in 
raise ImportError('pickling of connections not supported')
ImportError: pickling of connections not supported
"""

Which means that socket.CMSG_LEN isn't defined.
Now, you might wonder how this can work in the C version of 
multiprocessing.(sendfd|recvfd), which needs CMSG_LEN().
Here's how:
"""
#ifdef __sun
 /* The control message API is only available on Solaris  
if XPG 4.2 or later is requested. */  
 #define _XOPEN_SOURCE 500 
 #endif
"""

And indeed:
http://fxr.watson.org/fxr/source/common/sys/socket.h?v=OPENSOLARIS#L478
"""
#if defined(_XPG4_2)
/*
 * The cmsg headers (and macros dealing with them) were made available as
 * part of UNIX95 and hence need to be protected with a _XPG4_2 define.
 */
"""

The problem is that socketmodule uses pyconfig.h defines, and _XOPEN_SOURCE 
isn't defined on Solaris:
http://hg.python.org/cpython/rev/7c947768b435

(it was added explicitely to Modules/_multiprocessing/multiprocessing.h for 
sendmsg by http://hg.python.org/cpython/rev/419901e65dd2).
So, _XOPEN_SOURCE is needed on Solaris to build socket_sendmsg and friends.
I'm not sure about the best way to proceed, since Martin certainly had good 
reasons to remove _XOPEN_SOURCE definition entirely on Solaris.
Should we define it only at the top of socketmodule?

--
nosy: +loewis

___
Python tracker 

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



[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-17 Thread Charles-François Natali

Charles-François Natali  added the comment:

> Did you try it on Linux, FreeBSD and/or Windows?

It works fine on Linux, FreeBSD, OS X and Windows, but not on Solaris: see 
issue #12999.

--
dependencies: +_XOPEN_SOURCE usage on Solaris

___
Python tracker 

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



[issue12976] add support for MirBSD platform

2011-09-17 Thread Charles-François Natali

Charles-François Natali  added the comment:

Hello Benny,

> As requested, here is the full patch for MirBSD support. The diff was taken 
> against version 2.7.2. It is really quite easy, you just need to handle 
> MirBSD like OpenBSD.
> With this patch, I can successfully compile and run Python on MirBSD. Even 
> though it is a rather exotic platform, I encourage you to take these changes, 
> as they are quite minimal.

Indeed, it's quite short and manageable, but see
http://bugs.python.org/issue11937, especially Martin's and Terry's
comments:
"""
Guido established a policy a few years ago that we should rather not
incorporate support for every minority platform for which people
contribute patches. While I'd personally agree that an Interix port
would certainly be "fun", pragmatically, I'm -1 on having the code in
the code basis, and propose to close this issue as "won't fix".

We would certainly be happy to link to gentoo prefix from the "other
ports" page on python.org.
"""

and

"""
Markus, I agree with Martin that this patch would go against current
policy and should be closed. Rather than close it myself, I will try
to persuade you to do so.
[...]
"""

This patch is much simpler and cleaner though (OTOH, it's so simple it
shouldn't be too much work for MirBSD folks to keep this patch in
sync).

--

___
Python tracker 

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



[issue12998] Memory leak with CTypes Structure

2011-09-17 Thread Sebastian Wiesner

Sebastian Wiesner  added the comment:

Why should it?  After all, you're sort of abusing ctypes by repeatedly creating 
Struture types over and over again.  C structures that you might want to wrap 
with these types are fixed and known at the time of programming, so there is 
never a need to create the same Structure type twice.  Thus the set of 
Structure subclasses created during the live-time of a program is both, fixed 
and small, so there is no need to limit the cache size.

--
nosy: +lunar

___
Python tracker 

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



[issue12998] Memory leak with CTypes Structure

2011-09-17 Thread Stefan Krah

Stefan Krah  added the comment:

I can reproduce the leak with Python 2.5.4, but not with Python 2.6.5
or Python 3.2.

Python 2.5.4 is an ancient version. Please upgrade to Python 2.7
or Python 3.2. If the leak still exists, just respond to this issue
and it will be opened again automatically.

--
nosy: +skrah
resolution:  -> out of date
stage:  -> committed/rejected
status: open -> pending

___
Python tracker 

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



[issue11694] xdrlib raises ConversionError in inconsistent way

2011-09-17 Thread Filip Gruszczyński

Filip Gruszczyński  added the comment:

Patch with tests.

--
keywords: +patch
Added file: http://bugs.python.org/file23178/11694.patch

___
Python tracker 

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



[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-17 Thread Charles-François Natali

Charles-François Natali  added the comment:

Here's a patch taking into account the fact that
multiprocessing.reduction might not be available and importing it can
raise an ImportError (which is already the case with the C
implementation, but multiprocessing.reduction tests have been added
recently to test_multiprocessing), e.g. if the OS doesn't support FD
passing.
With this patch, the pure Python version can be applied, and passes on
Linux, FreeBSD, OS X, Windows and OpenSolaris (except that it's not
available on OpenSolaris until issue #12999 gets fixed).
I also slightly modified the struct format used in the pure Python
version to make sure the length is sent as a a native int ("@i")
instead of a standardized int ("=i"), which might break if sizeof(int)
!= 4 (not sure there are many ILP64 architectures out there, but you
never know...).

--
Added file: http://bugs.python.org/file23179/skip_reduction.diff
Added file: http://bugs.python.org/file23180/multiprocessing_fd-2.diff

___
Python tracker 

___diff -r c6d52971dd2a Lib/test/test_multiprocessing.py
--- a/Lib/test/test_multiprocessing.py  Thu Sep 15 18:18:51 2011 +0200
+++ b/Lib/test/test_multiprocessing.py  Sat Sep 17 10:54:10 2011 +0200
@@ -35,7 +35,13 @@
 import multiprocessing.heap
 import multiprocessing.pool
 
-from multiprocessing import util, reduction
+from multiprocessing import util
+
+try:
+from multiprocessing import reduction
+HAS_REDUCTION = True
+except ImportError:
+HAS_REDUCTION = False
 
 try:
 from multiprocessing.sharedctypes import Value, copy
@@ -1631,6 +1637,7 @@
 os.write(fd, data)
 os.close(fd)
 
+@unittest.skipUnless(HAS_REDUCTION, "test needs multiprocessing.reduction")
 def test_fd_transfer(self):
 if self.TYPE != 'processes':
 self.skipTest("only makes sense with processes")
@@ -1648,6 +1655,7 @@
 with open(test.support.TESTFN, "rb") as f:
 self.assertEqual(f.read(), b"foo")
 
+@unittest.skipUnless(HAS_REDUCTION, "test needs multiprocessing.reduction")
 @unittest.skipIf(sys.platform == "win32",
  "test semantics don't make sense on Windows")
 @unittest.skipIf(MAXFD <= 256,
@@ -1987,10 +1995,12 @@
 'multiprocessing', 'multiprocessing.connection',
 'multiprocessing.heap', 'multiprocessing.managers',
 'multiprocessing.pool', 'multiprocessing.process',
-'multiprocessing.reduction',
 'multiprocessing.synchronize', 'multiprocessing.util'
 ]
 
+if HAS_REDUCTION:
+modules.append('multiprocessing.reduction')
+
 if c_int is not None:
 # This module requires _ctypes
 modules.append('multiprocessing.sharedctypes')
diff -r c6d52971dd2a Lib/multiprocessing/reduction.py
--- a/Lib/multiprocessing/reduction.py  Thu Sep 15 18:18:51 2011 +0200
+++ b/Lib/multiprocessing/reduction.py  Fri Sep 16 19:44:51 2011 +0200
@@ -39,6 +39,7 @@
 import sys
 import socket
 import threading
+import struct
 
 import _multiprocessing
 from multiprocessing import current_process
@@ -51,7 +52,8 @@
 #
 #
 
-if not(sys.platform == 'win32' or hasattr(_multiprocessing, 'recvfd')):
+if not(sys.platform == 'win32' or (hasattr(socket, 'CMSG_LEN') and
+   hasattr(socket, 'SCM_RIGHTS'))):
 raise ImportError('pickling of connections not supported')
 
 #
@@ -77,10 +79,23 @@
 
 else:
 def send_handle(conn, handle, destination_pid):
-_multiprocessing.sendfd(conn.fileno(), handle)
+with socket.fromfd(conn.fileno(), socket.AF_UNIX, socket.SOCK_STREAM) 
as s:
+s.sendmsg([b'x'], [(socket.SOL_SOCKET, socket.SCM_RIGHTS,
+struct.pack("@i", handle))])
 
 def recv_handle(conn):
-return _multiprocessing.recvfd(conn.fileno())
+size = struct.calcsize("@i")
+with socket.fromfd(conn.fileno(), socket.AF_UNIX, socket.SOCK_STREAM) 
as s:
+msg, ancdata, flags, addr = s.recvmsg(1, socket.CMSG_SPACE(size))
+try:
+cmsg_level, cmsg_type, cmsg_data = ancdata[0]
+if (cmsg_level == socket.SOL_SOCKET and
+cmsg_type == socket.SCM_RIGHTS):
+return struct.unpack("@i", cmsg_data[:size])[0]
+except (ValueError, IndexError, struct.error):
+pass
+raise RuntimeError('Invalid data received')
+
 
 #
 # Support for a per-process server thread which caches pickled handles
diff -r c6d52971dd2a Modules/_multiprocessing/multiprocessing.c
--- a/Modules/_multiprocessing/multiprocessing.cThu Sep 15 18:18:51 
2011 +0200
+++ b/Modules/_multiprocessing/multiprocessing.cFri Sep 16 19:44:51 
2011 +0200
@@ -8,11 +8,6 @@
 
 #include "multiprocessing.h"
 
-#ifdef SCM_RIGHTS
-#define HAVE_FD_TRANSFER

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-17 Thread Charles-François Natali

Changes by Charles-François Natali :


Removed file: http://bugs.python.org/file23166/multiprocessing_fd-1.diff

___
Python tracker 

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



[issue13000] unhandled exception at install

2011-09-17 Thread jorge.seifert

New submission from jorge.seifert :

Unhandled exception just at when start to install on windows 2003

--
components: Installation
messages: 144182
nosy: jorge.seifert
priority: normal
severity: normal
status: open
title: unhandled exception at  install
type: crash
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



[issue13000] unhandled exception at install

2011-09-17 Thread Georg Brandl

Georg Brandl  added the comment:

Can you please give ANY information on what exactly you were installing, and 
what the exception was? Otherwise this report is useless.

--
nosy: +georg.brandl

___
Python tracker 

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



[issue12999] _XOPEN_SOURCE usage on Solaris

2011-09-17 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
nosy: +jcea

___
Python tracker 

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



[issue12999] _XOPEN_SOURCE usage on Solaris

2011-09-17 Thread Jesús Cea Avión

Jesús Cea Avión  added the comment:

See too http://bugs.python.org/issue6755#msg143798

--

___
Python tracker 

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



[issue12999] _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED usage on Solaris

2011-09-17 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
title: _XOPEN_SOURCE usage on Solaris -> _XOPEN_SOURCE and 
_XOPEN_SOURCE_EXTENDED usage on Solaris

___
Python tracker 

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



[issue12999] _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED usage on Solaris

2011-09-17 Thread Jesús Cea Avión

Jesús Cea Avión  added the comment:

Some rational in issue1759169.

--

___
Python tracker 

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



[issue13000] unhandled exception at install

2011-09-17 Thread jorge.seifert

jorge.seifert  added the comment:

The message I get after it is:

undandled win32 exception occurred in msiexec [2376]

I am tryin to install on windows server 2003

--

___
Python tracker 

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



[issue12967] AttributeError distutils\log.py

2011-09-17 Thread ben

ben  added the comment:

Hi Ned,
 
Not sure if I fully understand the IDLE issue, I'm still learning Python (abt. 
6 months). Nevertheless I've installed the distributes through the command line.
 
if you want to reassign this issue to IDLE, please do so.
 
Best regards,
 
Ben Thelen
 
 

From: Ned Deily 
To: thelen_...@yahoo.com
Sent: Saturday, 17 September 2011 4:43 AM
Subject: [issue12967] AttributeError distutils\log.py

Ned Deily  added the comment:

That won't work in IDLE because IDLE replaces the standard sys.stdout file 
object with a special proxy object to capture stdout across its processes and 
the proxy object does not currently support all of the attributes of a 
io.TextTIOWrapper object, like errors.



If that is the only problem, perhaps this issue should be reassigned to IDLE to 
support errors and any other relevant new attributes.

--
nosy: +ned.deily

___
Python tracker 

___

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

___
Python tracker 

___Hi Ned,
 
Not sure if I fully 
understand the IDLE issue, I'm still learning Python (abt. 6 months). 
Nevertheless I've installed the distributes through the command 
line.
 
if you want to reassign this 
issue to IDLE, please do so.
 
Best regards,
 
Ben Thelen
 
 



From: Ned 
Deily To: thelen_...@yahoo.comSent: Saturday, 17 September 2011 4:43 AMSubject: [issue12967] AttributeError 
distutils\log.pyNed Deily n...@acm.org> added the 
comment:That won't work in IDLE because IDLE replaces the standard 
sys.stdout file object with a special proxy object to capture stdout across its 
processes
 and the proxy object does not currently support all of the attributes of a 
io.TextTIOWrapper object, like errors.>>> 
sys.stdoutIf that 
is the only problem, perhaps this issue should be reassigned to IDLE to support 
errors and any other relevant new attributes.--nosy: 
+ned.deily___Python tracker 
rep...@bugs.python.org>http://bugs.python.org/issue12967>__
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13001] test_socket.testRecvmsgTrunc failure on FreeBSD 7.2 buildbot

2011-09-17 Thread Charles-François Natali

New submission from Charles-François Natali :

http://www.python.org/dev/buildbot/all/builders/x86 FreeBSD 7.2 
3.x/builds/2129/steps/test/logs/stdio

"""
==
FAIL: testRecvmsgTrunc (test.test_socket.RecvmsgUDPTest)
--
Traceback (most recent call last):
  File 
"/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/test_socket.py", 
line 1666, in testRecvmsgTrunc
self.checkFlags(flags, eor=False)
  File 
"/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/test_socket.py", 
line 1354, in checkFlags
self.assertEqual(flags & mask, checkset & mask)
AssertionError: 0 != 16

==
FAIL: testRecvmsgTrunc (test.test_socket.RecvmsgIntoUDPTest)
--
Traceback (most recent call last):
  File 
"/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/test_socket.py", 
line 1666, in testRecvmsgTrunc
self.checkFlags(flags, eor=False)
  File 
"/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/test_socket.py", 
line 1354, in checkFlags
self.assertEqual(flags & mask, checkset & mask)
AssertionError: 0 != 16
"""

This fails because MSG_TRUNC isn't always set in msg_flags when receiving a 
truncated datagram with recvmsg().
It's a known kernel bug 
(http://svnweb.freebsd.org/base?view=revision&revision=211030), fixed in 
FreeBSD 8 (and the test indeed passes on the FreeBSD 8 buildbot).

The patch attached skips the test on FreeBSD < 8 (and introduces 
@support.requires_freebsd_version).

--
components: Tests
files: freebsd_msgtrunc.diff
keywords: needs review, patch
messages: 144188
nosy: haypo, neologix
priority: normal
severity: normal
stage: patch review
status: open
title: test_socket.testRecvmsgTrunc failure on FreeBSD 7.2 buildbot
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file23182/freebsd_msgtrunc.diff

___
Python tracker 

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



[issue13002] peephole.c: unused parameter

2011-09-17 Thread Stefan Krah

New submission from Stefan Krah :

peephole.c: CONST_STACK_TOP(x) has an unused parameter.

--
components: Interpreter Core
files: peephole_unused_parameter.diff
keywords: patch
messages: 144189
nosy: skrah
priority: normal
severity: normal
stage: patch review
status: open
title: peephole.c: unused parameter
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file23183/peephole_unused_parameter.diff

___
Python tracker 

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



[issue12967] AttributeError distutils\log.py

2011-09-17 Thread Éric Araujo

Changes by Éric Araujo :


Removed file: http://bugs.python.org/file23136/log.py

___
Python tracker 

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



[issue12967] AttributeError distutils\log.py

2011-09-17 Thread Éric Araujo

Changes by Éric Araujo :


Removed file: http://bugs.python.org/file23181/unnamed

___
Python tracker 

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



[issue12967] AttributeError distutils\log.py

2011-09-17 Thread Éric Araujo

Changes by Éric Araujo :


Removed file: http://bugs.python.org/file23170/unnamed

___
Python tracker 

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



[issue12967] AttributeError distutils\log.py

2011-09-17 Thread Éric Araujo

Éric Araujo  added the comment:

> I'm not suggesting that python does not test the applications. just reporting
> what I experience.
I was joking :)  What I meant was: I can’t agree with the statement “it could 
be raised on any other usage as sys.stdout does not have an 'error' attribute” 
because we have tests and users that use distutils without seeing this error.

> What I did, I opened the setup file (in IDLE) from the distribute 0.6.21 and 
> run this.
setup.py is meant to be run from the command line only.  If you try to run it 
from IDLE, the behavior is undefined, so I’m inclined to close this bug as 
invalid.

(A note about this bug tracker: please do not send HTML email, it gets 
transformed into an unhelpful attachment, and also don’t include whole messages 
after your reply when you send email.  Thanks in advance!)

--

___
Python tracker 

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



[issue1222585] C++ compilation support for distutils

2011-09-17 Thread Éric Araujo

Éric Araujo  added the comment:

Well, there’s no rush, Python 3.3b1 is not next week.

I’m willing to apply the patch to packaging and distutils2 (in a week or two 
when I’ve finished a massive cleanup and caught up with packaging), but I’d 
like tests for detect_language, and if possible tests for compiling C++ 
extensions/libs too.

--
assignee: tarek -> eric.araujo
versions: +3rd party

___
Python tracker 

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



[issue12765] test_packaging failure under Snow Leopard

2011-09-17 Thread Éric Araujo

Éric Araujo  added the comment:

test_packaging now passes on the buildbot, thanks!  (The current failure is 
test_socket.)

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



[issue1170] shlex have problems with parsing unicode

2011-09-17 Thread Éric Araujo

Éric Araujo  added the comment:

Andrew: Ezio means http://docs.python.org/2.7/library/unicodedata

> For the purposes of patching shlex
Sorry, but we are not talking about patching shlex.

> I just posted here because this page currently gets the top hit
> when searching for "shlex unicode".
It’s okay.  A recipe on ActiveState and a “shlexu” module on PyPI would also be 
good things to have.

> If you think it's appropriate to repost my message for python version 3.4,
> let me know.
shlex supports Unicode in 3.x.  If there is a bug, can you please open another 
bug report?  This one is already too long, and I’d prefer to keep it focused on 
the need for a documentation patch.

--

___
Python tracker 

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



[issue12678] test_packaging and test_distutils failures under Windows

2011-09-17 Thread Éric Araujo

Éric Araujo  added the comment:

Distutils and packaging tests now pass on the three builbots.

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



[issue12785] list_distinfo_file is wrong

2011-09-17 Thread Éric Araujo

Changes by Éric Araujo :


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



[issue12955] urllib.request example should use "with ... as:"

2011-09-17 Thread Éric Araujo

Éric Araujo  added the comment:

[Terry]
> But when I add 'http:www.python.org' as an argument, I get
> urllib.error.URLError: 

Your URI lacks a host (netloc, in RFC parlance) component:
>>> urllib.parse.urlparse('http:python.org')
ParseResult(scheme='http', netloc='', path='python.org', params='', query='', 
fragment='')

--
nosy: +eric.araujo

___
Python tracker 

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



[issue12956] builds fail when installing to --prefix with space in path name

2011-09-17 Thread Éric Araujo

Éric Araujo  added the comment:

> While I'm sympathetic to supporting arbitrary path names, I'm not sure
> if it is worth the effort.

My sentiment too.  Supporting non-ASCII characters seems clearly important to 
me, as it’s a reasonable and common thing to run or install Python from a patch 
that may contain non-ASCII characters (a first name, “downloads” in French, 
etc.); supporting spaces is less important.

--
nosy: +eric.araujo

___
Python tracker 

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



[issue12964] Two improvements for the locale aliasing engine

2011-09-17 Thread Éric Araujo

Changes by Éric Araujo :


--
type: behavior -> feature request
versions: +Python 3.3 -Python 3.2

___
Python tracker 

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



[issue10740] sqlite3 module should allow DDL statements in transactions

2011-09-17 Thread Mark Bucciarelli

Mark Bucciarelli  added the comment:

Opened http://bugs.python.org/issue12997 in case there is a way to solve the 
foreign_key PRAGMA issue with a less disruptive fix.

--
nosy: +Mark.Bucciarelli

___
Python tracker 

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



[issue12982] .pyo file can't be imported unless -O is given

2011-09-17 Thread Éric Araujo

Éric Araujo  added the comment:

I would not suggest to rename a .pyo to .pyc, they have different promises (if 
I can even say that, as they’re implementation details).

--
nosy: +eric.araujo
stage:  -> needs patch
title: .pyo file cannot be imported -> .pyo file can't be imported unless -O is 
given
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



[issue12961] unlabelled balls in boxes

2011-09-17 Thread Ezio Melotti

Changes by Ezio Melotti :


Removed file: http://bugs.python.org/file23132/unnamed

___
Python tracker 

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



[issue12961] unlabelled balls in boxes

2011-09-17 Thread Ezio Melotti

Changes by Ezio Melotti :


Removed file: http://bugs.python.org/file23134/unnamed

___
Python tracker 

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



[issue12987] Demo/scripts/newslist.py has non-free licensing terms

2011-09-17 Thread Éric Araujo

Éric Araujo  added the comment:

It’s a problem for free software distribution, regardless of the commercial 
status, like the profiler used to be.  The Demo directory is gone in 3.2 and 
higher; I’m not sure any effort to fix this in 2.7 is worth it.

--
nosy: +eric.araujo
title: Demo/scripts/newslist.py has non-commercial license clause -> 
Demo/scripts/newslist.py has non-free licensing terms

___
Python tracker 

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



[issue13002] peephole.c: unused parameter

2011-09-17 Thread Meador Inge

Meador Inge  added the comment:

Looks like it was checked in that way 
(http://hg.python.org/cpython/rev/14205d0fee45).  Patch looks good to me.

--
nosy: +meadori

___
Python tracker 

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



[issue12931] xmlrpclib confuses unicode and string

2011-09-17 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti
versions:  -Python 2.6

___
Python tracker 

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



[issue1170] shlex have problems with parsing unicode

2011-09-17 Thread R. David Murray

R. David Murray  added the comment:

Ezio, I don't see any indication in this ticket that this bug was actually 
*fixed* in 3.x.  Unicode doesn't cause immediate errors in 3.x, but it isn't 
recognized as wordchars, etc.  Am I missing something?

--

___
Python tracker 

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



[issue1170] shlex have problems with parsing unicode

2011-09-17 Thread Ezio Melotti

Ezio Melotti  added the comment:

I haven't looked at the shlex code (yet), my comment was just about the idea of 
adding constants with chars that belong to different Unicode categories.

--

___
Python tracker 

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



[issue11935] MMDF/MBOX mailbox need utime

2011-09-17 Thread Steffen Daode Nurpmeso

Steffen Daode Nurpmeso  added the comment:

Let me close this!
I've just recently removed the real patch from my postman's "next"
branch, because even that real implementation doesn't work reliable.
I.e., please forget msg135791.  It was true, but on the long run
mutt(1) sometimes sees all, sometimes only some (really nuts), but
most of the time it simply does not see just any box with new mail.
That is, that "plugged-in filesystem" is simply handled as a pendant.

Remarks: because that stdlib MBOX whispered
  "Where Are Tho{u}, Brother"
to me all the {time}, i've done my own, also just recently:

== postman:
  - test: 321 messages (5083760 bytes) [action=hunky-dory]
  = Dispatched 321 tickets to 1 box.
  [69853 refs] real 0m35.538s user 0m6.760s sys 0m0.904s
..
  = Dispatched 1963 tickets to 1 box.
  [93552 refs] real 0m38.860s user 0m8.697s sys 0m0.985s
== stdlib:
  [83010 refs] real 1m3.862s user 0m10.151s sys 0m7.500s
  [93217 refs] real 7m24.958s user 2m0.174s sys 1m35.163s

Was worth it.
Have a good time!

--
status: open -> closed

___
Python tracker 

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



[issue11686] Update of some email/ __all__ lists

2011-09-17 Thread Steffen Daode Nurpmeso

Steffen Daode Nurpmeso  added the comment:

Closing this...

--
status: open -> closed

___
Python tracker 

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



[issue11780] email.encoders are broken

2011-09-17 Thread Steffen Daode Nurpmeso

Steffen Daode Nurpmeso  added the comment:

I think this is historic either?
As far as i remember you solved it as part of another issue...

--
status: open -> closed

___
Python tracker 

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



[issue11701] email.parser.BytesParser().parse() closes file argument

2011-09-17 Thread Steffen Daode Nurpmeso

Steffen Daode Nurpmeso  added the comment:

Right, and that is considered to be a non-issue due to
that close() is allowed multiple times without causing harm.

--
status: open -> closed

___
Python tracker 

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



[issue11466] getpass.getpass doesn't close tty file

2011-09-17 Thread Steffen Daode Nurpmeso

Changes by Steffen Daode Nurpmeso :


--
nosy:  -sdaoden

___
Python tracker 

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



[issue12737] str.title() is overzealous by upcasing combining marks inappropriately

2011-09-17 Thread Ezio Melotti

Ezio Melotti  added the comment:

I think string methods (and other parts of the stdlib) assume NFC and leave 
normalization to NFC up to the user.  Before fixing str.title() we should take 
a more general decision about handling strings that use other normalization 
forms.

--

___
Python tracker 

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



[issue13000] unhandled exception at install

2011-09-17 Thread Georg Brandl

Georg Brandl  added the comment:

And which version, exactly?  Which file, downloaded from where?

--

___
Python tracker 

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



[issue4153] Unicode HOWTO up to date?

2011-09-17 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ncoghlan

___
Python tracker 

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



[issue12508] Codecs Anomaly

2011-09-17 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +lemburg

___
Python tracker 

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



[issue12961] itertools: unlabelled balls in boxes

2011-09-17 Thread Georg Brandl

Changes by Georg Brandl :


--
title: unlabelled balls in boxes -> itertools: unlabelled balls in boxes

___
Python tracker 

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



[issue12987] Demo/scripts/newslist.py has non-free licensing terms

2011-09-17 Thread Georg Brandl

Georg Brandl  added the comment:

The only resonable fix to make would be removal from the distribution.

--
nosy: +georg.brandl

___
Python tracker 

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



[issue12943] tokenize: add python -m tokenize support back

2011-09-17 Thread Meador Inge

Meador Inge  added the comment:

v2 patch which addresses comments made by merwok via rietveld.

--
Added file: http://bugs.python.org/file23184/issue12943-2.patch

___
Python tracker 

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



[issue12943] tokenize: add python -m tokenize support back

2011-09-17 Thread Georg Brandl

Georg Brandl  added the comment:

Looks good to me. Did you get commit rights already?

--
nosy: +georg.brandl

___
Python tracker 

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



[issue12960] threading.Condition is not a class

2011-09-17 Thread Georg Brandl

Georg Brandl  added the comment:

I don't think this is important enough. It's now a class anyway in 3.3+.

--
nosy: +georg.brandl

___
Python tracker 

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



[issue12943] tokenize: add python -m tokenize support back

2011-09-17 Thread Meador Inge

Meador Inge  added the comment:

> Did you get commit rights already?

I have not.  I still need to submit a contributor agreement as well.  I
plan to fax that today.

--

___
Python tracker 

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



[issue12956] builds fail when installing to --prefix with space in path name

2011-09-17 Thread LMO

LMO  added the comment:

I don't see supporting spaces as being important, either.  Since the failure is 
not obviously related to the presence of spaces, I would like to see the 
limitation documented.

> 
> Éric Araujo  added the comment:
> 
>> While I'm sympathetic to supporting arbitrary path names, I'm not sure
>> if it is worth the effort.
> 
> My sentiment too.  Supporting non-ASCII characters seems clearly important to 
> me, as it’s a reasonable and common thing to run or install Python from a 
> patch that may contain non-ASCII characters (a first name, “downloads” in 
> French, etc.); supporting spaces is less important.
> 
> --
> nosy: +eric.araujo
> 
> ___
> Python tracker 
> 
> ___

--

___
Python tracker 

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



[issue12960] threading.Condition is not a class

2011-09-17 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

I recommend just closing this.

--
nosy: +rhettinger

___
Python tracker 

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



[issue12961] itertools: unlabelled balls in boxes

2011-09-17 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
priority: normal -> low

___
Python tracker 

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



[issue12977] socket.socket.setblocking does not raise exception if no data available

2011-09-17 Thread Georg Brandl

Georg Brandl  added the comment:

I think you're mistaking a closed connection with "no data available".

Small demo that this works as intended:

>>> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>>> s.connect(('localhost', 1234))
>>> s.recv(10)
^CTraceback (most recent call last):
  File "", line 1, in 
KeyboardInterrupt
>>> s.setblocking(False)
>>> s.recv(10)
Traceback (most recent call last):
  File "", line 1, in 
socket.error: [Errno 11] Resource temporarily unavailable

The corresponding server:

>>> x = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>>> x.bind(('', 1234))
>>> x.listen(1)
>>> x.accept()
(, ('127.0.0.1', 39146))

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



[issue12450] Use the Grisu algorithms to convert floats to strings

2011-09-17 Thread Florian Loitsch

Florian Loitsch  added the comment:

FYI: the double-conversion library at 
http://code.google.com/p/double-conversion already contains code for the 
fallback case. It would not be necessary to keep Python's existing code just 
for the 0.5%.
The library is now used by Firefox, Chrome, and Webkit, and should be well 
tested.
It's biggest deficiency (compared to Gay's dtoa.c) is its specialization to 
IEEE doubles. Floats or long doubles are not supported. If Python needs to 
support these types I recommend not to switch.

--
nosy: +Florian.Loitsch

___
Python tracker 

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



[issue11686] Update of some email/ __all__ lists

2011-09-17 Thread R. David Murray

R. David Murray  added the comment:

Why?  The bug hasn't been fixed yet.

--
assignee:  -> r.david.murray
stage:  -> patch review
status: closed -> open
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



[issue11780] email.encoders are broken

2011-09-17 Thread R. David Murray

R. David Murray  added the comment:

I may have, but I'd prefer to check before closing the issue.  (I'm deep in 
another project right now, but I'll review all these open bugs this fall some 
time).

--
status: closed -> open

___
Python tracker 

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



[issue12997] sqlite3: PRAGMA foreign_keys = ON doesn't work

2011-09-17 Thread poq

poq  added the comment:

Works for me?

$ python2.7 t.py
Traceback (most recent call last):
  File "t.py", line 13, in 
con.execute("insert into track (artist_id) values (1)")
sqlite3.IntegrityError: foreign key constraint failed
$ python3.2 t.py
Traceback (most recent call last):
  File "t.py", line 13, in 
con.execute("insert into track (artist_id) values (1)")
sqlite3.IntegrityError: foreign key constraint failed

--
nosy: +poq

___
Python tracker 

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



[issue12993] prepared statements in sqlite3 module

2011-09-17 Thread poq

poq  added the comment:

The sqlite3 module already uses prepared statements. Quoting from the 
documentation:

"The sqlite3 module internally uses a statement cache to avoid SQL parsing 
overhead. If you want to explicitly set the number of statements that are 
cached for the connection, you can set the cached_statements parameter. The 
currently implemented default is to cache 100 statements."

--
nosy: +poq

___
Python tracker 

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



[issue12997] sqlite3: PRAGMA foreign_keys = ON doesn't work

2011-09-17 Thread Mark Bucciarelli

Mark Bucciarelli  added the comment:

huh.  is it already on in your sqlite  install?

$ sqlite3
SQLite version 3.7.7.1 2011-06-28 17:39:05
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> pragma foreign_keys;
0
sqlite> 

is what i get (it's off).

--

___
Python tracker 

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



[issue13000] unhandled exception at install

2011-09-17 Thread jorge.seifert

jorge.seifert  added the comment:

Version 2,7,2
file python 2.7.2.msi
downloaded from this website

--

___
Python tracker 

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



[issue13000] unhandled exception at install

2011-09-17 Thread jorge.seifert

jorge.seifert  added the comment:

'msiexec.exe': Loaded 'C:\WINDOWS\system32\msiexec.exe', Cannot find or open 
the PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Cannot find or open the 
PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Cannot find or open 
the PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', Cannot find or open 
the PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', Cannot find or open the 
PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\secur32.dll', Cannot find or open 
the PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\user32.dll', Cannot find or open the 
PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', Cannot find or open the 
PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', Cannot find or open the 
PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', Cannot find or open the 
PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\msi.dll', Cannot find or open the 
PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\imm32.dll', Cannot find or open the 
PDB file
'msiexec.exe': Loaded 
'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.3790.4770_x-ww_05FDF087\comctl32.dll',
 Cannot find or open the PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', Cannot find or open 
the PDB file
'msiexec.exe': Loaded 'C:\Documents and Settings\All Users\Datos de 
programa\Real\RealPlayer\BrowserRecordPlugin\Chrome\Hook\rpchrome10browserrecordhelper.dll',
 Cannot find or open the PDB file
'msiexec.exe': Loaded 
'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.6161_x-ww_31a54e43\msvcr90.dll',
 Cannot find or open the PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', Cannot find or open 
the PDB file
'msiexec.exe': Loaded 
'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.6161_x-ww_31a54e43\msvcp90.dll',
 Cannot find or open the PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\msctf.dll', Cannot find or open the 
PDB file
'msiexec.exe': Loaded 'C:\Archivos de 
programa\ScanSoft\OmniPageSE4\OpHookSE4.dll', Cannot find or open the PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\version.dll', Cannot find or open 
the PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', Cannot find or open 
the PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\apphelp.dll', Cannot find or open 
the PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\msctfime.ime', Cannot find or open 
the PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll', Cannot find or open 
the PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\sfc.dll', Cannot find or open the 
PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\sfc_os.dll', Cannot find or open the 
PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\wintrust.dll', Cannot find or open 
the PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\crypt32.dll', Cannot find or open 
the PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\msasn1.dll', Cannot find or open the 
PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\imagehlp.dll', Cannot find or open 
the PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\netapi32.dll', Cannot find or open 
the PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\rsaenh.dll', Cannot find or open the 
PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\psapi.dll', Cannot find or open the 
PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\userenv.dll', Cannot find or open 
the PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\cryptnet.dll', Cannot find or open 
the PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\wldap32.dll', Cannot find or open 
the PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\sensapi.dll', Cannot find or open 
the PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\clbcatq.dll', Cannot find or open 
the PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\comres.dll', Cannot find or open the 
PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\xpsp2res.dll', Binary was not built 
with debug information.
'msiexec.exe': Loaded 'C:\WINDOWS\system32\mscoree.dll', Cannot find or open 
the PDB file
'msiexec.exe': Loaded 
'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll', Cannot find or 
open the PDB file
'msiexec.exe': Loaded 'C:\WINDOWS\system32\msihnd.dll', Cannot find or open the 
PDB file
Unhandled exception at 0x60d35efa in msiexec.exe: 0xC005: Access violation 
reading location 0x0020.
First-chance exception at 0x60d35efa in msiexec.exe: 0xC005: Access 
violation reading location 0x0020.
Unhandled exception at 0x60d35efa in msiexec.exe: 0xC005: Access violation 
reading location 0x0020.
First-chance exception at 0x60d35efa in msiexec.exe: 0xC005: Access 
violation reading location 0x0020.
The thread 'Win32 Thread' (0xa88) has exited with code 0 (0x0).
Unhandled exception at 0x60d35efa in msiexec.exe: 0xC005: Access violation 
r

[issue12997] sqlite3: PRAGMA foreign_keys = ON doesn't work

2011-09-17 Thread poq

poq  added the comment:

Nope.

$ sqlite3
SQLite version 3.7.4
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> pragma foreign_keys;
0
sqlite>

$ python
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53) 
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
>>> c = sqlite3.connect(':memory:')
>>> list(c.execute('pragma foreign_keys'))
[(0,)]
>>> list(c.execute('pragma foreign_keys = on'))
[]
>>> list(c.execute('pragma foreign_keys'))
[(1,)]

--

___
Python tracker 

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



[issue12961] itertools: unlabelled balls in boxes

2011-09-17 Thread Phillip Feldman

Phillip Feldman  added the comment:

"The itertools module should only have a few of the most generally useful, 
especially in combination with other tools."

Balls-in-boxes _is_ one of the most basic of the canonical combinatorial 
problems.  You can verify this by opening any text on combinatorics or 
combinatorial probability.

"An extensive combinatorics package would be a different project. (And I have 
done a bit of work in this direction.)"

It sounds as though your project is in its infancy, but I'd like to see what 
you've got if you are willing to share.

--

___
Python tracker 

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



[issue12972] Color prompt + readline

2011-09-17 Thread Damian

Damian  added the comment:

Retested with Python 3.1.1 and this issue doesn't manifest. This can be 
resolved - sorry about the noise. :)

--
nosy: +atagar

___
Python tracker 

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



[issue13003] Bug in equivalent code for itertools.izip_longest

2011-09-17 Thread Eli Bendersky

New submission from Eli Bendersky :

Regarding the sample code in: 
http://docs.python.org/library/itertools#itertools.izip_longest

If an IndexError is raised inside an iterator in the "equivalent" code
from the docs, the generator stops and the error is swallowed.

If an IndexError is raised inside an iterator in the
"izip_longest_next" code in CPython's "Modules/itertoolsmodule.c", the
generator stops and the error propagates.

---

Reported by Adam Forsyth on the docs mailing list. More details in this SO 
discussion: 
http://stackoverflow.com/questions/7392902/izip-longest-in-itertools-how-does-rasing-indexerror-inside-the-iterator-work

--
assignee: docs@python
components: Documentation
messages: 144228
nosy: docs@python, eli.bendersky
priority: normal
severity: normal
status: open
title: Bug in equivalent code for itertools.izip_longest
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



[issue13003] Bug in equivalent code for itertools.izip_longest

2011-09-17 Thread Georg Brandl

Georg Brandl  added the comment:

I had forwarded this to Raymond, and he replied:

The itertools module code is correct.
The "equivalent" is only approximately correct 
I don't consider it to be a bug -- it is an implementation detail in an 
illustration.

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



[issue13000] unhandled exception at install

2011-09-17 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks!

--
assignee:  -> brian.curtin
nosy: +brian.curtin, loewis

___
Python tracker 

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



[issue13003] Bug in equivalent code for itertools.izip_longest

2011-09-17 Thread Eli Bendersky

Eli Bendersky  added the comment:

What about at least documenting it? Since a real user ran into this and 
reported it as a problem, I think it would make sense to make the discrepancy 
explicit.

Alternatively a generalized note can be added to the documentation of itertools 
stating that the "equivalent" code samples are only approximate and differ in 
small details from the real implementations.

--

___
Python tracker 

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



[issue13003] Bug in equivalent code for itertools.izip_longest

2011-09-17 Thread Georg Brandl

Georg Brandl  added the comment:

Well, this is for Raymond to decide.

--
nosy: +rhettinger

___
Python tracker 

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