[issue12517] Large file support on Windows: sizeof(off_t) is 32 bits

2011-09-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset dc16b6ab8e71 by Ross Lagerwall in branch 'default': Issue #12517: Silence warning on windows buildbots (from 7fd80c61ddaa). http://hg.python.org/cpython/rev/dc16b6ab8e71 -- nosy: +python-dev ___ Python t

[issue13006] bug in core python variable binding

2011-09-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This is a bug in the script; the code is similar to the following:: >>> funclist = [] >>> global_list = [] >>> funclist.append(global_list) >>> global_list.append(1) >>> funclist.append(global_list) >>> print funclist [[1], [1]] i.e the sam

[issue13006] bug in core python variable binding

2011-09-18 Thread Stephen Vavasis
New submission from Stephen Vavasis : There seems to be a serious bug in how python 2.7.2 binds variables to values. In the attached function buildfunclist, you see that there is a variable called 'funclist' that is initialized to [], and then is modified only with 'append' calls. This means

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-09-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: My long-ago memory is that 'should not' is slightly looser in w3c parlance than 'must not'. However, it is a moot point if we decide to follow the 'should' in 3.3 for the default 'strict' mode, which both Ezio and I think we 'should' ;-). Our 'errors' parame

[issue10548] Error in setUp not reported as expectedFailure (unittest)

2011-09-18 Thread Michael Foord
Michael Foord added the comment: I think Twisted uses the tearDown to fail tests as well. As we have two use cases perhaps we should allow expectedFailure to work with failues in tearDown? (And if we do that it should cover setUp as well for symmetry or it becomes a morass of special cases.)

[issue10548] Error in setUp not reported as expectedFailure (unittest)

2011-09-18 Thread Nick Coghlan
Nick Coghlan added the comment: As another data point, this question came up again in the context of issue #12958. The new test_socket.ThreadableTest uses tearDown() to pick up and reraise any exception that occurred in the client thread. This meant that my initial attempts at flagging some

[issue12958] test_socket failures on Mac OS X

2011-09-18 Thread Nick Coghlan
Nick Coghlan added the comment: OK, I'll just deal with the problem directly in test_socket then. It looks like my latest attempt (suppressing unittest._ExpectedFailure in test_socket.ThreadableTest.clientRun) did the trick, so I'll push the updated tests some time this evening: http://www.py

[issue1294232] Error in metaclass search order

2011-09-18 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge stage: test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mailin

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-09-18 Thread Tom Christiansen
Tom Christiansen added the comment: "Terry J. Reedy" wrote on Thu, 08 Sep 2011 18:56:11 -: >On 9/8/2011 4:32 AM, Ezio Melotti wrote: >> So to summarize a bit, there are different possible level of strictness: >>1) all the possible encodable values, including the ones>10; >>

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

2011-09-18 Thread Charles-François Natali
Charles-François Natali added the comment: > I had a look at this patch, and the FD passing looked OK, except > that calculating the buffer size with CMSG_SPACE() may allow more > than one file descriptor to be received, with the extra one going > unnoticed - it should use CMSG_LEN() instead Th

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

2011-09-18 Thread Charles-François Natali
Changes by Charles-François Natali : Removed file: http://bugs.python.org/file23180/multiprocessing_fd-2.diff ___ Python tracker ___ ___ Pytho

[issue12976] add support for MirBSD platform

2011-09-18 Thread Martin v . Löwis
Martin v. Löwis added the comment: Ok, closing this as "won't fix", them. -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ _

[issue13001] test_socket.testRecvmsgTrunc failure on FreeBSD 7.2 buildbot

2011-09-18 Thread David Watson
Changes by David Watson : -- nosy: +baikie ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8623] Aliasing warnings in socketmodule.c

2011-09-18 Thread David Watson
Changes by David Watson : Added file: http://bugs.python.org/file23188/socket-aliasing-union-3.3.diff ___ Python tracker ___ ___ Python-bugs-li

[issue8623] Aliasing warnings in socketmodule.c

2011-09-18 Thread David Watson
Changes by David Watson : Added file: http://bugs.python.org/file23187/socket-aliasing-union-3.2.diff ___ Python tracker ___ ___ Python-bugs-li

[issue8623] Aliasing warnings in socketmodule.c

2011-09-18 Thread David Watson
David Watson added the comment: For reference, the warnings are partially explained here: http://gcc.gnu.org/onlinedocs/gcc-4.6.1/gcc/Optimize-Options.html#index-fstrict_002daliasing-825 http://gcc.gnu.org/onlinedocs/gcc-4.6.1/gcc/Warning-Options.html#index-Wstrict_002daliasing-337 I get thes

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

2011-09-18 Thread David Watson
David Watson added the comment: I had a look at this patch, and the FD passing looked OK, except that calculating the buffer size with CMSG_SPACE() may allow more than one file descriptor to be received, with the extra one going unnoticed - it should use CMSG_LEN() instead (the existing C implem

[issue13005] operator module docs include repeat

2011-09-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, sandro.tosi stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue13005] operator module docs include repeat

2011-09-18 Thread Luciano Ramalho
New submission from Luciano Ramalho : The operator module documentation for versions 3.2 and 3.3 includes the repeat function in a table "9.3.1. Mapping Operators to Functions" [1], but fails to mention that the repeat function is deprecated and mul should be used instead, as described in the

[issue12976] add support for MirBSD platform

2011-09-18 Thread Benny Siegert
Benny Siegert added the comment: I agree that the patch is quite small. I am regularly building new Python versions (using pkgsrc) so I can maintain the patch for future releases. -- ___ Python tracker __

[issue13000] unhandled exception at install

