[issue19590] Use specific asserts in test_email

2013-11-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which includes only added changes. Such small and straightforward changes are easier to review by looking at colorized `hg diff` output. -- Added file: http://bugs.python.org/file32630/test_email_asserts_2_diff.patch

[issue19530] cross thread shutdown of UDP socket exhibits unexpected behavior

2013-11-14 Thread mpb
mpb added the comment: Someone wrote a kernel patch based on my bug report. http://www.spinics.net/lists/netdev/msg257653.html -- ___ Python tracker ___

[issue19597] Add decorator for tests not yet implemented

2013-11-14 Thread Zachary Ware
Zachary Ware added the comment: This patch takes the idea a little further, adding a command line option to regrtest, '--failnoimpl' (it could use a better name). With this option specified any test decorated by support.not_implemented will not be marked as an expected failure, allowing the No

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-14 Thread Eric Snow
Eric Snow added the comment: Cool. Roundup linked the revision hash to the feature clone. :) -- ___ Python tracker ___ ___ Python-bug

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-14 Thread Eric Snow
Eric Snow added the comment: FYI, as of cc7ebd952777 the bulk of the implementation in features/pep-451 is working. There is a failing test on the Windows Server 2003 buildbot (which I'm trying to track down). I haven't been able to reproduce the failure on other buildbots, on my local Ubunt

[issue19590] Use specific asserts in test_email

2013-11-14 Thread R. David Murray
R. David Murray added the comment: Any chance of getting a patch with the just the added changes? I'd rather not fish through the stuff I've already looked at looking for the new stuff. I'm of two minds about the advisability of backporting this. -- __

[issue19553] PEP 453: "make install" and "make altinstall" integration

2013-11-14 Thread Ned Deily
Changes by Ned Deily : -- assignee: -> ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue19598] Timeout in test_popen() of test_asyncio.test_windows_utils.PopenTests

2013-11-14 Thread Guido van Rossum
Guido van Rossum added the comment: Likely. Can you suggest a fix? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue19599] Failure of test_async_timeout() of test_multiprocessing_spawn: TimeoutError not raised

2013-11-14 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/x86%20Windows%20Server%202003%20%5BSB%5D%203.x/builds/1716/steps/test/logs/stdio and http://buildbot.python.org/all/builders/x86%20Windows7%203.x/builds/7529/steps/test/logs/stdio

[issue19598] Timeout in test_popen() of test_asyncio.test_windows_utils.PopenTests

2013-11-14 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/x86%20Windows7%203.x/builds/7528/steps/test/logs/stdio ... test_popen (test.test_asyncio.test_windows_utils.PopenTests) ... FAIL test_winsocketpair (test.test_asyncio.test_windows_utils.WinsocketpairTests) ... ok test_w

[issue19466] Clear state of threads earlier in Python shutdown

2013-11-14 Thread STINNER Victor
STINNER Victor added the comment: The fix raised a new issue: #19565. I also saw a crash on Windows which is probably related: http://buildbot.python.org/all/builders/x86 Windows Server 2003 [SB] 3.x/builds/1717/steps/test/logs/stdio ==

[issue19580] Got resource warning when running test_base_events (test_asyncio)

2013-11-14 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue19590] Use specific asserts in test_email

2013-11-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And here is a patch for 2.7. -- versions: +Python 2.7 Added file: http://bugs.python.org/file32628/test_email_asserts_2-2.7.patch ___ Python tracker _

[issue19590] Use specific asserts in test_email

2013-11-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is larger patch (some asserts were aliased). It is applicable to 3.3 too. -- versions: +Python 3.3 Added file: http://bugs.python.org/file32627/test_email_asserts_2.patch ___ Python tracker

[issue16510] Using appropriate checks in tests

2013-11-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think there are two counterargument to leaving things alone. 1. The reason for the specialized checks is to change behavior when the test fails, to give more informative error messages. So the change is not purely cosmetic or stylistic. I believe there was a

[issue19585] Frame annotation

