[issue6721] Locks in python standard library should be sanitized on fork

2011-05-04 Thread Charles-François Natali
Charles-François Natali added the comment: Please disregard my comment on PyEval_ReInitThreads and _after_fork: it will of course still be necessary, because it does much more than just reinitializing locks (e.g. stop threads). Also, note that both approaches don't handle synchronization primiti

[issue9971] Optimize BufferedReader.readinto

2011-05-04 Thread Benjamin Peterson
Benjamin Peterson added the comment: I don't see the problem. You're free to override readinto() and read() in subclasses. readinto() is just implemented in BufferedIOBase as a convenience. -- ___ Python tracker _

[issue11015] Bring test.support docs up to date

2011-05-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : Removed file: http://bugs.python.org/file21890/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue11015] Bring test.support docs up to date

2011-05-04 Thread Eli Bendersky
Eli Bendersky added the comment: > Eli, do you want to expand this patch further (and how :) or do you think > it's still the version you want to commit? Can a core devel, then, give this > patch a deeper look? > I will review this again in a couple of days and will commit. -- Added fi

[issue12004] PyZipFile.writepy gives internal error on syntax errors

2011-05-04 Thread Ben Morgan
Changes by Ben Morgan : -- keywords: +patch Added file: http://bugs.python.org/file21889/pyzipfile-error.patch ___ Python tracker ___

[issue12004] PyZipFile.writepy gives internal error on syntax errors

2011-05-04 Thread Ben Morgan
New submission from Ben Morgan : PyZipFile.writepy gives internal error on syntax errors in files it processes. For example, in the attached test case: Traceback (most recent call last): File "C:\tfs\SDKS\python\Python32\lib\py_compile.py", line 119, in compile optimize=optimize) File "t

[issue11935] MMDF/MBOX mailbox need utime

2011-05-04 Thread R. David Murray
R. David Murray added the comment: Not all system mail spools are mode 1777. Mutt needs to be setgid mail on systems that aren't, if I understand correctly. Making a python program setgid mail is a bit more of security issue than making a well-tested C program setgid, since it is easier to

[issue8158] Docstring of optparse.OptionParser incomplete

2011-05-04 Thread R. David Murray
R. David Murray added the comment: Thanks everyone. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed versions: +Python 3.3 ___ Python tracker

[issue8158] Docstring of optparse.OptionParser incomplete

2011-05-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset c13d2552eb51 by R David Murray in branch '2.7': #8158: add missing 'description' description to optparse docstring. http://hg.python.org/cpython/rev/c13d2552eb51 New changeset f559b88bcaa0 by R David Murray in branch '3.1': #8158: add missing 'desc

[issue9971] Optimize BufferedReader.readinto

2011-05-04 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Looking at this again, I agree with John. For BufferedIOBase, read() is abstract while readinto() is concrete. That seems backward, and, indeed, it's the opposite of RawIOBase, where readinto() is abstract and read() is concrete. Unfortunately, this code

[issue11015] Bring test.support docs up to date

2011-05-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is an improvement that I think should be committed before 3.2.1. Some comments: +.. function:: run_doctest(module, verbosity=None) + Run :mod:`doctest` on the given *module*. should be, I believe, + Run :func:`doctest.testmod` on the given *module*. as

[issue11943] Add TLS-SRP (RFC 5054) support to ssl, _ssl, http, and urllib

2011-05-04 Thread Quinn Slack
Quinn Slack added the comment: I have updated the patch in hg to address the sections marked "TODO" (after I submitted a patch to OpenSSL that they depended on). I'll resubmit a patch here in a ~week addressing that issue and those below, to continue pushing this issue along. pitrou: Thanks

[issue8158] Docstring of optparse.OptionParser incomplete

2011-05-04 Thread Bryce Verdier
Bryce Verdier added the comment: Applied patch cleanly. Also the description reads clearly and makes sense. -- nosy: +louiscipher ___ Python tracker ___ _

[issue9971] Optimize BufferedReader.readinto

2011-05-04 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/5/4 John O'Connor : > > John O'Connor added the comment: > > I am new to the community but hoping to start contributing or at least > following issues and learning :) > > I'm looking at bufferediobase_readinto(). What I haven't yet figured out is > wh

[issue9971] Optimize BufferedReader.readinto

