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

2011-03-31 Thread Jason Morgan
Jason Morgan 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! -- ___ Python tracker

[issue11722] mingw64 does not link when building extensions

2011-03-31 Thread Jason Morgan
Jason Morgan 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, and causes another u

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread Roundup Robot
Roundup Robot 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': Issue #11393: limi

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

2011-03-31 Thread STINNER Victor
New submission from STINNER Victor : 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 file, ..." => "any file"!

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread STINNER Victor
STINNER Victor 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 100 MB > http://hg.python.o

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

2011-03-31 Thread STINNER Victor
New submission from STINNER Victor : 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 buildbots against evil (long) test

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread STINNER Victor
STINNER Victor 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 ___ Python tracker

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

2011-03-31 Thread STINNER Victor
STINNER Victor added the comment: This issue is a duplicate of #9205. -- resolution: -> duplicate status: open -> closed ___ Python tracker ___

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

2011-03-31 Thread STINNER Victor
STINNER Victor added the comment: Issue #11663 has been marked as a duplicate. -- nosy: +bquinlan, haypo, pitrou ___ Python tracker ___ __

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

2011-03-31 Thread STINNER Victor
STINNER Victor 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 FreeBSD 7.2 3.x" to learn mo

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

2011-03-31 Thread Vinay Sajip
Vinay Sajip added the comment: Actually, the makefile location *is* wrong - ignore my last comment contradicting that. -- ___ Python tracker ___

[issue10656] "Out of tree" build fails on AIX 5.3

2011-03-31 Thread Tristan Carel
Tristan Carel 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 $ /usr/linux/bin/make [...] ../Modules/l

[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 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 timeout>0.0 but left the 0.0 case still broken. It comes from these lines in init_sockobject: { s->sock_timeout = de

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

2011-03-31 Thread STINNER Victor
STINNER Victor 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 _

[issue1635741] Interpreter seems to leak references after finalization

2011-03-31 Thread Tim Lesher
Changes by Tim Lesher : -- nosy: +tlesher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue11393] Integrate faulthandler module into Python 3.3

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

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread Roundup Robot
Roundup Robot 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 tracker

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

2011-03-31 Thread Antoine Pitrou
Antoine Pitrou 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. -- nosy: +pitrou

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

2011-03-31 Thread Antoine Pitrou
Antoine Pitrou 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 _

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

2011-03-31 Thread STINNER Victor
STINNER Victor 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] test_threadsignals command

[issue11728] mbox parser incorrect behaviour

2011-03-31 Thread valera
New submission from valera : 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 dear friend b

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