2013-11-14 Thread Nick Coghlan
Nick Coghlan added the comment: Aye, it would. The improved exception chaining and frame hiding ideas in issue 18861 are also related. The part I particularly like in Walter's suggestion is the idea of a "frame description" that is displayed in the traceback for that frame, without the traceback

[issue19597] Add decorator for tests not yet implemented

2013-11-14 Thread Zachary Ware
New submission from Zachary Ware: Some tests in the test suite are not implemented for one reason or another, and most of these are defined simply as "def test_thats_not_implemented(self): pass", possibly with a comment meant to be a reminder to implement it. This patch adds a decorator to te

[issue19572] Report more silently skipped tests as skipped

2013-11-14 Thread Zachary Ware
Zachary Ware added the comment: Here's a new patch to address the reviews from Serhiy and Ezio (thanks to you both!). -- versions: +Python 2.7 Added file: http://bugs.python.org/file32625/skiptest_not_return_or_pass.v3.diff ___ Python tracker

[issue19590] Use specific asserts in test_email

2013-11-14 Thread R. David Murray
R. David Murray added the comment: Looks fine to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue19595] Silently skipped test in test_winsound

2013-11-14 Thread Zachary Ware
Zachary Ware added the comment: It doesn't appear to; at least on 3.4 an unexpected success is silently ignored by regrtest in non-verbose mode and added to the report in verbose mode (e.g., "OK (skipped=1, unexpected successes=1)") or when run alone. -- __

[issue19429] OSError constructor does not handle errors correctly

2013-11-14 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue19596] Silently skipped tests in test_importlib

2013-11-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I use `test_spam = None` to skip the test in a subclass and remove it from the report. The question is which of these tests should be removed because they are senseless in specified subclass and which of them are just not implemented yet and should be repor

[issue19585] Frame annotation

2013-11-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think this would need a PEP. -- nosy: +ncoghlan, pitrou ___ Python tracker ___ ___ Python-bugs-lis

[issue19429] OSError constructor does not handle errors correctly

2013-11-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 61a712066770 by Victor Stinner in branch 'default': Issue #19429, #19437: fix error handling in the OSError constructor http://hg.python.org/cpython/rev/61a712066770 -- nosy: +python-dev ___ Python tracke

[issue19437] More failures found by pyfailmalloc

2013-11-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset c9efe992e9b2 by Victor Stinner in branch 'default': Issue #19437: Fix parse_save_field() of the csv module, handle PyList_Append() http://hg.python.org/cpython/rev/c9efe992e9b2 New changeset 98ac18544722 by Victor Stinner in branch 'default': Issue

[issue19592] Use specific asserts in lib2to3 tests

2013-11-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It will be easier to backport fixes if tests are consistent. -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 2.7, Python 3.3 ___

[issue19592] Use specific asserts in lib2to3 tests

2013-11-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset c178d72e2f84 by Serhiy Storchaka in branch '2.7': Issue #19592: Use specific asserts in lib2to3 tests. http://hg.python.org/cpython/rev/c178d72e2f84 New changeset 46fc4fb2c8c5 by Serhiy Storchaka in branch '3.3': Issue #19592: Use specific asserts i

[issue19595] Silently skipped test in test_winsound

2013-11-14 Thread R. David Murray
R. David Murray added the comment: I believe that expected failure will give an error report if the test succeeds. -- nosy: +r.david.murray ___ Python tracker ___ ___

[issue19575] subprocess.Popen with multiple threads: Redirected stdout/stderr files still open after process close

2013-11-14 Thread R. David Murray
R. David Murray added the comment: neologix noted that *when redirection is used* the way that *all* windows file handles are inherited changes. But that's about the end of *my* understanding of the issue :) -- ___ Python tracker

[issue19588] Silently skipped test in test_random

2013-11-14 Thread Tim Peters
Tim Peters added the comment: Nice catch! That's insane. `start` and `stop` should indeed be swapped, *and* the `return` should be `continue`. I didn't write the test, but these things are obvious to my eyeballs ;-) -- nosy: +tim.peters ___ Pytho

