[issue11723] No proper support for mingw64 - patch to add

2011-03-31 Thread Jason Morgan
Jason Morgan jas...@picochip.com added the comment: Ok, I know there is a typo, (mings64 should read mingw64) I realised after posting but can't edit it. I don't need any more emails telling me I can't spell (or type) - I knew that already! -- ___

[issue11722] mingw64 does not link when building extensions

2011-03-31 Thread Jason Morgan
Jason Morgan jas...@picochip.com added the comment: OK, I've understood this a bit more. The compiler does not cause pyconfig.h to define SIZEOF_SIZE_T and SIZEOF_INT, rather it is the definition of MS_WIN64 at compile time (which was not being defined) Defining MS_WIN64 fixes the problem,

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset a6d2c703586a by Victor Stinner in branch 'default': Issue #11393: Fix the documentation (cancel_dump_traceback_later) http://hg.python.org/cpython/rev/a6d2c703586a New changeset e289b64f355d by Victor Stinner in branch 'default':

[issue11726] linecache becomes specific to Python scripts in Python 3

2011-03-31 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: linecache document doesn't tell that the module reads the #coding:xxx cookie to get the encoding of the Python file. linecache reads this cookie since 41665 (May 09 2007). The linecache module allows one to get any line from any

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: test_faulthandler blocked AMD64 Gentoo Wide 3.x and AMD64 OpenIndiana 3.x buildbots because of the stack overflow test. New changeset e289b64f355d by Victor Stinner in branch 'default': Issue #11393: limit stack overflow test to

[issue11727] Add a --timeout option to regrtest.py using the faulthandler module

2011-03-31 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: I would be nice to add a timeout option to regrtest.py to be able to dump the traceback after TIMEOUT seconds and also exit the process. It would help debugging timeout issues (e.g. test_multiprocessing ), but also protect

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I opened #11727 for the patch on regrtest.py. All buildbots look happy (no more failure on test_faulthandler), so let's close this issue. -- resolution: - fixed status: open - closed

[issue11663] multiprocessing (and concurrent.futures) doesn't detect killed processes

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This issue is a duplicate of #9205. -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11663

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Issue #11663 has been marked as a duplicate. -- nosy: +bquinlan, haypo, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9205

[issue11727] Add a --timeout option to regrtest.py using the faulthandler module

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I created a new Mercurial repository to test this issue: features/regrtest_timeout. Let's try it with a timeout of 5 minutes on: - x86 Tiger custom to learn more about test_threadsignals timeout (1 hour) = issue #11223 - x86