2011-05-04 Thread John O'Connor
John O'Connor added the comment: I am new to the community but hoping to start contributing or at least following issues and learning :) I'm looking at bufferediobase_readinto(). What I haven't yet figured out is why .readinto() is (currently) implemented at this layer of the hierarchy. You

[issue11015] Bring test.support docs up to date

2011-05-04 Thread Sandro Tosi
Sandro Tosi added the comment: Hi all, IIUIC we are left with issue11015.py3k.testdoc.1.patch) since issue11015.py3k.remove_fcmp.{1,2}.patch has been already applied on default. I just gave a look to the doc patch and it seems fine (it also applies without any warning on default). Eli, do yo

[issue12003] documentation: alternate version of xrange seems to fail.

2011-05-04 Thread alejandro david weil
New submission from alejandro david weil : Python's documentation includes 2 source codes for alternate xrange implementations, which, at least in my tests, give unexpected results. # from file:///usr/share/doc/python2.6-doc/html/library/functions.html#xrange takewhile(lambda x:xhttp://docs.pyt

[issue12002] ftplib.FTP.abort fails with TypeError on Python 3.x

2011-05-04 Thread Robert Xiao
New submission from Robert Xiao : On Python 3.2, calling abort() on an ftplib.FTP object will cause an exception: >>> ftp = ftplib.FTP('localhost') >>> ftp.abort() Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.2/ftplib.py", line 246, in abort self.sock.se

[issue6721] Locks in python standard library should be sanitized on fork

2011-05-04 Thread Charles-François Natali
Charles-François Natali added the comment: >> - what's current_thread_id ? If it's thread_get_ident (pthread_self), >> since TID is not guaranteed to be inherited across fork, this won't >> work > > Ouch, then the approach I'm proposing is probably doomed. > Well, it works on Linux with NPTL, b

[issue11994] [2.7/gcc-4.4.3] Segfault under valgrind in string.split()

2011-05-04 Thread STINNER Victor
STINNER Victor added the comment: GCC 4.4.3 is not the last stable version of the 4.4 branch: try maybe GCC 4.4.6... Changes of GCC 4.4.4, 4.4.5 and 4.4.6: http://gcc.gnu.org/gcc-4.4/changes.html#4.4.6 Or try maybe another major version. -- ___ Py

[issue11335] Memory leak after key function failure in sort

2011-05-04 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue11335] Memory leak after key function failure in sort

2011-05-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 52fb7dc721ed by Daniel Stutzbach in branch '3.2': #11335: Fix memory leak after key function failure in sort http://hg.python.org/cpython/rev/52fb7dc721ed New changeset 18e43c6acfff by Daniel Stutzbach in branch 'default': #11335: Merge from 3.2: F

[issue665194] datetime-RFC2822 roundtripping

2011-05-04 Thread R. David Murray
R. David Murray added the comment: Here is a patch that adds datetime support to email.utils.formatdate. Ultimately the email package will give programs access to datetime+timezone representations of the dates in various headers, so this provides the output end of the round trip. Alexander,

[issue1487481] Could BIND_FIRST be removed on HP-UX?

2011-05-04 Thread Oren Held
Changes by Oren Held : -- nosy: +Oren_Held ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue1516897] Use dynload_shlib on newer HP-UX versions

2011-05-04 Thread Oren Held
Oren Held added the comment: ajaksu2: the ticket you referred to fixed it for Darwin only, afaik. HP-UX, regardless of versions, still use the old dynload_hpux.c. -- nosy: +Oren_Held ___ Python tracker

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-04 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: @haypo: Oh. Not: if sys.maxsize > _4G: # (64 bits system) crc32() and adler32() stores the buffer size into an # int, the maximum filesize is INT_MAX (0x7FFF) filesize = 0x7FFF crc_res = 0x709418e7 adle

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset e6a4deb84e47 by Victor Stinner in branch '2.7': Issue #11277: oops, fix checksum values of test_zlib on 32 bits http://hg.python.org/cpython/rev/e6a4deb84e47 -- ___ Python tracker

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7f3cab59ef3e by Victor Stinner in branch '2.7': Issue #11277: test_zlib tests a buffer of 1 GB on 32 bits http://hg.python.org/cpython/rev/7f3cab59ef3e -- ___ Python tracker

[issue11015] Bring test.support docs up to date