[issue19575] subprocess.Popen with multiple threads: Redirected stdout/stderr files still open after process close

2013-11-14 Thread Bernt Røskar Brenna
Bernt Røskar Brenna added the comment: @neologix: But how do you explain this: subprocess_devnull2 9 errors subprocess_devnull1 OK subprocess_devnull creates a file, then starts a subprocess (that redirects to DEVNULL, does not use the file), then tries to rem

[issue19592] Use specific asserts in lib2to3 tests

2013-11-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: If you want. 2013/11/14 Serhiy Storchaka : > > Serhiy Storchaka added the comment: > > Should the patch be applied in maintenance releases? > > -- > > ___ > Python tracker > > __

[issue19589] Use specific asserts in test_asyncio

2013-11-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Done. -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue19592] Use specific asserts in lib2to3 tests

2013-11-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Should the patch be applied in maintenance releases? -- ___ Python tracker ___ ___ Python-bugs-lis

[issue19595] Silently skipped test in test_winsound

2013-11-14 Thread Zachary Ware
Changes by Zachary Ware : -- stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue19592] Use specific asserts in lib2to3 tests

2013-11-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: lgtm -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue19596] Silently skipped tests in test_importlib

2013-11-14 Thread Zachary Ware
New submission from Zachary Ware: Several tests in test_importlib are skipped by way of the test method consisting of a comment and a 'pass' statement. The attached patch makes the skips explicit, using the removed comment as the reason. Ideally these skipped tests should be removed from bei

[issue19589] Use specific asserts in test_asyncio

2013-11-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7e00bdada290 by Serhiy Storchaka in branch 'default': Issue #19589: Use specific asserts in asyncio tests. http://hg.python.org/cpython/rev/7e00bdada290 -- nosy: +python-dev ___ Python tracker

[issue19595] Silently skipped test in test_winsound

2013-11-14 Thread Zachary Ware
New submission from Zachary Ware: In test_winsound, PlaySoundTest.test_alias_fallback has been commented out for quite some time but has been reported as 'ok' ever since. Does anyone know what the current status of the test is? Should it still be skipped (explicitly)? Should it be marked as

[issue16510] Using appropriate checks in tests

2013-11-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Use specific asserts in ctype tests, Use specific asserts in importlib tests, Use specific asserts in lib2to3 tests, Use specific asserts in unittest tests ___ Python tracker

[issue19594] Use specific asserts in unittest tests

2013-11-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch makes the unittest package tests use more specific asserts. This will provide more useful failure report. -- components: Tests files: test_unittest_asserts.patch keywords: patch messages: 202886 nosy: ezio.melotti, michael.foord,

[issue19593] Use specific asserts in importlib tests

2013-11-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch makes the importlib package tests use more specific asserts. This will provide more useful failure report. -- components: Tests files: test_importlib_asserts.patch keywords: patch messages: 202885 nosy: brett.cannon, eric.snow, nc

[issue19592] Use specific asserts in lib2to3 tests

2013-11-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch makes the lib2to3 package tests use more specific asserts. This will provide more useful failure report. -- components: 2to3 (2.x to 3.x conversion tool), Tests files: test_lib2to3_asserts.patch keywords: patch messages: 202884 no

[issue19591] Use specific asserts in ctype tests

2013-11-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch makes the ctypes package tests use more specific asserts. This will provide more useful failure report. -- components: Tests, ctypes files: test_ctypes_asserts.patch keywords: patch messages: 202883 nosy: serhiy.storchaka priority

[issue19591] Use specific asserts in ctype tests

2013-11-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge ___ Python tracker ___ ___ Python-bugs-list mailin

[issue16510] Using appropriate checks in tests

2013-11-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Use specific asserts in test_email ___ Python tracker ___ ___ Python-bugs-list mailing

[issue19589] Use specific asserts in test_asyncio