[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2011-03-31 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Actually, the makefile location *is* wrong - ignore my last comment contradicting that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6087

[issue10656] Out of tree build fails on AIX 5.3

2011-03-31 Thread Tristan Carel
Tristan Carel tristan.ca...@gmail.com added the comment: I have experienced the same problem under ppc64 aix 6.1.2.0 while compiling Python 2.7.1 $ cd Python-2.7.1 $ mkdir __build $ cd __build $ ../configure --with-gcc=xlc_r --with-cxx-main=xlC_r --with-threads --disable-ipv6 $

[issue7995] On Mac / BSD sockets returned by accept inherit the parent's FD flags

2011-03-31 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: I can't see how that patch has anything to do with it. The problem has been present since at least 2.5. Your patch fixed it for timeout0.0 but left the 0.0 case still broken. It comes from these lines in init_sockobject: {

[issue11727] Add a --timeout option to regrtest.py using the faulthandler module

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Try the branch on PPC Leopard 3.x (test_subprocess timeout): http://www.python.org/dev/buildbot/all/builders/PPC%20Leopard%20custom/builds/6 -- ___ Python tracker rep...@bugs.python.org

[issue1635741] Interpreter seems to leak references after finalization

2011-03-31 Thread Tim Lesher
Changes by Tim Lesher tles...@gmail.com: -- nosy: +tlesher ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1635741 ___ ___ Python-bugs-list mailing

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: There is a failure on FreeBSD: == FAIL: test_dump_tracebacks_later_repeat (test.test_faulthandler.FaultHandlerTests)

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset aa2ac1581d23 by Victor Stinner in branch 'default': Issue #11393: test_faulthandler checks the exitcode after the output http://hg.python.org/cpython/rev/aa2ac1581d23 -- ___ Python

[issue11727] Add a --timeout option to regrtest.py using the faulthandler module

2011-03-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Just a nit but: if timeout and 0 timeout Could you use the usual coding style? (if timeout and timeout 0) Putting constants on the left-side of comparisons is pointless in Python, and even in C it's quite ugly and surprising. --

[issue11727] Add a --timeout option to regrtest.py using the faulthandler module

2011-03-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: x86 Tiger custom to learn more about test_threadsignals timeout (1 hour) Please read the comments. There is no timeout anymore. -- ___ Python tracker rep...@bugs.python.org

[issue11727] Add a --timeout option to regrtest.py using the faulthandler module

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: x86 Tiger custom to learn more about test_threadsignals timeout (1 hour) Please read the comments. There is no timeout anymore. The last build failed with: --- ... [213/354] test_plistlib [214/354] test_minidom [215/354]

[issue11728] mbox parser incorrect behaviour

2011-03-31 Thread valera
New submission from valera vmasu...@apache.org: mailbox.mbox parser is splitting mbox files by ^From pattern, which is wrong , in fairy it should split mbox by \nFrom . Illustration: -- From bla-blah@localhost Header1 Header2 body1 body2 From blah-blah2@localhost Header1 body1 From your

[issue11724] concurrent.futures: executor.submit() runs until completion even when future times out or is canceled

2011-03-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Agreed with Brian. There is generally no reliable way to terminate another thread or process without cooperation from said thread or process. Especially in the case of threads, terminating a thread while leaving the process alive may leave some

[issue11727] Add a --timeout option to regrtest.py using the faulthandler module

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I ran the full test suite on x86 Tiger custom on my features/regrtest_timeout repository: no failure (test_threadsignals failure was not reproduced). On PPC Leopard custom, the test suite was interrupted (timeout) on

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2011-03-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The problem with this approach is that it won't help concurrent.futures. Detection of killed endpoints should ideally happen at a lower level, e.g. in Process or Queue or Connection objects. Speaking of which, I wonder why we have both

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2011-03-31 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: On Thu, Mar 31, 2011 at 8:25 AM, Antoine Pitrou rep...@bugs.python.org wrote: Antoine Pitrou pit...@free.fr added the comment: Speaking of which, I wonder why we have both multiprocessing.Pool and concurrent.futures.ProcessPoolExecutor.

[issue10963] subprocess can raise OSError (EPIPE) when communicating with short-lived processes

2011-03-31 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: I'd argue that this is not a feature request but a bug. I did some testing of this issue and the problem is that EPIPE is only generated sometimes depending on the time the process takes to finish, the size of the data sent, the

[issue11729] libffi assembler relocation check is not robust, fails with clang

2011-03-31 Thread Ismail Donmez
New submission from Ismail Donmez ism...@namtrac.org: The check under Modules/_ctypes/libffi/configure.ac does; echo '.text; foo: nop; .data; .long foo-.; .text' conftest.s if $CC $CFLAGS -c conftest.s 21 | grep -i warning /dev/null; then libffi_cv_as_x86_pcrel=no fi

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2011-03-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Possible plan for POSIX, where a connection uses a pipe() or socketpair(): exploit the fact that an endpoint becomes ready for reading (indicating EOF) when the other endpoint is closed: r, w = os.pipe() select.select([r], [], [r], 0) ([],

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2011-03-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: (certainly not easy, sorry) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9205 ___ ___

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2011-03-31 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: On Thu, Mar 31, 2011 at 9:05 AM, Antoine Pitrou rep...@bugs.python.org wrote: Antoine Pitrou pit...@free.fr added the comment: Possible plan for POSIX, where a connection uses a pipe() or socketpair(): exploit the fact that an endpoint

[issue11727] Add a --timeout option to regrtest.py using the faulthandler module

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Result on x86 FreeBSD 7.2 custom: ... [148/354] test_fileinput [149/354] test_subprocess [36645 refs] [36645 refs] ... [36647 refs] [44034 refs] Current thread 0x28401040: File

[issue11284] slow close file descriptors in subprocess, popen2, os.popen*

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: test_subprocess.test_leaking_fds_on_error takes more than 5 minutes on x86 FreeBSD 7.2 build slave! This tests creates 1,024 subprocesses, and subprocess has to close 655,000 file descriptors just to create on child process

[issue8052] subprocess close_fds behavior should only close open fds

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: test_subprocess.test_leaking_fds_on_error takes more than 5 minutes on x86 FreeBSD 7.2 build slave! This tests creates 1,024 subprocesses, and subprocess has to close 655,000 file descriptors just to create on child process

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2011-03-31 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- keywords: -easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9205 ___ ___ Python-bugs-list

[issue11727] Add a --timeout option to regrtest.py using the faulthandler module

2011-03-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11727 ___

[issue11678] Add support for Arch Linux to platform.linux_distributions()

2011-03-31 Thread Westley Martínez
Westley Martínez aniko...@gmail.com added the comment: Perhaps I wasn't clear. That release version isn't for the system. It's for the installation disc. There's no way to get that info and it means nothing to anyone anyways. All users of Arch are expected to have their system fully up to

[issue11728] mbox parser incorrect behaviour

2011-03-31 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: All the references I could find talk about triggering the match without the proceeding newline. That is, it is not certain that a blank line will precede the 'From ' header, and the typical quoting rules for mbox format call for any

[issue11727] Add a --timeout option to regrtest.py using the faulthandler module

2011-03-31 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: There is something interesting in this output: the test uses a subprocess and we only have the traceback of the parent. It may be nice to have the trace of the child process. It might be possible by sending a signal to the child

[issue10645] Remove egg-info files in stdlib

2011-03-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10645 ___

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Same issue on PPC Leopard custom: [224/354] test_faulthandler test test_faulthandler failed -- Traceback (most recent call last): File /Users/buildbot/buildarea/custom.parc-leopard-1/build/Lib/test/test_faulthandler.py, line

[issue10645] Remove egg-info files in stdlib

2011-03-31 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I agree that the egg-info file should be removed in 3.3, especially because distutils2 has a better way of specifying python version dependencies. The OSX installers for 2.7, 3.1 and 3.2 should remove the egg-info file for older

[issue11729] libffi assembler relocation check is not robust, fails with clang

2011-03-31 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I suggest you complain to the libffi maintainers. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11729 ___

[issue11729] libffi assembler relocation check is not robust, fails with clang

2011-03-31 Thread Ismail Donmez
Ismail Donmez ism...@namtrac.org added the comment: This is already fixed in upstream, check has been changed into: libffi_cv_as_x86_pcrel=no echo '.text; foo: nop; .data; .long foo-.; .text' conftest.s if $CC $CFLAGS -c conftest.s /dev/null; then libffi_cv_as_x86_pcrel=yes fi ]) --