2011-05-04 Thread Sandro Tosi
Changes by Sandro Tosi : -- nosy: +sandro.tosi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11049] add tests for test.support

2011-05-04 Thread Sandro Tosi
Changes by Sandro Tosi : -- nosy: +sandro.tosi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11954] 3.3 - 'make test' fails

2011-05-04 Thread Stefan Krah
Stefan Krah added the comment: I just ran into this with test_httpserver/Python2.7, which fails if run as root. If I understand correctly this is the main problem here. Jason, do you agree to change the issue title to reflect this? -- nosy: +skrah versions: +Python 2.7, Python 3.1, Pyth

[issue3526] Customized malloc implementation on SunOS and AIX

2011-05-04 Thread Charles-François Natali
Charles-François Natali added the comment: > Also that addresses the issue of "two threads inside different malloc > implementations at the same time": it is currently not allowed with > PyMem_Malloc. > That's not true. You can perfectly have one thread inside PyMem_Malloc while another one i

[issue11995] test_pydoc loads all Python modules

2011-05-04 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: It might be possible to use a part of patch for issue #1674555. A newer version of that patch can be found in: http://overlays.gentoo.org/svn/proj/python/overlays/python/dev-lang/python/files/3.3-20110417/23_all_tests_environment.patch

[issue1856] shutdown (exit) can hang or segfault with daemon threads running

2011-05-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Should be fixed in 3.2 and 3.3 now. I don't really want to bother with 2.7 and 3.1 (the GIL implementation is different), but someone can backport the patch if they want to :) -- resolution: -> fixed stage: patch review -> committed/rejected status:

[issue11072] Add MLSD command support to ftplib

2011-05-04 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Eric, any further comments about the patch? Can we go on and commit it? -- ___ Python tracker ___ __

[issue1856] shutdown (exit) can hang or segfault with daemon threads running

2011-05-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2a19d09b08f8 by Antoine Pitrou in branch '3.2': Issue #1856: Avoid crashes and lockups when daemon threads run while the http://hg.python.org/cpython/rev/2a19d09b08f8 New changeset c892b0321d23 by Antoine Pitrou in branch 'default': Issue #1856: Av

[issue6721] Locks in python standard library should be sanitized on fork

2011-05-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: > - what's current_thread_id ? If it's thread_get_ident (pthread_self), > since TID is not guaranteed to be inherited across fork, this won't > work Ouch, then the approach I'm proposing is probably doomed. > And it's true with every lock in the library code:

[issue11995] test_pydoc loads all Python modules

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

[issue11994] [2.7/gcc-4.4.3] Segfault under valgrind in string.split()

2011-05-04 Thread Stefan Krah
Stefan Krah added the comment: STINNER Victor wrote: > You should try to disable compiler optimization: pass -O0 to gcc. E.g. use > ./configure --with-pydebug CFLAGS="-O0". I did, see "only occurs when python is compiled with optimizations". :) -- ___

[issue11994] [2.7/gcc-4.4.3] Segfault under valgrind in string.split()

2011-05-04 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- nosy: +stutzbach ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue11990] redirected output - stdout writes newline as \n in windows

2011-05-04 Thread James Hutchison
James Hutchison added the comment: Yes and no, I can give you a single process single child example that just shows that python 3.2 uses binary output while python 3.1 used system default when piping, but trying to reproduce the multiprocessing output inconsistencies would be... difficult. Un

[issue11970] distutils command 'upload' crashes when --show-response is selected

2011-05-04 Thread Éric Araujo
Changes by Éric Araujo : -- stage: -> committed/rejected superseder: -> "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment" ___ Python tracker

[issue11970] distutils command 'upload' crashes when --show-response is selected

2011-05-04 Thread Chris Rose
Chris Rose added the comment: ... oh, except I'm an idiot, and I think I'm reading tip code there. Yep, I'm an idiot. Okay, but this is still a dupe of #10367 -- resolution: invalid -> duplicate ___ Python tracker

[issue11970] distutils command 'upload' crashes when --show-response is selected

2011-05-04 Thread Chris Rose
Chris Rose added the comment: No, not 100% sure, but my read of the 2.7 branch code certainly seemed to suggest that it was fixed. in distutil/commands/upload.py: Line 193 gets the response unconditionally as 'r' from the http object Line 201 uses 'r' to show the response. I might be missin

