[issue11975] Fix intersphinx-ing of built-in types (list, int, ...)
Ezio Melotti ezio.melo...@gmail.com added the comment: See also #4966 and #11976. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11975 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4966] Improving Lib Doc Sequence Types Section
Ezio Melotti ezio.melo...@gmail.com added the comment: See also #11975 and #11976. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4966 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11967] Left shift and Right shift for floats
Martin v. Löwis mar...@v.loewis.de added the comment: Ok, I'm closing this as won't fix. Mark is our authority on these matters, and having two spellings for this fairly uncommon operation seems enough. -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11967 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11887] unittest fails on comparing str with bytes if python has the -bb option
STINNER Victor victor.stin...@haypocalc.com added the comment: Le lundi 02 mai 2011 07:05:28, vous avez écrit : * the patch introduces code/complexity in _baseAssertEqual and other places, using catch_warnings to change and restore the warning filters at every call; Yes, and what is the problem? I think that it is cheap: it copies a list, prepends an item to a short list, and then copies a reference (the previous list). I think that the patch is simple (it adds 3 with+simplefilter) and it doesn't add complexity, or you should define what complexity is :-) * this is needed only when Python is run with -b/-bb and that is quite uncommon (afaik); Buildbots use make buildbottest which run python with -bb (which is a good idea!). So all buildbots already use -bb since long time. I forgot the explain the usecase: I don't remember correctly, but a test failed on a buildbot, and I was unable to get more information because unittest failed too. * even if this is not fixed, a test suite that passes all the tests without -b/-bb will most likely pass with -b/-bb[0]; No. You have usually more failures with -bb than without any -b flag. Not in the test itself, but in a function called by the test. * if there are failing tests with -b/-bb, it's usually possible to remove the -b/-bb and fix them before re-adding -bb[1]; A test may only fail with -bb. Anyway, my problem is to be able to get more informations on a failure in a buildbot. I cannot change (easily) -bb flags on the buildbots (and I don't want to do that). When something goes wrong on a buildbot, in some cases it is very hard to reproduce the failure on my own computer. I want as much information as possible. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11887 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11839] argparse: unexpected behavior of default for FileType('w')
Stefan Pfeiffer stefan.pfeif...@gmail.com added the comment: Happens in 3.2, too... Would be nice to see that fixed. Stefan -- nosy: +Stefan.Pfeiffer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11839 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11975] Fix referencing of built-in types (list, int, ...)
Éric Araujo mer...@netwok.org added the comment: I changed the title: intersphinx is a Sphinx extension used to links to foreign documentation, not create links inside one doc (as I understand the request is). -- nosy: +eric.araujo stage: - needs patch title: Fix intersphinx-ing of built-in types (list, int, ...) - Fix referencing of built-in types (list, int, ...) versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11975 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11935] MMDF/MBOX mailbox need utime
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Sun, 1 May 2011 00:15:11 +0200, R. David Murray rep...@bugs.python.org wrote: The problem with this patch is that it would also show 'new mail' if what had in fact happened was that a message had been *deleted* (see the comments at the beginning of the flush method). So actually fixing this is a bit more complicated. Well i don't think so because MUA's do some further checks, like checking the size and of course the status of each mail; some indeed use the mtime as an entry-gate for further inspection. And deleting an entry should surely pass that gate, too. Please do see the file mbox.c of the mutt(1) source repository, which in fact seems to have been used as an almost copy-and-paste template for the implementation of large parts of mailbox.py. But note that i just search less than five minutes in mailbox.py to find a place where i can add the code of the patch (after i've added an identical workaround for my S-Postman), so of course it may not catch all cases. One error is obvious: it also sets the mtime for that Babylon format. I don't use emacs and i'm a buddhist so i don't care about that Babylon mess anyway. Right? A proper fix for this should also consider fixing issue 7359. Hm. #7359 refers to misconfiguration, not to Python or mailbox.py. Maybe Doc/library/mailbox.rst should be adjusted to give users which are new to UNIX a hint about ,group mail` and the set-group-ID on directories? I think this would really be a good thing?!?! Should i open an issue on that? But again, mailbox.py reflects almost one-to-one (except for the naive file lock handling in comparison and AFAIK) mutt(1)'s mbox.c, and i think that if mutt(1) does create-temp-work-work-work-rename then this should be ok for mailbox.py, too. Did you know that ,bin Laden` ment ,am loading` in german? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11935 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11935] MMDF/MBOX mailbox need utime
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: I'll attach a patch with a clearer comment (entry-gate instead new mail), i.e. the comment now reflects what MUAs really do. -- Added file: http://bugs.python.org/file21850/11935.2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11935 ___diff --git a/Lib/mailbox.py b/Lib/mailbox.py --- a/Lib/mailbox.py +++ b/Lib/mailbox.py @@ -692,6 +692,13 @@ self._file = open(self._path, 'rb+') self._toc = new_toc self._pending = False +# Set modification time to be after access time so that MMDF and MBOX +# mail readers detect changes (or perform further inspection to do so) +try: +currtime = time.time() +os.utime(self._path, (currtime-3, currtime)) +except: +pass if self._locked: _lock_file(self._file, dotlock=False) ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11935] MMDF/MBOX mailbox need utime
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: Removed file: http://bugs.python.org/file21795/mailbox.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11935 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11975] Fix referencing of built-in types (list, int, ...)
Jonas H. jo...@lophus.org added the comment: Actually I need to be able to intersphinx (because my documentation work is not the Python docs :-) but I guess it boils down to the same problem of incomplete Sphinx module/class indices. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11975 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10252] Fix resource warnings in distutils
Roundup Robot devnull@devnull added the comment: New changeset c02c78d93a2e by Éric Araujo in branch '2.7': Fix double use of f.close(). http://hg.python.org/cpython/rev/c02c78d93a2e -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10252 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8498] Cannot use backlog = 0 for sockets
Daniel Evers derm...@googlemail.com added the comment: To revive this issue, I tried to write a unit test to verify the behaviour. Onfurtunately, the test doesn't work and I don't understand why. I hope, someone here is more enlightend than me... (files: server.py, client.py) -- Added file: http://bugs.python.org/file21851/server.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8498] Cannot use backlog = 0 for sockets
Daniel Evers derm...@googlemail.com added the comment: (client.py) -- Added file: http://bugs.python.org/file21852/client.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11270] logging: RotatingFileHandler crash when opening the Logfile in an Texteditor
Alexander Vrchoticky alexander.vrchoti...@gmx.at added the comment: Thank you for the reply. I'll look into subclassing, but I am not convinced that there is a way to fix this: The basic problem is that one viewer has a file open, and the logger would like to start a new file with the same name. What would work, is to generate file names based on (say) the current day, as in Logfile-20110502.txt. This design avoids the problem that we're rolling over to files of the same name, but it is a different beast from RotatingFileHandler. That said, I think this issue should be reopened: RotatingFileHandler is a part of the standard library, and Windows is a supported platform. If the logger crashes because somebody is looking at a log file, this is a valid bug. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11270 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11887] unittest fails on comparing str with bytes if python has the -bb option
Ezio Melotti ezio.melo...@gmail.com added the comment: I think that the patch is simple (it adds 3 with+simplefilter) and it doesn't add complexity, or you should define what complexity is :-) The patch is indeed quite simple. but with it half of the code in _baseAssertEqual will be to deal with warnings for this corner case. Buildbots use make buildbottest which run python with -bb Yes, but make buildbottest is used just by the buildbots afaik. No. You have usually more failures with -bb than without any -b flag. Not in test itself, but in a function called by the test. That's what I meant, the tests will still work with -bb and the failures will be elsewhere (i.e. the patch won't change anything here). A test may only fail with -bb. If the failure is in the test, I would say that the test is probably wrong (see e.g. the assertNotEqual example in my previous message), if the failure is elsewhere the patch won't change anything. Anyway, my problem is to be able to get more informations on a failure in a buildbot. I cannot change (easily) -bb flags on the buildbots [...] On this I agree (that's why I'm -0.5 and not -1), but as I said it's a very specific situation, and my gut feeling is that it might not be worth fixing it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11887 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11887] unittest fails on comparing str with bytes if python has the -bb option
Nick Coghlan ncogh...@gmail.com added the comment: Rather than fiddling with the warnings filters, wouldn't it be easier to just catch BytesWarning and return False in that case? -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11887 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11978] Report correct coverage.py data for tests that invoke subprocesses
New submission from Nick Coghlan ncogh...@gmail.com: http://nedbatchelder.com/code/coverage/subprocess.html describes how to instruct a test suite that spawns subprocesses to correctly report coverage data for code covered only in those subprocesses. regrtest currently doesn't do this, so modules that use subprocesses to run their tests may report inaccurate coverage numbers when using this tool (as recommended in the devguide). (Those numbers are irredeemably inaccurate when it comes to regrtest's own coverage assessment) It may be better to build explicit invocation of coverage.py when regrtest is run under coverage.py into test.script_helper rather than trying to use the implicit mechanism though (as neither sitecustomize nor a .pth file are particularly good ideas when running Python's own test suite). -- messages: 134967 nosy: brett.cannon, ncoghlan, nedbat priority: normal severity: normal status: open title: Report correct coverage.py data for tests that invoke subprocesses type: feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11978 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11887] unittest fails on comparing str with bytes if python has the -bb option
STINNER Victor victor.stin...@haypocalc.com added the comment: Rather than fiddling with the warnings filters, wouldn't it be easier to just catch BytesWarning and return False in that case? It's another possible solution, but it would display a warning using python -b. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11887 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11979] Minor improvements to the Sockets readme: typos, wording and sphinx features usage
New submission from Xavier Morel xavier.mo...@masklinn.net: First patch fixes a typo (the reads a reply - then reads a reply) and — I believe — improves the wording of a pair of sentences. Second patch makes use of Sphinx's ``:abbr:`` role, and removes some period which I think are redundant with the use of ``::`` -- assignee: docs@python components: Documentation files: wording messages: 134970 nosy: docs@python, xmorel priority: normal severity: normal status: open title: Minor improvements to the Sockets readme: typos, wording and sphinx features usage versions: Python 3.3 Added file: http://bugs.python.org/file21853/wording ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11979 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11979] Minor improvements to the Sockets readme: typos, wording and sphinx features usage
Changes by Xavier Morel xavier.mo...@masklinn.net: Added file: http://bugs.python.org/file21854/sphinx-features ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11979 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10419] distutils command build_scripts fails with UnicodeDecodeError
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: copy_script-2.patch uses os.fsencode(), which doesn't exist in Python 3.1. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10419 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10419] distutils command build_scripts fails with UnicodeDecodeError
STINNER Victor victor.stin...@haypocalc.com added the comment: copy_script-2.patch uses os.fsencode(), which doesn't exist in Python 3.1. Correct, with Python 3.1, you can use filename.encode(sys.getfilesystemencoding(), 'surrogateescape'). But you must use os.fsencode() with Python = 3.2 because on Windows, you cannot use surrogateescape with MBCS (you should use the strict error handler). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10419 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8407] expose signalfd(2) and pthread_sigmask in the signal module
STINNER Victor victor.stin...@haypocalc.com added the comment: test_signal.PthreadSigmaskTests fails on Mac OS X. http://www.python.org/dev/buildbot/all/builders/PPC Leopard 3.x/builds/1785/steps/test/logs/stdio http://www.python.org/dev/buildbot/all/builders/PPC Tiger 3.x/builds/1748/steps/test/logs/stdio --- [186/354] test_signal make: *** [buildbottest] User defined signal 1 http://www.python.org/dev/buildbot/all/builders/x86 Tiger 3.x/builds/2429/steps/test/logs/stdio --- Re-running test 'test_signal' in verbose mode ... test_arguments (test.test_signal.PthreadSigmaskTests) ... ok test_block_unlock (test.test_signal.PthreadSigmaskTests) ... make: *** [buildbottest] User defined signal 1 program finished with exit code 2 --- -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8407 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11277] Crash with mmap and sparse files on Mac OS X
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Mon, 2 May 2011 01:22:41 +0200, STINNER Victor rep...@bugs.python.org wrote: @sdaoden: Can you try on Python 2.7? @haypo: Python 2.7 is absolute horror. But i tried and produced a (terrible - i don't know the test framework and that test_support stuff seems to have been changed a lot since 2.7) 2 gigabyte+ big buffer test for 2.7. (Of course: even though Python uses int, ZLib uses uInt.) It took some time because i fell over #1202 from 2007 unprepared. The (nasty) test works quite well on Apple, which is not such a big surprise, because Apple's OS X is especially designed for artists which need to work on large files, like video+ cutters, sound designers with sample databases etc., so i would be terribly disappointed if that wouldn't work! Apple even propagandize OS X for, and makes money with that very application task - i really couldn't understand your doubts here. -- Added file: http://bugs.python.org/file21855/11277-27.1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11277 ___diff --git a/Lib/test/test_zlib.py b/Lib/test/test_zlib.py --- a/Lib/test/test_zlib.py +++ b/Lib/test/test_zlib.py @@ -1,10 +1,16 @@ import unittest -from test import test_support +from test.test_support import TESTFN, run_unittest, import_module, unlink, requires +from test.test_support import precisionbigmemtest, _1G, _2G import binascii import random -from test.test_support import precisionbigmemtest, _1G +import sys -zlib = test_support.import_module('zlib') +try: +import mmap +except ImportError: +mmap = None + +zlib = import_module('zlib') class ChecksumTestCase(unittest.TestCase): @@ -66,6 +72,32 @@ zlib.crc32('spam', (2**31))) +# Issue #10276 - check that inputs =4GB are handled correctly. +# Backport to 2.7 due to Issue #11277: why not verify INT32_MAX on 2.7? +# Also take care of Issue #1202 here +class ChecksumBigBufferTestCase(unittest.TestCase): +@unittest.skipUnless(mmap, mmap() is not available.) +def test_big_buffer(self): +if sys.platform[:3] == 'win' or sys.platform == 'darwin': +requires('largefile', +'test requires %s bytes and a long time to run' % str(_2G+2)) +try: +with open(TESTFN, wb+) as f: +f.seek(_2G-2) +f.write(asdf) +f.flush() +try: +m = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ) +self.assertEqual(zlib.crc32(m), -2072986226) +self.assertEqual(zlib.adler32(m), -2072641121) +finally: +m.close() +except (IOError, OverflowError): +raise unittest.SkipTest(filesystem doesn't have largefile support) +finally: +unlink(TESTFN) + + class ExceptionTestCase(unittest.TestCase): # make sure we generate some expected errors def test_badlevel(self): @@ -546,8 +578,9 @@ def test_main(): -test_support.run_unittest( +run_unittest( ChecksumTestCase, +ChecksumBigBufferTestCase, ExceptionTestCase, CompressTestCase, CompressObjectTestCase ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11277] Crash with mmap and sparse files on Mac OS X
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: Removed file: http://bugs.python.org/file21673/11277.zsum32.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11277 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11887] unittest fails on comparing str with bytes if python has the -bb option
Nick Coghlan ncogh...@gmail.com added the comment: I'm OK with that - I'd actually suggest explicitly *emitting* a warning when the error is suppressed under -bb, as Ezio is right that even tests should be keeping their bytes/str separation straight. I don't like completely suppressing warnings/errors when a user has explicitly requested them. I'd also be OK with a filtering approach that coerced the handling to default rather than ignore (although that require a bit more work to keep unittest from acting as though -b was always set on the command line). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11887 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1104] msilib.SummaryInfo.GetProperty() truncates the string by one character
Eric V. Smith e...@trueblade.com added the comment: This patch seems okay to me, as far as it goes. I'd like to hear Martin's feedback, but I think it should be committed. And I realize the rest of this message doesn't apply to the patch, but it does address other problems in summary_getproperty(). At least one of these led to the original problem with the truncated character. 1. It's not clear to me that the malloc() call only occurs if the type is VT_LPSTR. But that's the only case where free() is called. I think it would be better to move the call to free() to a cleanup section at the end of the function. 2. The status is never checked for success, just for one specific failure. I think both calls to MsiSummaryInfoGetProperty should be looking for ERROR_SUCCESS. 3. I don't think VT_FILETIME is special enough for its own error message. It should just be caught with all other unknown types. Maybe these last 3 should get their own new issue. -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1104 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11277] Crash with mmap and sparse files on Mac OS X
STINNER Victor victor.stin...@haypocalc.com added the comment: @haypo: Python 2.7 is absolute horror. Oh, zlib doesn't use PY_SSIZE_T_CLEAN in Python 2.7. 11277-27.1.diff contains # Issue #10276 - check that inputs =4GB are handled correctly.. I don't understand this comment because the test uses a buffer of 2 GB + 2 bytes. How is it possible to pass a buffer of 2 GB+2 bytes to crc32(), whereas it stores the size into an int. The maximum size is INT_MAX which is 2 GB-1 byte. It looks like the i format of PyArg_ParseTuple() doesn't check for integer overflow = issue #8651. This issue was fixed in 3.1, 3.2 and 3.3, but not in Python 2. Should we fix Python 2.7? - backport issue #8651 - use PY_SSIZE_T_CLEAN in zlibmodule.c -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11277 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8407] expose signalfd(2) and pthread_sigmask in the signal module
STINNER Victor victor.stin...@haypocalc.com added the comment: Update signalfd patch. -- Added file: http://bugs.python.org/file21856/signalfd-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8407 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8407] expose signalfd(2) and pthread_sigmask in the signal module
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file21841/signalfd.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8407 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11975] Fix referencing of built-in types (list, int, ...)
Benjamin Peterson benja...@python.org added the comment: FWIW, :func:`int/float` work IIRC. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11975 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11779] test_mmap.test_large_offset() timeout (1 hour) on AMD64 Snow Leopard 3.x buildbot
STINNER Victor victor.stin...@haypocalc.com added the comment: I commited Steffen's patch for mmap. We will see if it improves the situation. New changeset d578fdc9b157 by Victor Stinner in branch 'default': (Merge 3.2) Issue #11277: mmap.mmap() calls fcntl(fd, F_FULLFSYNC) on Mac OS X http://hg.python.org/cpython/rev/d578fdc9b157 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11779 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8407] expose signalfd(2) and pthread_sigmask in the signal module
Antoine Pitrou pit...@free.fr added the comment: Update signalfd patch. -- Added file: http://bugs.python.org/file21856/signalfd-2.patch - In the tests, you don't need sys.exc_info(), just except XXXError as e. - In the doc, you wrote file description instead of file descriptor - In test_out_of_range_signal, you should use assertRaises -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8407 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8407] expose signalfd(2) and pthread_sigmask in the signal module
STINNER Victor victor.stin...@haypocalc.com added the comment: Fixed: updated patch (version 3). -- Added file: http://bugs.python.org/file21857/signalfd-3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8407 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8407] expose signalfd(2) and pthread_sigmask in the signal module
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file21856/signalfd-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8407 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11361] suggestion for os.kill(pid,CTRL_C_EVENT) in tests
STINNER Victor victor.stin...@haypocalc.com added the comment: http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.x/builds/4483/steps/test/logs/stdio -- test test_os failed -- Traceback (most recent call last): File D:\cygwin\home\db3l\buildarea\3.x.bolen-windows\build\lib\test\test_os.py, line 1177, in test_CTRL_BREAK_EVENT self._kill_with_event(signal.CTRL_BREAK_EVENT, CTRL_BREAK_EVENT) File D:\cygwin\home\db3l\buildarea\3.x.bolen-windows\build\lib\test\test_os.py, line 1155, in _kill_with_event self.fail(subprocess did not stop on {}.format(name)) AssertionError: subprocess did not stop on CTRL_BREAK_EVENT -- -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11361 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10496] import site failed when Python can't find home directory (sysconfig._getuserbase)
STINNER Victor victor.stin...@haypocalc.com added the comment: I would like Tarek to make a call on this. So Tarek, what do you think? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10496 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11975] Fix referencing of built-in types (list, int, ...)
Jonas H. jo...@lophus.org added the comment: Indeed they do; but documentation writers need to know that `int()` and `float()` are functions, which is counterintuitive. (and a CPython implementation detail) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11975 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11975] Fix referencing of built-in types (list, int, ...)
Benjamin Peterson benja...@python.org added the comment: 2011/5/2 Jonas H. rep...@bugs.python.org: Jonas H. jo...@lophus.org added the comment: Indeed they do; but documentation writers need to know that `int()` and `float()` are functions, which is counterintuitive. (and a CPython implementation detail) They're not even functions, just documented as such. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11975 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10496] import site failed when Python can't find home directory (sysconfig._getuserbase)
Tarek Ziadé ziade.ta...@gmail.com added the comment: As discussed w/ Victor, a process should be able to run Python even if its user does not have a home. So the call to _getuserbase() should be protected. But then we have to control that all the code that uses CONFIG_VARS['userbase'] is protected when the value is not set. I am thinking about per-user installation and such things: we need to make sure everything is checking this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10496 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11930] Remove time.accept2dyear
Roundup Robot devnull@devnull added the comment: New changeset e6f6ac8c2502 by Alexander Belopolsky in branch 'default': Issue #11930: Remove deprecated time.accept2dyear. http://hg.python.org/cpython/rev/e6f6ac8c2502 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11980] zipfile.ZipFile.write should accept fp as argument
New submission from Johan Euphrosine pro...@google.com: Currently it only accept a filename (and writestr only accept bytes). -- components: Library (Lib) messages: 134989 nosy: Johan.Euphrosine priority: normal severity: normal status: open title: zipfile.ZipFile.write should accept fp as argument type: feature request versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11980 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11981] duplicated self.fp.tell() in zipfile.ZipFile.writestr
New submission from Johan Euphrosine pro...@google.com: See: http://hg.python.org/cpython/file/2e3346fc880f/Lib/zipfile.py#l1168 http://hg.python.org/cpython/file/2e3346fc880f/Lib/zipfile.py#l1182 -- messages: 134990 nosy: Johan.Euphrosine priority: normal severity: normal status: open title: duplicated self.fp.tell() in zipfile.ZipFile.writestr versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11981 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11981] duplicated self.fp.tell() in zipfile.ZipFile.writestr
Changes by Johan Euphrosine pro...@google.com: -- components: +Library (Lib) type: - performance ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11981 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11270] logging: RotatingFileHandler crash when opening the Logfile in an Texteditor
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: There is already a TimedRotatingHandler for generating file names based on dates. However, it rotates based on time, not size. I don't agree that this is a bug just because Windows is a supported platform; the problems in this issue are due to a shortcoming in Windows. There is no universally acceptable obvious strategy to deal with this shortcoming. If you know of one, please elaborate. You make no comment about my suggestion to copy files to another location before viewing. This is not fundamentally a logging issue; any attempt to call os.rename or os.unlink will fail on Windows if the file is kept open in, say, a text editor. Logging cannot take an obvious alternative path in this case, and for that reason, IMO this issue should remain closed. I do not recommend raising an issue against the os module, either ;-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11270 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11849] glibc allocator doesn't release all free()ed memory
Charles-François Natali neolo...@free.fr added the comment: I've had some time to look at this, and I've written a quick demo patch that should - hopefully - fix this, and reduce memory fragmentation. A little bit of background first: - a couple years ago (probably true when pymalloc was designed and merged), glibc's malloc used brk for small and medium allocations, and mmap for large allocations, to reduce memory fragmentation (also, because of the processes' VM layout in older Linux 32-bit kernels, you couldn't have a heap bigger than 1GB). The threshold for routing requests to mmap was fixed, and had a default of 256KB (exactly the size of an pymalloc arena). Thus, all arenas were allocated with mmap - in 2006, a patch was merged to make this mmap threshold dynamic, see http://sources.redhat.com/ml/libc-alpha/2006-03/msg00033.html for more details - as a consequence, with modern glibc/elibc versions, the first arenas will be allocated through mmap, but as soon as one of them is freed, subsequent arenas allocation will be allocated from the heap through brk, and not mmap - imagine the following happens : 1) program creates many objects 2) to store those objects, many arenas are allocated from the heap through brk 3) program destroys all the objects created, except 1 which is in the last allocated arena 4) since the arena has at least one object in it, it's not deallocated, and thus the heap doesn't shrink, and the memory usage remains high (with a huge hole between the base of the heap and its top) Note that 3) can be a single leaked reference, or just a variable that doesn't get deallocated immediately. As an example, here's a demo program that should exhibit this behaviour: import sys import gc # allocate/de-allocate/re-allocate the array to make sure that arenas are # allocated through brk tab = [] for i in range(100): tab.append(i) tab = [] for i in range(100): tab.append(i) print('after allocation') sys.stdin.read(1) # allocate a dict at the top of the heap (actually it works even without) this a = {} # deallocate the big array del tab print('after deallocation') sys.stdin.read(1) # collect gc.collect() print('after collection') sys.stdin.read(1) You should see that even after the big array has been deallocated and collected, the memory usage doesn't decrease. Also, there's another factor coming into play, the linked list of arenas (arenas variable in Object/obmalloc.c), which is expanded when there are not enough arenas allocated: if this variable is realloc()ed while the heap is really large and whithout hole in it, it will be allocated from the top of the heap, and since it's not resized when the number of used arenas goes down, it will remain at the top of the heap and will also prevent the heap from shrinking. My demo patch (pymem.diff) thus does two things: 1) use mallopt to fix the mmap threshold so that arenas are allocated through mmap 2) increase the maximum size of requests handled by pymalloc from 256B to 512B (as discussed above with Antoine). The reason is that if a PyObject_Malloc request is not handled by pymalloc from an arena (i.e. greater than 256B) and is less than the mmap threshold, then we can't do anything if it's not freed and remains in the middle of the heap. That's exactly what's happening in the OP case, some dictionnaries aren't deallocated even after the collection (I couldn't quite identify them, but there seems to be some UTF-8 codecs and other stuff) To sum up, this patch increases greatly the likelihood of Python's objects being allocated from arenas which should reduce fragmentation (and seems to speed up certain operations quite a bit), and ensures that arenas are allocated from mmap so that a single dangling object doesn't prevent the heap from being trimmed. I've tested it on RHEL6 64-bit and Debian 32-bit, but it'd be great if someone else could try it - and of course comment on the above explanation/proposed solution. Here's the result on Debian 32-bit: Without patch: *** Python 3.3.0 alpha --- PID TTY STAT TIME MAJFL TRS DRS RSS %MEM COMMAND 0 1843 pts/1S+ 0:00 1 1795 9892 7528 0.5 ./python /home/cf/issue11849_test.py 1 1843 pts/1S+ 0:16 1 1795 63584 60928 4.7 ./python /home/cf/issue11849_test.py 2 1843 pts/1S+ 0:33 1 1795 112772 109064 8.4 ./python /home/cf/issue11849_test.py 3 1843 pts/1S+ 0:50 1 1795 162140 159424 12.3 ./python /home/cf/issue11849_test.py 4 1843 pts/1S+ 1:06 1 1795 211376 207608 16.0 ./python /home/cf/issue11849_test.py END 1843 pts/1S+ 1:25 1 1795 260560 256888 19.8 ./python /home/cf/issue11849_test.py GC 1843 pts/1S+ 1:26 1 1795 207276 204932 15.8 ./python /home/cf/issue11849_test.py With patch: *** Python 3.3.0 alpha --- PID TTY STAT TIME MAJFL TRS DRS RSS %MEM COMMAND 0 1996 pts/1S+ 0:00
[issue11834] wrong module installation dir on Windows
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: docs@python - nosy: +brian.curtin, tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11834 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11930] Remove time.accept2dyear
Roundup Robot devnull@devnull added the comment: New changeset db2ac3dc6cc2 by Alexander Belopolsky in branch 'default': Issue #11930: Remove year = 1000 limitation from datetime.strftime. http://hg.python.org/cpython/rev/db2ac3dc6cc2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11930] Remove time.accept2dyear
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- components: +Extension Modules, Library (Lib) resolution: - accepted stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11335] Memory leak after key function failure in sort
Daniel Stutzbach stutzb...@google.com added the comment: I checked in a fix to 3.3 just before the transition to hg. I confess that I've been procrastinating on getting hg set up properly, which is why I haven't gotten to checking this in to 3.2. Georg, if I get this in by Wednesday, will that be soon enough for your schedule for 3.2.1? (it sounds like it will be) -- nosy: +georg.brandl priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11335 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11849] glibc allocator doesn't release all free()ed memory
Antoine Pitrou pit...@free.fr added the comment: This is a very interesting patch, thank you. I've tested it on Mandriva 64-bit and it indeed fixes the free() issue on the XML workload. I see no regression on pybench, stringbench or json/pickle benchmarks. I guess the final patch will have to guard the mallopt() call with some #ifdef? (also, I suppose a portable solution would have to call mmap() ourselves for allocation of arenas, but that would probably be a bit more involved) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11849 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11930] Remove time.accept2dyear
Roundup Robot devnull@devnull added the comment: New changeset bfd741162741 by Alexander Belopolsky in branch 'default': Issue #11930: Added Misc/NEWS and versionchanged entries. http://hg.python.org/cpython/rev/bfd741162741 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11962] FreeBSD-AMD64 bot sporadic hanging
Stefan Krah stefan-use...@bytereef.org added the comment: Going through the logs, this indeed looks like a buildbot software issue to me. I attach the logs that correspond to this incident: http://www.python.org/dev/buildbot/all/builders/AMD64%20FreeBSD%208.2%203.2/builds/85 After ... 2011-04-30 01:10:56+0200 [Broker,client] closing stdin 2011-04-30 01:10:56+0200 [Broker,client] using PTY: False ... normally you should see: ... [-] command finished with signal None, exit code 0, elapsedTime: But there is nothing until I restarted the bot. -- Added file: http://bugs.python.org/file21860/freebsd-amd64-log.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11962 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11888] Add C99's log2() function to the math library
Mark Dickinson dicki...@gmail.com added the comment: Here's a patch implementing log2. Still to do: use the system log2 where available. -- keywords: +patch Added file: http://bugs.python.org/file21861/issue11888.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11888 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11935] MMDF/MBOX mailbox need utime
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Sun, 1 May 2011 00:15:11 +0200, R. David Murray rep...@bugs.python.org wrote: So actually fixing this is a bit more complicated. I like Pear OS X! I've just tried around a bit with the other of the Pear OS filesystems (claims to support two fsys: HFS+ and HFS, case sensitive, the latter may indeed be UFS). The following (reduced) HFS, case sensitive (UFS?) session brings out the problem: Access: Mon May 2 20:49:51 2011 Modify: Mon May 2 20:49:30 2011 Change: Mon May 2 20:49:50 2011 os.utime('org.python', (t-3,t)) Access: Mon May 2 20:50:19 2011 Modify: Mon May 2 20:49:30 2011 Change: Mon May 2 20:50:17 2011 os.utime('org.python', (t-3,t)) Access: Mon May 2 20:51:12 2011 Modify: Mon May 2 20:49:30 2011 Change: Mon May 2 20:51:11 2011 Thus the HFS, case sensitive (UFS?) implementation of f?utimes(2) updates ctime. It also updates atime to one+ second *after* ctime. Well, i'm lucky it doesn't update mtime too, because ,man 2 stat` *does* document it!!! So, to get around yet another Pear OS X bug (unless it's really UFS which, then, maybe has been taken as-is from FreeBSD??) i've changed the S-Postman to do os.utime(self._path, (currtime, currtime+2.42)) instead, i.e. i'm using a future date. B-/ I don't think this approach can be used by Python, however. Non-believers: posix.stat_result(...st_atime=1304363003, st_mtime=1304363005, st_ctime=1304363005) print(os.stat('org.python')) posix.stat_result(...st_atime=1304363011, st_mtime=1304363005, st_ctime=1304363005) So in fact it seems as if asynchronously the atime is updated once again by someone, don't know who, because actually this system is non-journaled. Pear OS X is a Microkernel, AFAIK. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11935 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11335] Memory leak after key function failure in sort
Georg Brandl ge...@python.org added the comment: Sure, Wednesday will be fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11335 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11888] Add C99's log2() function to the math library
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Wow Mark, that is really nice work. Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11888 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11967] Left shift and Right shift for floats
Raymond Hettinger raymond.hettin...@gmail.com added the comment: A hint that the idea would be useful is that there is an FPU instruction, FSCALE, devoted to this. However, a hint that this isn't needed is that Fortran and MATLAB don't have it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11967 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11935] MMDF/MBOX mailbox need utime
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Sorry, the last message has been truncated, i've opened http://psf.upfronthosting.co.za/roundup/meta/issue397. Forget the first line, but for non-believers: PYP$ t=time.time(); os.utime('org.python', (t-2.42,t)); print(os.stat('org.python')) posix.stat_result(...st_atime=1304363003, st_mtime=1304363005, st_ctime=1304363005) PYP$ print(os.stat('org.python')) posix.stat_result(...st_atime=1304363011, st_mtime=1304363005, st_ctime=1304363005) -- versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11935 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9971] Optimize BufferedReader.readinto
Changes by Antoine Pitrou pit...@free.fr: -- versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9971 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10044] small int optimization
Changes by Antoine Pitrou pit...@free.fr: -- versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10044 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11866] race condition in threading._newname()
Antoine Pitrou pit...@free.fr added the comment: Do you want to provide a patch? -- components: +Library (Lib) -Extension Modules nosy: +pitrou versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11866 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10978] Add optional argument to Semaphore.release for releasing multiple threads
Antoine Pitrou pit...@free.fr added the comment: Your patch uses tabs for indentation. Otherwise, looks good on the principle. -- nosy: +pitrou stage: - patch review type: behavior - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10978 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6715] xz compressor support
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1856] shutdown (exit) can hang or segfault with daemon threads running
Antoine Pitrou pit...@free.fr added the comment: With Python 3.3, thread_exit.py still crashes more or less randomly: $ ./python thread_exit.py [49205 refs] python: Python/_warnings.c:501: setup_context: Assertion `((PyObject*)(*filename))-ob_type))-tp_flags ((1L28))) != 0)' failed. Abandon -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1856 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11967] Left shift and Right shift for floats
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11967 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1856] shutdown (exit) can hang or segfault with daemon threads running
Antoine Pitrou pit...@free.fr added the comment: A patch that seems to work under Linux and Windows (for 3.2/3.3). -- nosy: +haypo stage: - patch review Added file: http://bugs.python.org/file21862/finalizing.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1856 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11930] Remove time.accept2dyear
STINNER Victor victor.stin...@haypocalc.com added the comment: New changeset e6f6ac8c2502 by Alexander Belopolsky in branch 'default': Issue #11930: Remove deprecated time.accept2dyear. Great! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8808] imaplib should support SSL contexts
Sijin Joseph sijinjos...@gmail.com added the comment: Thanks Antoine. I've attached an updated patch. - the keyfile / certfile pair and the context parameter should be mutually exclusive (see e.g. the POP3_SSL constructor in Lib/poplib.py) [Sijin] - Yes, Thanks, I don't know why I didn't check POP3 impl before. - I don't think the remote test server used in test_imaplib supports client certificates, it probably just ignores them; that said, it's better than nothing [Sijin] - Agreed, I don't think the server supports client certificates, but at least we are able to test that the connect still works. Maybe we should open a new task to have a remote server that supports client certificate connections? We could use that in test cases for other SSL related modules. - you have a misindented line in test_logincapa [Sijin] - Fixed. - since we're using a remote, third-party test server, it may be better not to do any spurious connects (in the current patch, a first connection is established in the setUp() and then ignored since another one is established in the test body) [Sijin] - Fixed. - you need to update the documentation in Doc/library/imaplib.rst [Sijin] - Done. Also added some corresponding info in the poplib and docs for poplib. -- Added file: http://bugs.python.org/file21863/8808.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8808 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11849] glibc allocator doesn't release all free()ed memory
Charles-François Natali neolo...@free.fr added the comment: I guess the final patch will have to guard the mallopt() call with some #ifdef? Yes. See attached patch pymalloc_frag.diff It's the first time I'm playing with autotools, so please review this part really carefully ;-) (also, I suppose a portable solution would have to call mmap() ourselves for allocation of arenas, but that would probably be a bit more involved) Yes. But since it probably only affects glibc/eglibc malloc versions, I guess that target implementations are likely to provide mallopt(M_MMAP_THRESHOLD). Also, performing an anonymous mappings varies even among Unices (the mmapmodule code is scary). I'm not talking about Windows, which I don't know at all. -- Added file: http://bugs.python.org/file21864/pymalloc_frag.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11849 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11849] glibc allocator doesn't release all free()ed memory
Changes by Charles-François Natali neolo...@free.fr: Removed file: http://bugs.python.org/file21696/gc_trim.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11849 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11849] glibc allocator doesn't release all free()ed memory
Changes by Charles-François Natali neolo...@free.fr: Removed file: http://bugs.python.org/file21858/pymem.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11849 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1856] shutdown (exit) can hang or segfault with daemon threads running
Changes by Andreas Stührk andy-pyt...@hammerhartes.de: -- nosy: +Trundle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1856 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8407] expose signalfd(2) and pthread_sigmask in the signal module
STINNER Victor victor.stin...@haypocalc.com added the comment: test_signal.PthreadSigmaskTests fails on Mac OS X. The problem is that sometimes SIG_UNBLOCK does not immediatly call the pending signal, but it calls it later. The problem is that I don't know exactly when. I tried to wait the pending signal using signal.pause(), but I got a bus error!? Example of the problem: pthread_sigmask(SIG_BLOCK, [SIGUSR1]) os.kill(os.getpid(), SIGUSR1) pthread_sigmask(SIG_UNBLOCK, [SIGUSR1]) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8407 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6721] Locks in python standard library should be sanitized on fork
Antoine Pitrou pit...@free.fr added the comment: I encountered this issue while debugging some multiprocessing code; fork() would be called from one thread while sys.stdout was in use in another thread (simply because of a couple of debugging statements). As a result the IO lock would be already taken in the child process and any operation on sys.stdout would deadlock. This is definitely something that can happen more easily than I thought. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6721 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly
Antoine Pitrou pit...@free.fr added the comment: Here is a proof-of-concept patch that makes concurrent.futures able to detect killed processes. Works only under POSIX, and needs issue11743. I'm not sure it's a good idea to change the multiprocessing public API (SimpleQueue.get()) for this. -- keywords: +patch Added file: http://bugs.python.org/file21865/sentinels.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9205 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11982] json.loads() returns str instead of unicode for empty strings
New submission from Manuel Cerón ceron...@gmail.com: Python 2.7.1: import json json.loads('hello') u'hello' .json.loads('') '' Related: issue 10038 -- components: Library (Lib) messages: 135014 nosy: ceronman priority: normal severity: normal status: open title: json.loads() returns str instead of unicode for empty strings type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11982 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11983] Inconsistent hash and comparison for code objects
New submission from Eugene Toder elto...@gmail.com: A comment in the definition of PyCodeObject in Include/code.h says: /* The rest doesn't count for hash or comparisons */ which, I think, makes a lot of sense. The implementation doesn't follow this comment, though. code_hash actually includes co_name and code_richcompare includes co_name and co_firstlineno. This makes hash and comparison inconsistent with each other and with the comment. -- components: Interpreter Core messages: 135015 nosy: eltoder priority: normal severity: normal status: open title: Inconsistent hash and comparison for code objects type: behavior versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11983 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11873] test_regexp() of test_compileall failure on x86 OpenIndiana 3.x
Jesús Cea Avión j...@jcea.es added the comment: Same here. I am using a standard ZFS configuration. If the child finish doing its job, the file should be there. Are we sure no errors happens in the child?. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11873 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10169] socket.sendto raises incorrect exception when passed incorrect types
Changes by Jeong-Min Lee false...@gmail.com: -- nosy: +falsetru ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10169 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11983] Inconsistent hash and comparison for code objects
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11983 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com