[issue11729] libffi assembler relocation check is not robust, fails with clang

2011-03-31 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: You can install the newest libffi and pass --with-system-ffi option to main `configure` of Python. -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org

[issue11730] Setting sys.stdin to an invalid input stream causes interpreter run loop forever.

2011-03-31 Thread ysj.ray
New submission from ysj.ray ysj@gmail.com: Setting sys.stdin to an invalid input stream under interactive mode causes interpreter run loop forever: Python 3.3a0 (default:22ae2b002865+, Mar 30 2011, 21:17:03) [GCC 4.4.4] on linux2 Type help, copyright, credits or license for more

[issue11729] libffi assembler relocation check is not robust, fails with clang

2011-03-31 Thread Ismail Donmez
Ismail Donmez ism...@namtrac.org added the comment: Yes I can workaround it but I'd like to get it fixed inside Python too ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11729 ___

[issue11729] libffi assembler relocation check is not robust, fails with clang

2011-03-31 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: Internal copies of third-party libraries are rather always outdated, so it's better to always use system libraries. IMHO Python shouldn't bundle any third-party libraries and should force users to use system

[issue10632] multiprocessing generates a fatal error

2011-03-31 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: This is indeed looking like it's RHEL-specific. I was about to close it out as a duplicate of issue 10517, but I'm wondering why Brian chose to open it as a separate bug. -- ___ Python tracker

[issue11726] linecache becomes specific to Python scripts in Python 3

2011-03-31 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- priority: normal - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11726 ___ ___

[issue11727] Add a --timeout option to regrtest.py using the faulthandler module