[issue11970] distutils command 'upload' crashes when --show-response is selected

2011-05-04 Thread Éric Araujo
Éric Araujo added the comment: Are you sure? This looks like #10367 (unsolved yet), not #9199 (fixed). -- ___ Python tracker ___ ___

[issue11991] test_distutils fails because of bad filename match

2011-05-04 Thread Éric Araujo
Éric Araujo added the comment: Closing as duplicate. Please join the discussion at #11340 if you have feedback or a patch :) -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> test_distutils fails because of borked compress program _

[issue11993] Use sub-second resolution to determine if a file is newer

2011-05-04 Thread Éric Araujo
Éric Araujo added the comment: To quote the initial message: > If it were desired to determine which file was newer using sub-second > values, perhaps that would make a reasonable change in distutils2, > but files created with a few microseconds would have to be considered > equivalent due to t

[issue11985] Document that platform.python_implementation supports PyPy

2011-05-04 Thread Éric Araujo
Éric Araujo added the comment: Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11985] Document that platform.python_implementation supports PyPy

2011-05-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset affec521b330 by Ezio Melotti in branch '2.7': #11985: update docstring of platform.python_implementation. http://hg.python.org/cpython/rev/affec521b330 New changeset 7bf9d7ae6c94 by Ezio Melotti in branch '3.1': #11985: update docstring of platform

[issue11985] Document that platform.python_implementation supports PyPy

2011-05-04 Thread Éric Araujo
Éric Araujo added the comment: Could you update the docstring as well? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue12001] Extend json.dumps to handle N-triples strings

2011-05-04 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Library (Lib) nosy: +ezio.melotti versions: +Python 3.3 -Python 2.7, Python 3.4 ___ Python tracker ___ _

[issue11949] Make float('nan') unorderable

2011-05-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, May 3, 2011 at 12:05 PM, Mark Dickinson wrote: .. > I was thinking of something like the rAssertAlmostEqual method in test_cmath. This one is good. I wonder if it would be appropriate to move rAssertAlmostEqual() up to unitetest.case possibly re

[issue12001] Extend json.dumps to handle N-triples strings

2011-05-04 Thread Glenn Ammons
New submission from Glenn Ammons : The string format used in N-triples is very similar to that used in JSON (see http://www.w3.org/TR/rdf-testcases/#ntrip_strings). It would be handy if json.dumps could (optionally) follow the N-triples format. The differences are 1) In \u escapes, the hexad

[issue3526] Customized malloc implementation on SunOS and AIX

2011-05-04 Thread Sébastien Sablé
Sébastien Sablé added the comment: Another reason why you should not force dlmalloc for all applications linked with libpython is because dlmalloc is (by default) not thread safe, while the system malloc is (generally) thread-safe. It is possible to define a constant in dlmalloc to make it th

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-04 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: > error: [Errno 12] Cannot allocate memory @haypo: Well i told you i have no idea. These bots are 32 bit? I'll attach 11277-27.3.diff which does @skipUnless(not 32 bit). Note i'll test against >_4G - does this work (on 32 bit and in Python)? A pity t

[issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++"

2011-05-04 Thread Peter Le Bek
Peter Le Bek added the comment: distutils reuses whatever flags Python was built with, covered here: http://bugs.python.org/issue1222585 (and here http://bugs.python.org/issue9031). -- nosy: +vokoda ___ Python tracker

[issue11834] wrong module installation dir on Windows

2011-05-04 Thread Brian Curtin
Changes by Brian Curtin : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-04 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue11982] json.loads() returns str instead of unicode for empty strings

2011-05-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset d3bd384df8ca by Ezio Melotti in branch '2.7': #11982: remove now unused function. http://hg.python.org/cpython/rev/d3bd384df8ca -- ___ Python tracker

[issue10946] bdist doesn’t pass --skip-build on to subcommands

2011-05-04 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-04 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: I think this relates #6896. Maybe a two second resolution should be tried? -- keywords: +patch nosy: +sdaoden Added file: http://bugs.python.org/file21884/11999.1.diff ___ Python tracker

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-04 Thread STINNER Victor
STINNER Victor added the comment: "x86 debian parallel 2.7", "x86 Ubuntu Shared 2.7" and "x86 Tiger 2.7" fail with mmap.error('[Errno 12] Cannot allocate memory'). http://www.python.org/dev/buildbot/all/builders/x86%20Ubuntu%20Shared%202.7/builds/866/steps/test/logs/stdio http://www.python.org

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1ef2a7319849 by Victor Stinner in branch '2.7': Issue #11277: fix issue number in a test_zlib comment http://hg.python.org/cpython/rev/1ef2a7319849 -- ___ Python tracker

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-04 Thread STINNER Victor
STINNER Victor added the comment: Reopen, test_zlib fails with Python 2.7 on Windows: == ERROR: test_big_buffer (test.test_zlib.ChecksumBigBufferTestCase) -- T

[issue11998] test_signal cannot test blocked signals if _tkinter is loaded; Tcl_Finalize()

2011-05-04 Thread STINNER Victor
Changes by STINNER Victor : -- title: test_signal cannot test blocked signals if _tkinter is loaded -> test_signal cannot test blocked signals if _tkinter is loaded; Tcl_Finalize() ___ Python tracker _

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-04 Thread STINNER Victor
STINNER Victor added the comment: pending_signals.patch: add pthread_kill(), sigpending() and sigwait() functions with doc and tests. I added many "See also" in the doc, e.g. os.kill() gives a link to signal.pthread_kill(). Note: the patch renames also BasicSignalTests to PosixTests, it's no

[issue11982] json.loads() returns str instead of unicode for empty strings

2011-05-04 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report! -- resolution: accepted -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue11982] json.loads() returns str instead of unicode for empty strings