2011-09-18 Thread Martin v . Löwis
Martin v. Löwis added the comment: Can you please run msiexec /i python2.7.2.msi /l*v python.log and compress and attach the resulting python.log? I'm skeptical though that we will be able to do anything about this issue. -- ___ Python tracker

[issue12958] test_socket failures on Mac OS X

2011-09-18 Thread Michael Foord
Michael Foord added the comment: See issue 10548. There is some resistance to expectedFailure masking errors in setUp/tearDown as these aren't the place where you would normally expect the expected failure... -- ___ Python tracker

[issue13004] pprint: add option to truncate seqeunces

2011-09-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue13004] pprint: add option to truncate seqeunces

2011-09-18 Thread Terry J. Reedy
New submission from Terry J. Reedy : >From python-ideas thread "truncate sequences in pretty-print ?" On Sat, Sep 17, 2011 at 9:59 PM, Steven Samuel Cole > i use pprint quite a bit during development to give me quick insight > into what is going on inside my application. > however, when there's a

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

2011-09-18 Thread Mark Dickinson
Mark Dickinson added the comment: > It's biggest deficiency (compared to Gay's dtoa.c) is its specialization > to > IEEE doubles. We're only using the portion of Gay's code (with some significant modifications at this point) that applies to the IEEE 754 binary64 format, so I don't think this

[issue12972] Color prompt + readline

2011-09-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since 2.7 was released after 3.1, I will assumed any bugfix was applied there also until someone determines otherwise. Thanks for checking. -- resolution: -> out of date status: open -> closed ___ Python tracker <

[issue11320] Can't call Py_SetPath() on pointer returned by Py_GetPath()

2011-09-18 Thread Debao Zhang
Debao Zhang added the comment: Hello everyone, I have found the reason for the problem. >From the manual http://docs.python.org/py3k/c-api/init.html#Py_SetPath , we can see that: After we call Py_SetPath,both sys.prefix and sys.exec_prefix will be empty. However, sys.prefix will be used in

[issue12938] html.escape docstring does not mention single quotes (')

2011-09-18 Thread Senthil Kumaran
Senthil Kumaran added the comment: This is fixed in all revisions. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue1294232] Error in metaclass search order

2011-09-18 Thread Nick Coghlan
Nick Coghlan added the comment: Looking at Daniel's updated patch is still on my to-do list, but I won't object if anyone else wants to take this forward (it will be at least a few weeks before I get to it). -- ___ Python tracker

[issue12958] test_socket failures on Mac OS X

2011-09-18 Thread Nick Coghlan
Nick Coghlan added the comment: OK, I've now looked into *why* the socket tests are throwing errors in tearDown, and it has to do with the way the threaded client/server tests in test_socket are set up. Specifically, ThreadableTest uses tearDown to reraise any exception raised in the client

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

2011-09-18 Thread Charles-François Natali
Charles-François Natali added the comment: > "It works fine on Linux, FreeBSD, OS X and Windows, but not on Solaris: see > issue #12999." > > Oh, thank for testing before committing :) It's hard to debug multiprocessing. Yes. Especially when you stumble upon a kernel/libc bug 25% of the time..

[issue12996] multiprocessing.Connection endianness issue

2011-09-18 Thread Charles-François Natali
Charles-François Natali added the comment: > "Since the rewrite in pure Python of multiprocessing.Connection (issue > #11743), multiprocessing.Connection sends and receives the length of the data > (used as header) in host byte order." > > I don't think so, the C code uses also the host endian

[issue13001] test_socket.testRecvmsgTrunc failure on FreeBSD 7.2 buildbot

2011-09-18 Thread STINNER Victor
STINNER Victor added the comment: @requires_freebsd_version should be factorized with @requires_linux_version. Can we workaround FreeBSD (< 8) bug in C/Python? Or should we remove the function on FreeBSD < 8? -- ___ Python tracker

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

2011-09-18 Thread STINNER Victor
STINNER Victor added the comment: "It works fine on Linux, FreeBSD, OS X and Windows, but not on Solaris: see issue #12999." Oh, thank for testing before committing :) It's hard to debug multiprocessing. -- ___ Python tracker

[issue12996] multiprocessing.Connection endianness issue

2011-09-18 Thread STINNER Victor
STINNER Victor added the comment: "Since the rewrite in pure Python of multiprocessing.Connection (issue #11743), multiprocessing.Connection sends and receives the length of the data (used as header) in host byte order." I don't think so, the C code uses also the host endian. This issue is a

[issue12999] _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED usage on Solaris

2011-09-18 Thread STINNER Victor
STINNER Victor added the comment: Martin dropped _XOPEN_SOURCE in issue #1759169 (commit 7c947768b435). -- FYI I changed configure(.in) to get _XOPEN_SOURCE to 700 on OpenBSD 5 to get recent C functions like fdopendir(): # X/Open 7, incorporating POSIX.1-2008 AC_DEFINE(_XOPEN_SOURCE, 700

[issue12960] threading.Condition is not a class

2011-09-18 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-09-18 Thread Stefan Krah
Stefan Krah added the comment: Revision 4492afe05a07 allows memoryview to handle objects with an __index__() method. This is for compatibility with the struct module (See also #8300). -- ___ Python tracker ___

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-09-18 Thread Stefan Krah
Changes by Stefan Krah : Added file: http://bugs.python.org/file23185/4492afe05a07.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2011-09-18 Thread Martin v . Löwis
Martin v. Löwis added the comment: Tom: it's intentional that .title() doesn't use traditional word break algorithms. In 2.x, "foo3bar".title() is "Foo3Bar", i.e. the 3 counts as a word end. So neither UTS#18 \w nor UAX#29 apply. So in UTS#18 terminology, .title() matches more closes \alpha+,