2013-11-14 Thread Guido van Rossum
Guido van Rossum added the comment: Looks good -- please commit. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue19590] Use specific asserts in test_email

2013-11-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch makes test_email use more specific asserts. This will provide more useful failure report. -- components: Tests, email files: test_email_asserts.patch keywords: patch messages: 202881 nosy: barry, r.david.murray, serhiy.storchaka p

[issue16510] Using appropriate checks in tests

2013-11-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Use specific asserts in test_asyncio ___ Python tracker ___ ___ Python-bugs-list maili

[issue19589] Use specific asserts in test_asyncio

2013-11-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch makes test_asyncio use more specific asserts. This will provide more useful failure report. -- components: Tests files: test_asyncio_asserts.patch keywords: patch messages: 202880 nosy: gvanrossum, serhiy.storchaka priority: norma

[issue19588] Silently skipped test in test_random

2013-11-14 Thread Zachary Ware
New submission from Zachary Ware: See: http://hg.python.org/cpython/file/87099/Lib/test/test_random.py#l241 This test (and its match in MersenneTwister_TestBasicOps) is nearly always skipped by the 'if stop <= start: return' check; in a test with adding "print('skipped', i)" before the return

[issue19586] distutils: Remove assertEquals and assert_ deprecation warnings

2013-11-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No. Issue16510 enhances tests while your patch fixes bugs. LGTM. -- stage: -> commit review type: compile error -> behavior ___ Python tracker _

[issue19575] subprocess.Popen with multiple threads: Redirected stdout/stderr files still open after process close

2013-11-14 Thread Charles-François Natali
Charles-François Natali added the comment: > Bernt Røskar Brenna added the comment: > > @neologix: How can it not have anything to do with threads? > > - It always works with max_workers == 1 > - When max_workers == 2, shutil.rmtree sometimes fails It has nothing to do with threads. You could re

[issue19575] subprocess.Popen with multiple threads: Redirected stdout/stderr files still open after process close

2013-11-14 Thread Bernt Røskar Brenna
Changes by Bernt Røskar Brenna : -- nosy: +astrand ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue19575] subprocess.Popen with multiple threads: Redirected stdout/stderr files still open after process close

2013-11-14 Thread Bernt Røskar Brenna
Bernt Røskar Brenna added the comment: @neologix: How can it not have anything to do with threads? - It always works with max_workers == 1 - When max_workers == 2, shutil.rmtree sometimes fails -- ___ Python tracker

[issue19586] distutils: Remove assertEquals and assert_ deprecation warnings

2013-11-14 Thread Gregory Salvan
Gregory Salvan added the comment: Do I suggest the patch to issue16510 and close this one ? -- components: +Tests ___ Python tracker ___ _

[issue19587] Remove empty tests in test_bytes.FixedStringTest

2013-11-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This LGTM, but the purpose of suppressing these tests is not absolutely clear to me. I suppose they were suppressed in times when bytes and batearray had no the lower() and upper() methods and the __contains__() methods accepted only integers. It will be goo

[issue19540] PEP339: Fix link to Zephyr ASDL paper

2013-11-14 Thread anatoly techtonik
anatoly techtonik added the comment: It conflicts. =( https://bitbucket.org/rirror/peps/pull-request/1/pep-0339txt-fix-link-to-zephyr-asdl-paper/diff -- ___ Python tracker ___ _

[issue19575] subprocess.Popen with multiple threads: Redirected stdout/stderr files still open after process close

2013-11-14 Thread Richard Oudkerk
Richard Oudkerk added the comment: Note that on Windows if you redirect the standard streams then *all* inheritable handles are inherited by the child process. Presumably the handle for f_w file object (and/or a duplicate of it) created in one thread is accidentally "leaked" to the other child

[issue19587] Remove empty tests in test_bytes.FixedStringTest

2013-11-14 Thread Zachary Ware
Changes by Zachary Ware : -- title: Remove test_bytes.FixedStringTest -> Remove empty tests in test_bytes.FixedStringTest ___ Python tracker ___

[issue19587] Remove test_bytes.FixedStringTest

2013-11-14 Thread Zachary Ware
Zachary Ware added the comment: So they do, I failed to notice that. New patch just removes the empty test methods. -- Added file: http://bugs.python.org/file32617/test_bytes.v2.diff ___ Python tracker __

[issue19586] distutils: Remove assertEquals and assert_ deprecation warnings

2013-11-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue16510. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailin

[issue19580] Got resource warning when running test_base_events (test_asyncio)

2013-11-14 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks for the fix! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue19587] Remove test_bytes.FixedStringTest