2011-05-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9d5a50e5d8a2 by Ezio Melotti in branch '2.7': #11982: fix json.loads('""') to return u'' rather than ''. http://hg.python.org/cpython/rev/9d5a50e5d8a2 -- nosy: +python-dev ___ Python tracker

[issue12000] SSL certificate verification failed if no dNSName entry in subjectAltName

2011-05-04 Thread Nicolas Bareil
New submission from Nicolas Bareil : When connecting to a SSL server, the certificate verification failed if it has a subjectAltName extension without any dNSName entry inside: it should fallback to the Common Name. Example: >>> cert = conn.getpeercert() >>> cert {'notAfter': 'May 1

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset a5890ff5e3d5 by Victor Stinner in branch 'default': Issue #8407: signal.pthread_sigmask() returns a set instead of a list http://hg.python.org/cpython/rev/a5890ff5e3d5 -- ___ Python tracker

[issue11999] sporadic failure in test_mailbox on FreeBSD

2011-05-04 Thread STINNER Victor
New submission from STINNER Victor : test_mailbox fails sometimes on FreeBSD. Recent example on AMD FreeBSD 8.2 3.x: --- [200/354] test_mailbox test test_mailbox failed -- Traceback (most recent call last): File "/usr/home/buildbot/buildarea/3.x.krah-freebsd/build/Lib/test/test_mai

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-04 Thread Nick Coghlan
Nick Coghlan added the comment: Hmm, I probably should have revised the first half of my comment after I had the thought about "simple regex" + "random directory name" being potentially problematic. I don't think that theory really counts as obvious, though... --

[issue11834] wrong module installation dir on Windows

2011-05-04 Thread anatoly techtonik
anatoly techtonik added the comment: It's always a pleasure. ;) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-04 Thread Nick Coghlan
Nick Coghlan added the comment: A quick eyeball of the test doesn't reveal anything obvious: - if the subprocess is failing, it is doing so in such a way that it is still returning a 0 error code and isn't writing anything to stdout (as those assertions are before the check that the expected

[issue11998] test_signal cannot test blocked signals if _tkinter is loaded

2011-05-04 Thread STINNER Victor
STINNER Victor added the comment: As suggested by Antoine, here is a patch to call Tcl_Finalize() in test_signal. You can call create a Tcl/Tk window, destroy it, call _tkinter._finalize(), and then create a new Tcl/Tk window. But call _tkinter._finalize() crashes if there is still a running

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-04 Thread STINNER Victor
STINNER Victor added the comment: > c) Skip the test if the _tkinter thread is present (...) I opened issue #11998 for the problem with test_signal and the _tkinter module. To get back green buildbots, I commited a workaround: New changeset 88dca05ed468 by Victor Stinner in branch 'default':

[issue11998] test_signal cannot test blocked signals if _tkinter is loaded

2011-05-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 88dca05ed468 by Victor Stinner in branch 'default': Issue #11998, issue #8407: workaround _tkinter issue in test_signal http://hg.python.org/cpython/rev/88dca05ed468 -- nosy: +python-dev ___ Python track

[issue11995] test_pydoc loads all Python modules

2011-05-04 Thread STINNER Victor
STINNER Victor added the comment: See also #11998 for test_signal and _tkinter issue (test_pydoc + test_signal). -- ___ Python tracker ___ __

[issue11998] test_signal cannot test blocked signals if _tkinter is loaded

2011-05-04 Thread STINNER Victor
New submission from STINNER Victor : I'm working on signals, especially on pthread_sigmask(), and I'm trying to understand test_signal failures. test_signal fails if the _tkinter module is loaded, because _tkinter loads the Tcl library which create a thread waiting events in select(). For exam

[issue11997] One typo in Doc/c-api/init.rst

2011-05-04 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: 11997.1.diff only corrects the typo, 11997.2.diff does also reformat. (Note that all of init.rst is hard to read on a 80 column terminal.) -- keywords: +patch Added file: http://bugs.python.org/file21880/11997.1.diff Added file: http://bugs.pyt

[issue11997] One typo in Doc/c-api/init.rst

2011-05-04 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso : Yes, i really found a typo. I'll send two patches, one with the typo fixed, and one with the typo fixed and one for which i've :setlocal tw=80:{gq} -- assignee: docs@python components: Documentation messages: 135107 nosy: docs@python, sdaoden

[issue4106] multiprocessing occasionally spits out exception during shutdown

2011-05-04 Thread Miquel Torres
Miquel Torres added the comment: I can confirm this but with Python 2.7.1 on Ubuntu 11.04 64bit My code was working with a queue that was being fed a two-string tuple. When i changed it to contain my custom Objects, it still worked correctly, but the main program doesn't end until it raises th

[issue8498] Cannot use backlog = 0 for sockets

2011-05-04 Thread Daniel Evers
Daniel Evers added the comment: Thanks for the tip. I added the unit test and uploaded my final patch (which includes all changes). Is it ok to remove the files I uploaded previously? -- Added file: http://bugs.python.org/file21879/backlog0_complete.patch _

[issue11990] redirected output - stdout writes newline as \n in windows

2011-05-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Do you have a test scipt for us to reproduce the issues? -- nosy: +amaury.forgeotdarc ___ Python tracker ___

[issue11996] libpython.py: nicer py-bt output

2011-05-04 Thread STINNER Victor
STINNER Victor added the comment: I would also like a less verbose output for where, especially be able to hidden the value of the globals argument of PyEval_EvalCodeEx. Example of where output: --- (gdb) where #0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.

[issue11996] libpython.py: nicer py-bt output

2011-05-04 Thread STINNER Victor
New submission from STINNER Victor : py-bt is too much verbose, I'm unable to read it. Example: $ gdb -args ./python -c 'import time, threading; threading.Thread(target=lambda:time.sleep(3)).start()' ... [New Thread 0x769d9700 (LWP 17193)] ^C Program received signal SIG

[issue11995] test_pydoc loads all Python modules

2011-05-04 Thread STINNER Victor
STINNER Victor added the comment: By the way, it is NOT POSSIBLE TO UNLOAD modules implemented in C, even if there is no more Python reference to the module. -- ___ Python tracker

[issue11995] test_pydoc loads all Python modules

2011-05-04 Thread STINNER Victor
New submission from STINNER Victor : PydocUrlHandlerTest.test_url_requests() of test_doc checks "search?key=pydoc" URL. This operation has to load all Python modules to get their documentation. The problem is that loading all modules can have border effects with other tests. The most recent ex

[issue6721] Locks in python standard library should be sanitized on fork

2011-05-04 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11994] [2.7/gcc-4.4.3] Segfault under valgrind in string.split()

2011-05-04 Thread STINNER Victor
STINNER Victor added the comment: > I can reproduce this only with gcc-4.4.3, so it could also be a compiler bug. You should try to disable compiler optimization: pass -O0 to gcc. E.g. use ./configure --with-pydebug CFLAGS="-O0". -- nosy: +haypo __