2011-03-31 Thread Antoine Pitrou
Antoine Pitrou 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 resources (inc

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

2011-03-31 Thread STINNER Victor
STINNER Victor 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 test_io.test_basic_io: ... [ 53/3

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

2011-03-31 Thread Antoine Pitrou
Antoine Pitrou 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 multiprocessing.Pool and

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

2011-03-31 Thread Jesse Noller
Jesse Noller added the comment: On Thu, Mar 31, 2011 at 8:25 AM, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > Speaking of which, I wonder why we have both multiprocessing.Pool and > concurrent.futures.ProcessPoolExecutor. They seem to fill the exact same > needs, with diff

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

2011-03-31 Thread Ross Lagerwall
Ross Lagerwall 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 underlying mechanism used (sel

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

2011-03-31 Thread Ismail Donmez
New submission from Ismail Donmez : 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 2>&1 | grep -i warning > /dev/null; then libffi_cv_as_x86_pcrel=no fi With clang; we ge

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

2011-03-31 Thread Antoine Pitrou
Antoine Pitrou 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 added the comment: (certainly not easy, sorry) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2011-03-31 Thread Jesse Noller
Jesse Noller added the comment: On Thu, Mar 31, 2011 at 9:05 AM, Antoine Pitrou wrote: > > Antoine Pitrou 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 th

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

2011-03-31 Thread STINNER Victor
STINNER Victor 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 "/usr/home/db3l/buildarea/custom.bolen-freebsd7/build/Lib/s

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

2011-03-31 Thread STINNER Victor
STINNER Victor 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 (whereas there are only something l

[issue8052] subprocess close_fds behavior should only close open fds

2011-03-31 Thread STINNER Victor
STINNER Victor 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 (whereas there are only something l

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

2011-03-31 Thread R. David Murray
Changes by R. David Murray : -- keywords: -easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[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 : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

2011-03-31 Thread Westley Martínez
Westley Martínez 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 date. There are no rel

[issue11728] mbox parser incorrect behaviour

2011-03-31 Thread R. David Murray
R. David Murray 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 'From ' at the start of

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

2011-03-31 Thread Charles-Francois Natali
Charles-Francois Natali 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 > process (but

[issue10645] Remove egg-info files in stdlib

2011-03-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread STINNER Victor
STINNER Victor 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 412, in test_dump_tracebacks_l

[issue10645] Remove egg-info files in stdlib

2011-03-31 Thread Ronald Oussoren
Ronald Oussoren 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 releases, that way we at leas

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

2011-03-31 Thread Benjamin Peterson
Benjamin Peterson added the comment: I suggest you complain to the libffi maintainers. -- nosy: +benjamin.peterson ___ Python tracker ___ ___

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

2011-03-31 Thread Ismail Donmez
Ismail Donmez 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 added the comment: You can install the newest libffi and pass --with-system-ffi option to main `configure` of Python. -- nosy: +Arfrever ___ Python tracker

[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 : 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 information. >>> im

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

2011-03-31 Thread Ismail Donmez
Ismail Donmez added the comment: Yes I can workaround it but I'd like to get it fixed inside Python too ;) -- ___ Python tracker ___

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

2011-03-31 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis 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 libraries. At least, system li

[issue10632] multiprocessing generates a fatal error

2011-03-31 Thread Dave Malcolm
Dave Malcolm 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 : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

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

2011-03-31 Thread Roundup Robot
Roundup Robot 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 ___ Python tra

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread Roundup Robot
Roundup Robot 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 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 -- ___ Python tracker

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

2011-03-31 Thread STINNER Victor
STINNER Victor 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 ___ Python tracker

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

2011-03-31 Thread Isaac Salsberg
Isaac Salsberg 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 Linux redhat5.ultralat.com 2.6.18-

[issue11728] mbox parser incorrect behaviour

2011-03-31 Thread valera
valera added the comment: On Thu, 31 Mar 2011 14:13:50 + "R. David Murray" wrote: > > R. David Murray 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

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread Roundup Robot
Roundup Robot 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 tracker

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread STINNER Victor
STINNER Victor 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 (test.test_faulthandler.FaultHandlerTests) ---

[issue6498] Py_Main() does not return on SystemExit

2011-03-31 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 2.7 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

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

2011-03-31 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2011-03-31 Thread Éric Araujo
Éric Araujo added the comment: Feel free to create them and set orsenthil as assignee. -- ___ Python tracker ___ ___ Python-bugs-list

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

2011-03-31 Thread Éric Araujo
Éric Araujo 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. -- ___ Python tracker

[issue10645] Remove egg-info files in stdlib

2011-03-31 Thread Éric Araujo
Éric Araujo added the comment: Yes, I only target 3.3. -- assignee: tarek -> eric.araujo ___ Python tracker ___ ___ Python-bugs-list

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

2011-03-31 Thread Ned Deily
Ned Deily 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 Apple-supplie

[issue11731] Simplify email API via 'policy' objects

2011-03-31 Thread R. David Murray
New submission from R. David Murray : 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 used to control the be

[issue2736] datetime needs an "epoch" method

2011-03-31 Thread Ka-Ping Yee
Ka-Ping Yee 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() method. I have

[issue10632] multiprocessing generates a fatal error

2011-03-31 Thread Brian Quinlan
Brian Quinlan 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 added the comment: On Thu, Mar 31, 2011 at 2:52 PM, Ka-Ping Yee 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 not been rejected, just no one has come up with a sa

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread Roundup Robot
Roundup Robot 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 : 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 Reporting dialogs in o

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

2011-03-31 Thread Brian Curtin
Brian Curtin 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 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 help backporting it to 2.x

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread STINNER Victor
STINNER Victor 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 ___

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

2011-03-31 Thread Thomas Rachel
Thomas Rachel 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 ___

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

2011-03-31 Thread STINNER Victor
STINNER Victor 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 (and then restore the previous

[issue4657] Doctest gets line numbers wrongs with <> in name

2011-03-31 Thread Nick Coghlan
Nick Coghlan 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 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 disable these tools. test_f

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

2011-03-31 Thread Martin v . Löwis
Martin v. Löwis 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 : 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 status: open type: fe

[issue8668] add a 'develop' command

2011-03-31 Thread Éric Araujo
Éric Araujo added the comment: See also http://groups.google.com/group/the-fellowship-of-the-packaging/browse_thread/thread/10506b8326a7b047 -- ___ Python tracker ___ __

[issue11733] Implement a `Counter.elements_count` method

2011-03-31 Thread Raymond Hettinger
Raymond Hettinger 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 write * fattening the API mak

[issue11733] Implement a `Counter.elements_count` method

2011-03-31 Thread STINNER Victor
STINNER Victor 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 example in the Counter doc.

[issue11733] Implement a `Counter.elements_count` method

2011-03-31 Thread Raymond Hettinger
Raymond Hettinger 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 implementation disaster. We would

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

2011-03-31 Thread Jan Kaliszewski
Jan Kaliszewski 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 ___

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-03-31 Thread Martin v . Löwis
Martin v. Löwis 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 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 _

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

2011-03-31 Thread Roundup Robot
Roundup Robot 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 Hettinger in branch '

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-03-31 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 31, 2011, at 10:08 PM, Martin v. Löwis wrote: >Martin v. Löwis 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. Although I'd still

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-03-31 Thread Martin v . Löwis
Martin v. Löwis 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. Users affected by t

[issue11733] Implement a `Counter.elements_count` method

2011-03-31 Thread Matthew Barnett
Matthew Barnett added the comment: The name isn't meaningful to me. My preference would be for something like "total_count". -- nosy: +mrabarnett ___ Python tracker ___ ___

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread Roundup Robot
Roundup Robot 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 -- ___ Python tracker

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread Antoine Pitrou
Antoine Pitrou 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 when explic

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

2011-03-31 Thread Eli Stevens
New submission from Eli Stevens : 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 struct module be extend

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-31 Thread Roundup Robot
Roundup Robot 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 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 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 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 what needs to be done th

[issue11735] Python Crash on strftime with %f

2011-03-31 Thread mangeletti
New submission from mangeletti : 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 Signature (sor

[issue11735] Python Crash on strftime with %f

2011-03-31 Thread Santoso Wijaya
Santoso Wijaya added the comment: Hm, I can't reproduce this on darwin: Python 2.7.1 (r271:86832, Jan 26 2011, 19:17:30) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import time >>> time.strftime('%m/%d/%Y %H:%M:%S:%f'

[issue6457] subprocess.Popen.communicate can lose data from output/error streams when broken input pipe occures

2011-03-31 Thread Ross Lagerwall
Ross Lagerwall added the comment: Closing as duplicate of #10963. See #10963 for more discussion. -- nosy: +rosslagerwall resolution: -> duplicate status: open -> closed ___ Python tracker

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

2011-03-31 Thread Ross Lagerwall
Ross Lagerwall added the comment: Marked #6457 as a duplicate. See #6457 for more discussion. -- nosy: +Yaniv.Aknin, amaury.forgeotdarc, dwalczak, mcrute ___ Python tracker ___

  1   2   >