2013-11-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: ByteArrayAsStringTest and BytesAsStringTest inherit tests from test.string_tests.BaseTest. -- ___ Python tracker ___

[issue19580] Got resource warning when running test_base_events (test_asyncio)

2013-11-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset df50f73f03ca by Guido van Rossum in branch 'default': asyncio: Avoid ResourceWarning. Fix issue 19580 by Vajrasky Kok. http://hg.python.org/cpython/rev/df50f73f03ca -- nosy: +python-dev ___ Python tracker

[issue19587] Remove test_bytes.FixedStringTest

2013-11-14 Thread Zachary Ware
New submission from Zachary Ware: The attached patch removes test_bytes.FixedStringTest and its subclasses, as they report success when they don't actually test anything at all. -- components: Tests files: test_bytes.diff keywords: patch messages: 202866 nosy: serhiy.storchaka, zach.war

[issue19585] Frame annotation

2013-11-14 Thread Walter Dörwald
Walter Dörwald added the comment: See http://bugs.python.org/issue18861 and the discussion started here: https://mail.python.org/pipermail/python-dev/2013-November/130155.html. Basically it allows to add context information to a traceback without changing the type of the exception. In the fol

[issue2259] Poor support other than 44.1khz, 16bit audio files?

2013-11-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue19586] distutils: Remove assertEquals and assert_ deprecation warnings

2013-11-14 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> ezio.melotti nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue19585] Frame annotation

2013-11-14 Thread STINNER Victor
STINNER Victor added the comment: What is the use case of frame annotations? -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-li

[issue19586] distutils: Remove assertEquals and assert_ deprecation warnings

2013-11-14 Thread STINNER Victor
Changes by STINNER Victor : -- title: Remove assertEquals and assert_ deprecation warnings -> distutils: Remove assertEquals and assert_ deprecation warnings ___ Python tracker

[issue19586] Remove assertEquals and assert_ deprecation warnings

2013-11-14 Thread Gregory Salvan
New submission from Gregory Salvan: Replace assertEquals by assertEqual and assert_ by assertTrue to remove tests deprecation warning. It's few, but it's a first step to make contributions. -- components: Distutils, Distutils2 files: distutil.patch keywords: patch messages: 202863 nosy

[issue19585] Frame annotation

2013-11-14 Thread Walter Dörwald
New submission from Walter Dörwald: This patch adds frame annotations, i.e. it adds an attribute f_annotation to frame objects, a decorator to set this attribute on exceptions and extensions to the traceback machinery that display the annotation in the traceback. -- components: Interpr

[issue19581] PyUnicodeWriter: change the overallocation factor for Windows

2013-11-14 Thread STINNER Victor
STINNER Victor added the comment: > Did you find a difference for small strings vs. large strings? When I replaced PyAccu with PyUnicodeWriter for str%args and str.format(args), I ran a lot of benchmarks with short, medium and large strings. See for example: http://bugs.python.org/file25687/REP

[issue14432] Bug in generator if the generator in created in a temporary C thread

2013-11-14 Thread STINNER Victor
STINNER Victor added the comment: > versions: +Python 3.4 -Python 2.6, Python 3.2 It would be interesting to fix the issue in Python 2.7 and 3.3: generator.patch should fix it and the patch is simple (update frame->f_tstate before each execution of a generator). --