2011-03-31 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset bdc946dc512a by Victor Stinner in branch 'default': Issue #11727: add --timeout option to regrtest (disabled by default). http://hg.python.org/cpython/rev/bdc946dc512a -- nosy: +python-dev

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset e91de993964c by Victor Stinner in branch 'default': Issue #11393: check that stdout is empty if we use a file http://hg.python.org/cpython/rev/e91de993964c -- ___ Python tracker

[issue11727] Add a --timeout option to regrtest.py using the faulthandler module

2011-03-31 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 0f3dbf93ac06 by Victor Stinner in branch 'default': Issue #11727: Antoine and Arfrever don't like 0 timeout style (regrtest.py) http://hg.python.org/cpython/rev/0f3dbf93ac06 -- ___

[issue11727] Add a --timeout option to regrtest.py using the faulthandler module

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Patch commited into 3.3 (bdc946dc512a, 0f3dbf93ac06). I opened a thread on python-dev to decide if we turn this on by default on buildbots. -- resolution: - fixed status: open - closed

[issue11725] httplib and urllib2 failed ssl connection httplib.BadStatusLine

2011-03-31 Thread Isaac Salsberg
Isaac Salsberg isalsb...@users.sourceforge.net added the comment: Yep, I am sure Ronald, the RH server has no special configuration. The RH box actually immediately connects to the server, an because it requires a certificate returns a 403 forbidden code: [opentrails@redhat5 ~]$ uname -a

[issue11728] mbox parser incorrect behaviour

2011-03-31 Thread valera
valera vmasu...@apache.org added the comment: On Thu, 31 Mar 2011 14:13:50 + R. David Murray rep...@bugs.python.org wrote: R. David Murray rdmur...@bitdance.com added the comment: All the references I could find talk about triggering the match without the proceeding newline. That

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 61626c3f3a54 by Victor Stinner in branch 'default': Issue #11393: get more information on assertion error (test_faulthandler) http://hg.python.org/cpython/rev/61626c3f3a54 -- ___ Python

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Other failures on x86 XP-4 3.x: http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.x/builds/4308 == FAIL: test_dump_tracebacks_later

[issue6498] Py_Main() does not return on SystemExit

2011-03-31 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: +Python 2.7 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6498 ___ ___

[issue11729] libffi assembler relocation check is not robust, fails with clang

2011-03-31 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11729 ___ ___

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-31 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Feel free to create them and set orsenthil as assignee. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10050 ___