[issue19575] subprocess.Popen with multiple threads: Redirected stdout/stderr files still open after process close

2013-11-14 Thread R. David Murray
R. David Murray added the comment: That was my initial thought, too, but the subprocess context manager waits for the subprocess to end, so those file descriptors should be closed by the time the deletion attempt happens, shouldn't they? -- ___ Pyth

[issue6208] path separator output ignores shell's path separator: / instead of \

2013-11-14 Thread Laurent Birtz
Laurent Birtz added the comment: Thank you for the clarifications on the usage of cmd.exe and shell=True. I tend to forget that the shell support in subprocess isn't just about UNIX. The point of running msys is getting programs to work as if they were in a limited UNIX environment without the

[issue19513] Use PyUnicodeWriter instead of PyAccu in repr(tuple) and repr(list)

2013-11-14 Thread STINNER Victor
STINNER Victor added the comment: 2013/11/14 Serhiy Storchaka : > And what will be PyAccu vs PyUnicodeWriter comparison when increase PyAccu > overallocating rate too? PyAccu doesn't use a Unicode buffer, but a list of strings. PyUnicode_Join() is used to compact the list. PyAccu uses an hardco

[issue19584] IDLE fails - Python V2.7.6 - 64b on Win7 64b

2013-11-14 Thread Bob Wake
New submission from Bob Wake: IDLE won't start on Python 2.7.6, 64 bit running on Windows 7, 64 bit. It crashes in less than 1 second, before opening a window. Python appears to work from the command line. The CPU is a quad core i7 with 8GB memory and 2TB disk space. -- components:

[issue19581] PyUnicodeWriter: change the overallocation factor for Windows

2013-11-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Did you find a difference for small strings vs. large strings? -- nosy: +tim.peters ___ Python tracker ___ _

[issue19575] subprocess.Popen with multiple threads: Redirected stdout/stderr files still open after process close

2013-11-14 Thread Charles-François Natali
Charles-François Natali added the comment: I think it's simply due to file descriptor inheritance (files being inherited by other subprocess instance): since Windows can't remove open files, kaboom. It doesn't have anything to do with threads. -- nosy: +neologix

[issue1507224] sys.path issue if sys.prefix contains a colon

2013-11-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: AFAIK this still is a problem, although as Brett mentioned you have to do some work to end up with a non-functional install. I ran into this in the context of py2app, that output of py2app basically contains a "portable" python installation and users can chan

[issue14432] Bug in generator if the generator in created in a temporary C thread

2013-11-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.4 -Python 2.6, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue19575] subprocess.Popen with multiple threads: Redirected stdout/stderr files still open after process close

2013-11-14 Thread R. David Murray
R. David Murray added the comment: Unfortunately I currently lack a windows environment on which to test this. I've added some people to nosy who might be able to help out with this. -- nosy: +gps, tim.golden ___ Python tracker

[issue19581] PyUnicodeWriter: change the overallocation factor for Windows

2013-11-14 Thread STINNER Victor
STINNER Victor added the comment: I chose 25% on Linux after some micro-benchmarks on str%args and str.format(args). If the buffer is too large, the final resize (because PyUnicodeObject must have the exact size) is slow. I suppose that realloc() can avoid copying data if the new is is very cl

[issue19513] Use PyUnicodeWriter instead of PyAccu in repr(tuple) and repr(list)

2013-11-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And what will be PyAccu vs PyUnicodeWriter comparison when increase PyAccu overallocating rate too? -- ___ Python tracker ___ ___

[issue19581] PyUnicodeWriter: change the overallocation factor for Windows

2013-11-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Many collections in other programming languages use overallocating rate 100%. Perhaps overallocating rate 12.5% for Python lists is good compromise between speed and memory usage (as far as Python lists have no explicit resize method), but for short-living o

[issue19583] time.strftime fails to use %:z time formatter of the underlying C library

2013-11-14 Thread STINNER Victor
STINNER Victor added the comment: According to Mathieu on IRC, it's not a bug: date behaves differently than the C function strftime(). -- nosy: +haypo ___ Python tracker ___ __

[issue19583] time.strftime fails to use %:z time formatter of the underlying C library

2013-11-14 Thread Mathieu Dupuy
Mathieu Dupuy added the comment: But in fact "date" was not the right reference to look at, C strftime has exactly the same behaviour than python, so I'm marking this bug as invalid and closing it. -- resolution: -> invalid status: open -> closed _

[issue19568] bytearray_setslice_linear() leaves the bytearray in an inconsistent state on memory allocation failure

2013-11-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > With the patch, the deletion succeeded even if you get a MemoryError. The > bytearray object is consistent. It's just that its buffer could be smaller > (it wastes memory). Yes, but if a MemoryError occurred during slice assignment b[3:6] = b'ab', the byt

[issue19583] time.strftime fails to use %:z time formatter of the underlying C library

2013-11-14 Thread Mathieu Dupuy
New submission from Mathieu Dupuy: function time.strftime fails to use '%:z' time formatter of the underlying library. Passing it does not format time accordingly but returns it as if it was a non-formatting string. Simple reproduction, on Linux: $ date +%:z +01:00 $ python -c 'import time;pri

[issue19568] bytearray_setslice_linear() leaves the bytearray in an inconsistent state on memory allocation failure

2013-11-14 Thread Stefan Krah
Stefan Krah added the comment: Can you suppress the MemoryError if deletion succeeds? That would be ok IMO. -- ___ Python tracker ___

[issue19575] subprocess.Popen with multiple threads: Redirected stdout/stderr files still open after process close

2013-11-14 Thread Bernt Røskar Brenna
Bernt Røskar Brenna added the comment: Similar result on Windows Server 2008: Platform: Windows-2008ServerR2-6.1.7600 task_type #threads result subprocess_redirfile 2 9 errors subprocess_redirfile 1 OK subprocess_devnull2 9 errors s

[issue19563] Changing barry's email to ba...@python.org

2013-11-14 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Nov 14, 2013, at 01:44 AM, Antoine Pitrou wrote: >Do we want to cut a new release quickly in order to spread the fix? I am working on a 2.6.10 right now. IMHO this is the only critical security fix to warrant the two digit last version number. --

[issue19577] memoryview bind (the opposite of release)

2013-11-14 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue19568] bytearray_setslice_linear() leaves the bytearray in an inconsistent state on memory allocation failure

2013-11-14 Thread STINNER Victor
STINNER Victor added the comment: >> With the patch, the deletion succeeded even if you get a MemoryError. The >> bytearray object is consistent. It's just that its buffer could be smaller >> (it wastes memory). >I think intuitively I'd expect the object to be unmodified >if there is any erro

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2013-11-14 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2013-11-14 Thread adamhj
adamhj added the comment: > The encoding is wrong. We should read the registry using Unicode, or at least > use the correct encoding. The correct encoding is the ANSI code page: > sys.getfilesystemencoding(). > Can you please try with: default_encoding = sys.getfilesystemencoding() ? This doe

[issue19575] subprocess.Popen with multiple threads: Redirected stdout/stderr files still open after process close

2013-11-14 Thread Bernt Røskar Brenna
Bernt Røskar Brenna added the comment: Another script, another test case. Four different tasks are run: subprocess_redirfile: Popen(stdout=file) subprocess_devnull: Popen(stdout=DEVNULL) subprocess_noredirect: Popen() nosubprocess: No Popen() call Judging from the output it looks as if it is t

[issue19568] bytearray_setslice_linear() leaves the bytearray in an inconsistent state on memory allocation failure

2013-11-14 Thread Stefan Krah
Stefan Krah added the comment: > With the patch, the deletion succeeded even if you get a MemoryError. The > bytearray object is consistent. It's just that its buffer could be smaller > (it wastes memory). I think intuitively I'd expect the object to be unmodified if there is any error. -

  1   2   >