[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2011-03-31 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’m not sure yet whether this is a bug or a new feature, but when python runs from an uninstalled build, I would like paths to refer to the source directory, not the default configure prefix. -- ___

[issue10645] Remove egg-info files in stdlib

2011-03-31 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Yes, I only target 3.3. -- assignee: tarek - eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10645 ___

[issue11725] httplib and urllib2 failed ssl connection httplib.BadStatusLine

2011-03-31 Thread Ned Deily
Ned Deily n...@acm.org added the comment: This appears to be a bug in the versions of the Apple-supplied openssl libs supplied in OS X 10.5 (0.9.7l) and 10.6 (0.9.8l). You can see the same results using the openssl test client: $ openssl s_client -connect www.finratrace.org:443 With the

[issue11731] Simplify email API via 'policy' objects

2011-03-31 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: As part of the email6 design, the email-sig came up with the idea of simplifying the current email API by introducing the concept of policy objects. A policy object is an object that hold various parameters and methods that can be

[issue2736] datetime needs an epoch method

2011-03-31 Thread Ka-Ping Yee
Ka-Ping Yee pyt...@zesty.ca added the comment: I am extremely disappointed by what has happened here. We are talking about a very simple method that everybody needs, and that has been reimplemented over and over again. I have been frustrated countless times by the lack of a utctotimestamp()

[issue10632] multiprocessing generates a fatal error

2011-03-31 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: Filing a new bug might have been a mistake. Once the investigation in issue 10517 isolated the failure as being in a different module, I thought it best to file a new bug with a minimal repro case. Fill free to cleanup. --

[issue2736] datetime needs an epoch method

2011-03-31 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Thu, Mar 31, 2011 at 2:52 PM, Ka-Ping Yee rep...@bugs.python.org wrote: .. I am extremely disappointed by what has happened here. What exactly are you disappointed about? As far as I can tell, the feature request has

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 69f58be4688a by Victor Stinner in branch 'default': Issue #11393: test_faulthandler is more tolerant on inaccurate time http://hg.python.org/cpython/rev/69f58be4688a -- ___ Python tracker

[issue11732] Skip decorator for tests requiring manual intervention on Windows

2011-03-31 Thread Brian Curtin
New submission from Brian Curtin br...@python.org: Attached is a patch which adds skip_unless_unattended, which ideally would be used with at least test_faulthandler when running on Windows. Running the tests on a Windows desktop results in the user having to click through Windows Error

[issue11732] Skip decorator for tests requiring manual intervention on Windows

2011-03-31 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Attached is an example of how this might be used with Lib/test/test_faulthandler.py -- nosy: +haypo, loewis Added file: http://bugs.python.org/file21494/faulthandler_example.diff ___ Python tracker

[issue11714] threading.Semaphore does not use try...finally

2011-03-31 Thread Thomas Rachel
Thomas Rachel th.rac...@googlemail.com added the comment: Oops, sorry. I have re-made it; it is to be applied to 69f58be4688a. The original one was made against the respective file of my distribution which contains Python 2.6. It can be applied to (at least) 787b969d37f0, a fact which might

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Cool, 69f58be4688a fixed all failures (all related to dump_backtraces_later()) on x86 XP-4 3.x. So PPC Leopard should also be fixed. -- ___ Python tracker rep...@bugs.python.org

[issue11714] threading.Semaphore does not use try...finally

2011-03-31 Thread Thomas Rachel
Thomas Rachel th.rac...@googlemail.com added the comment: Here is another patch which fits to 2.7, if desired. -- Added file: http://bugs.python.org/file21496/threading.b36cb4602e21.patch ___ Python tracker rep...@bugs.python.org

[issue11732] Skip decorator for tests requiring manual intervention on Windows

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Ah yes, I have also issues with the Windows fault handler (the popup). I disabled this popup manually in my Windows XP box. Instead of skipping the test, I prefer to disable temporary the popup by setting the right registry key

[issue4657] Doctest gets line numbers wrongs with in name

2011-03-31 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Note that this appears to have been fixed already in the 3.x series (I haven't investigated the differences to see what makes this a 2.x only problem) -- versions: +Python 2.7 ___ Python tracker

[issue11732] Skip decorator for tests requiring manual intervention on Windows

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Ubuntu has also a fault handler: Apport. https://wiki.ubuntu.com/Apport Fedora has abrt. https://fedorahosted.org/abrt/wiki http://fedoraproject.org/wiki/Features/ABRT If we should to disable the Windows fault handler, we may also

[issue11723] No proper support for mingw64 - patch to add

2011-03-31 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Sorry, I honestly wasn't sure whether this is a typo, or whether mings64 is something I hadn't heard of (for the record, I'm not sure what mingw64 really is, either). -- ___ Python tracker

[issue11733] Implement a `Counter.elements_count` method

2011-03-31 Thread Ram Rachum
New submission from Ram Rachum cool...@cool-rr.com: I suggest a `Counter.elements_count()` method should be added, that would give the same answer as `sum(counter.itervalues())`. -- components: Library (Lib) messages: 132708 nosy: cool-RR, rhettinger priority: normal severity: normal

[issue8668] add a 'develop' command

2011-03-31 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: See also http://groups.google.com/group/the-fellowship-of-the-packaging/browse_thread/thread/10506b8326a7b047 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8668

[issue11733] Implement a `Counter.elements_count` method

2011-03-31 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Thanks for the feature request. Py3.3 is a long ways away, so I'll leave this open for a while. Comments in favor: * Precedent with Smalltalk bags that know their total length Comments against: * sum(c.values()) is trivial to

[issue11733] Implement a `Counter.elements_count` method

2011-03-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: It would be interesting to have Counter.elements_count() if it has a complexity of O(1): if the collections maintains a total (in a private attribute). Otherwise, I think that sum(c.values()) is enough and can be documented as an

[issue11733] Implement a `Counter.elements_count` method

2011-03-31 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: It would be interesting to have Counter.elements_count() if it has a complexity of O(1): if the collections maintains a total (in a private attribute). I agree that it would be interesting; however, it would be an

[issue7796] No way to find out if an object is an instance of a namedtuple

2011-03-31 Thread Jan Kaliszewski
Jan Kaliszewski z...@chopin.edu.pl added the comment: PS. For the record: the final recipe is here: http://code.activestate.com/recipes/577629-namedtupleabc-abstract-base-class-mix-in-for-named/ -- ___ Python tracker rep...@bugs.python.org

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-03-31 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Python 2.5 is not open for bug fixes anymore, so this can't be applied to this branch. I suggest that Python 2.6 is closed for bug fixes as well. -- nosy: +loewis ___ Python tracker

[issue11722] mingw64 does not link when building extensions

2011-03-31 Thread Ralf Schmitt
Ralf Schmitt sch...@gmail.com added the comment: pyconfig.h defines SIZEOF_SIZE_T depending on the preprocessor symbol MS_WIN64. The patch in #4709 would fix that. -- nosy: +schmir ___ Python tracker rep...@bugs.python.org

[issue7796] No way to find out if an object is an instance of a namedtuple

2011-03-31 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 7aa3f1f7ac94 by Raymond Hettinger in branch '3.2': Issue #7796: Add link to Jan Kaliszewski's alternate constructor and ABC for named tuples. http://hg.python.org/cpython/rev/7aa3f1f7ac94 New changeset 330d3482cad8 by Raymond

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-03-31 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: On Mar 31, 2011, at 10:08 PM, Martin v. Löwis wrote: Martin v. Löwis mar...@v.loewis.de added the comment: Python 2.5 is not open for bug fixes anymore, so this can't be applied to this branch. I suggest that Python 2.6 is closed for bug

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-03-31 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: If Ubuntu stops supporting to build old Python releases, I rather consider this a serious bug in Debian, not one in Python. If the issue is merely that certain extension modules fail to build, I see no real reason to do anything about it.

[issue11733] Implement a `Counter.elements_count` method

2011-03-31 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: The name isn't meaningful to me. My preference would be for something like total_count. -- nosy: +mrabarnett ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11733

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 8b1341d51fe6 by Victor Stinner in branch 'default': Issue #11393: Fix faulthandler_thread(): release cancel lock before join lock http://hg.python.org/cpython/rev/8b1341d51fe6 -- ___

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: New changeset 8b1341d51fe6 by Victor Stinner in branch 'default': Issue #11393: Fix faulthandler_thread(): release cancel lock before join lock http://hg.python.org/cpython/rev/8b1341d51fe6 This is wrong, it should always be released, not only

[issue11734] Add half-float (16-bit) support to struct module

2011-03-31 Thread Eli Stevens
New submission from Eli Stevens wickedg...@gmail.com: Numpy 1.6.0 adds support for a half-float (16-bit) data type, but cannot currently export a buffer interface to the data since neither PEP 3118 nor the struct module (referenced by PEP 3118) support the data type. I am proposing that the

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 0fb0fbd442b4 by Victor Stinner in branch 'default': Issue #11393: New try to fix faulthandler_thread() http://hg.python.org/cpython/rev/0fb0fbd442b4 -- ___ Python tracker

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 3558eecd84f0 by Victor Stinner in branch 'default': Issue #11393: fix usage of locks in faulthandler http://hg.python.org/cpython/rev/3558eecd84f0 -- ___ Python tracker

[issue4657] Doctest gets line numbers wrongs with in name

2011-03-31 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I have a vague memory of changing some code, in linecache I think, that involved anonymous names. I might have fixed it by accident. -- nosy: +r.david.murray ___ Python tracker

[issue11734] Add half-float (16-bit) support to struct module

2011-03-31 Thread Eli Stevens
Eli Stevens wickedg...@gmail.com added the comment: Initial patch; tests pass. A couple notes: - I manually excised some commented changes to structmodule.{h,c} from the .patch; once I get a determination on if those files need to be updated or not I will discard the changes or implement

[issue11735] Python Crash on strftime with %f

2011-03-31 Thread mangeletti
New submission from mangeletti mich...@angelettigroup.com: Win XP 32 bit 2.7.4 import time time.strftime('%m/%d/%Y %H:%M:%S') '03/31/2011 20:04:52' # ^^^ works fine time.strftime('%m/%d/%Y %H:%M:%S:%f') # Oops, forgot `time.strftime` doesn't provide microseconds Python crashes Error