[issue29719] "Date" of what's new is confusing

2017-03-06 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +408 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue29571] test_re is failing when local is set for `en_IN`

2017-03-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: I don't see what's odd about it. re.LOCALE uses the C locale, which one obtains from locale.getlocale(). getpreferredencoding() is not documented to have anything to do with the C locale, and indeed on Windows it may be completely different. -- _

[issue29732] Heap out of bounds read in tok_nextc()

2017-03-06 Thread Kamil Frankowicz
New submission from Kamil Frankowicz: After some fuzz testing I found a crashing test case. Version: 2.7.13 compiled from source with Clang 3.9.1. To reproduce: python python_hoobr_tok_nextc.py Extract from Valgrind log (full log file at https://gist.github.com/fumfel/f9780e567dec761f8524523f

[issue29732] Heap out of bounds read in tok_nextc()

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue28667] FD_SETSIZE is unsigned on FreeBSD

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +409 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue25996] Add support of file descriptor in os.scandir()

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +410 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue25996] Add support of file descriptor in os.scandir()

2017-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm wondering is it possible to implement this feature on Windows? -- ___ Python tracker ___ ___ P

[issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc

2017-03-06 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +411 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue24821] The optimization of string search can cause pessimization

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.7 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue25996] Add support of file descriptor in os.scandir()

2017-03-06 Thread STINNER Victor
STINNER Victor added the comment: > I'm wondering is it possible to implement this feature on Windows? On Windows, scandir() is implemented with FindFirstFile() which takes strings. This function creates a handle which should then be passed to FindNextFile(). There is no similar function takin

[issue29714] can't interpolate byte string with \x00 before replacement identifier

2017-03-06 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +412 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue24821] The optimization of string search can cause pessimization

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +413 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue29595] Expose max_queue_size in ThreadPoolExecutor

2017-03-06 Thread prayerslayer
prayerslayer added the comment: Hello again, there's a reviewed PR open for this issue and it hasn't even received authoritative feedback yet (ie whether or not you intend to support this feature at all). I would be very happy if a core dev could look over this change before everyone forgets a

[issue20087] Mismatch between glibc and X11 locale.alias

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> test needed versions: +Python 3.6, Python 3.7 -Python 3.4 ___ Python tracker ___ ___ Pytho

[issue29571] test_re is failing when local is set for `en_IN`

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Mismatch between glibc and X11 locale.alias ___ Python tracker ___ ___ Python-bugs-lis

[issue28974] Make default __format__ be equivalent to __str__

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +415 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue28974] Make default __format__ be equivalent to __str__

2017-03-06 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue28243] Performance regression in functools.partial()

2017-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Can this issue be closed now? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue28692] gettext: deprecate selecting plural form by fractional numbers

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +416 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue25582] Fixed memory leaks in test_ctypes

2017-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have no ideas how to fix the remained constant memory consumption. But this is 2.7 issue only, so I'm closing this. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracke

[issue29714] can't interpolate byte string with \x00 before replacement identifier

2017-03-06 Thread Xiang Zhang
Xiang Zhang added the comment: Thanks for the report, Nick! -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue15954] No error checking after using of the wcsxfrm()

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +417 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue15695] Correct __sizeof__ support for StgDict

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.7 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list

[issue29714] can't interpolate byte string with \x00 before replacement identifier

2017-03-06 Thread STINNER Victor
STINNER Victor added the comment: I confirm that I introduced the regression with the commit fa7762ec066aa3632a25b6a52bb7597b8f17c2f3: "Issue #25349: Optimize bytes % args using the new private _PyBytesWriter API". Sorry about that, I always forget that str*() functions should not be used in P

[issue29714] can't interpolate byte string with \x00 before replacement identifier

2017-03-06 Thread STINNER Victor
STINNER Victor added the comment: Oh, and thank you for adding new unit tests ;-) Do we need similar unit tests for str%args and str.format()? -- ___ Python tracker ___

[issue28243] Performance regression in functools.partial()

2017-03-06 Thread STINNER Victor
STINNER Victor added the comment: I just ran a microbenchmark, 3.6 compared to 3.5: haypo@smithers$ ./python -m perf timeit -s 'from functools import partial; f = lambda x, y: None; g = partial(f, 1)' 'g(2)' --duplicate=100 --compare-to ../3.5/python --python-names=3.5:3.6 3.5: ..

[issue28243] Performance regression in functools.partial()

2017-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Victor! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue29700] readline memory corruption when sys.stdin fd >= FD_SETSIZE for select()

2017-03-06 Thread Marien Zwart
Changes by Marien Zwart : -- nosy: +marienz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue29565] Still broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2017-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New test causes a compiler warning: /home/serhiy/py/cpython/Modules/_ctypes/_ctypes_test.c: In function ‘_testfunc_large_struct_update_value’: /home/serhiy/py/cpython/Modules/_ctypes/_ctypes_test.c:53:42: warning: parameter ‘in’ set but not used [-Wunused-bu

[issue15695] Correct __sizeof__ support for StgDict

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +418 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue15695] Correct __sizeof__ support for StgDict

2017-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Now changes are simpler since _PyDict_SizeOf() already was implemented. -- priority: normal -> low ___ Python tracker ___

[issue29655] Certain errors during IMPORT_STAR can leak a reference

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +419 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue28231] zipfile does not support pathlib

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +420 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue29714] can't interpolate byte string with \x00 before replacement identifier

2017-03-06 Thread Xiang Zhang
Xiang Zhang added the comment: I think no. String is not affected now and its code uses related macros so I don't think it could suffer possible regression. -- ___ Python tracker __

[issue29733] concurrent.futures as_completed raise TimeoutError wrong

2017-03-06 Thread jiangwanwei
New submission from jiangwanwei: when I use as_completed function to wait my futures, if I sleep more than timeout seconds in each iteration , I found that futures has been set result, but raise TimeoutError. as my test example code shows: from concurrent import futures from multiprocessing im

[issue29410] Moving to SipHash-1-3

2017-03-06 Thread INADA Naoki
INADA Naoki added the comment: microbench result: https://gist.github.com/methane/33c7b01c45ce23b67246f5ddaff9c9e7 Not significant ~ very little difference for small data. For 4KB: Median +- std dev: [python.default] 3.26 us +- 0.03 us -> [python.siphash13] 2.03 us +- 0.02 us: 1.60x faster (-3

[issue29734] nt._getfinalpathname handle leak

2017-03-06 Thread Eryk Sun
New submission from Eryk Sun: The implementation of nt._getfinalpathname leaks a File handle if calling GetFinalPathNameByHandle fails. The latter function is practically guaranteed to fail when resolving the path for a non-file-system device. It also fails when VOLUME_NAME_DOS is requested fo

[issue28230] tarfile does not support pathlib

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +421 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue28230] tarfile does not support pathlib

2017-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated documentation. Note that path-like objects are supported only for external names. Internal names are not OS paths. -- ___ Python tracker ___

[issue29568] undefined parsing behavior with the old style string formatting

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +422 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue25455] Some repr implementations don't check for self-referential structures

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +423 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue25455] Some repr implementations don't check for self-referential structures

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.7 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue28243] Performance regression in functools.partial()

2017-03-06 Thread STINNER Victor
STINNER Victor added the comment: Oh wait, there was a major regression in my perf module :-( The --compare-to option was completely broken in the development branch (but it works for timeit --compare-to in the latest release). It's now fixed! So please ignore results of my previous comment.

[issue29700] readline memory corruption when sys.stdin fd >= FD_SETSIZE for select()

2017-03-06 Thread Marien Zwart
Marien Zwart added the comment: On Python 3, crash_readline_fdset.py does not crash for me, because its input() contains a check documented as: /* We should only use (GNU) readline if Python's sys.stdin and sys.stdout are the same as C's stdin and stdout, because we n

[issue26121] Use C99 functions in math if available

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +424 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue29700] readline memory corruption when sys.stdin fd >= FD_SETSIZE for select()

2017-03-06 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue26121] Use C99 functions in math if available

2017-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't know how to run custom build on buildbots with new workflow. -- versions: +Python 3.7 -Python 3.6 ___ Python tracker ___ _

[issue9051] Improve pickle format for timezone aware datetime instances

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue29735] Optimize functools.partial() for positional arguments

2017-03-06 Thread STINNER Victor
New submission from STINNER Victor: The pull request makes functools.partial() faster for positional arguments. It avoids the creation of a tuple for positional arguments. It allocates a small buffer for up to 5 parameters. But it seems like even if the small buffer is not used, it's still fas

[issue29735] Optimize functools.partial() for positional arguments

2017-03-06 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +425 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue28243] Performance regression in functools.partial()

2017-03-06 Thread STINNER Victor
STINNER Victor added the comment: > Oh, functools.partial.__call__() doesn't use fastcall yet. This issue reminded me that I didn't finish to optimize partial_call(): see issue #29735 for a minor optimization. -- ___ Python tracker

[issue29735] Optimize functools.partial() for positional arguments

2017-03-06 Thread STINNER Victor
STINNER Victor added the comment: functools.partial() is commonly used in the the asyncio module. The asyncio doc suggests to use it, because of deliberate limitations of the asyncio API. -- nosy: +inada.naoki, serhiy.storchaka, yselivanov ___ Python

[issue29735] Optimize functools.partial() for positional arguments

2017-03-06 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +ncoghlan, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue8256] input() doesn't catch _PyUnicode_AsString() exception; io.StringIO().encoding is None

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.7 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue8256] input() doesn't catch _PyUnicode_AsString() exception; io.StringIO().encoding is None

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +427 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue15343] "pydoc -w " writes out page with empty "Package Contents" section

2017-03-06 Thread Wolfgang Maier
Wolfgang Maier added the comment: Sorry, for generating noise on this very old issue, but was there a specific reason to duplicate the code of ImpImporter.find_module in changeset 9101eab6178c instead of factoring it out? -- nosy: +wolma ___ Python

[issue29695] Weird keyword parameter names in builtins

2017-03-06 Thread STINNER Victor
STINNER Victor added the comment: > If you think that it would be better to remove without deprecation, the > following patch does this. @Serhiy: Can you please create a PR for it? -- ___ Python tracker _

[issue29714] can't interpolate byte string with \x00 before replacement identifier

2017-03-06 Thread STINNER Victor
STINNER Victor added the comment: Xiang Zhang added the comment: > I think no. String is not affected now and its code uses related macros so I > don't think it could suffer possible regression. Regressions are not something "expected", shit happens, all the time. Unexpected corner cases are co

[issue29695] Weird keyword parameter names in builtins

2017-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If David agrees with this. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue29695] Weird keyword parameter names in builtins

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +428 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue27577] Make implementation and doc of tuple and list more compliant

2017-03-06 Thread Xiang Zhang
Xiang Zhang added the comment: This issue doesn't make any sense once #29695 is applied. So close. -- resolution: -> fixed stage: -> resolved ___ Python tracker ___ ___

[issue27577] Make implementation and doc of tuple and list more compliant

2017-03-06 Thread Xiang Zhang
Changes by Xiang Zhang : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29736] Optimize builtin types constructor

2017-03-06 Thread STINNER Victor
New submission from STINNER Victor: Attached PR replaces PyArg_ParseTupleAndKeywords() with _PyArg_ParseTupleAndKeywordsFast() to optimize the constructor of the builtin types: * bool: bool_new() * bytes: bytes_new() * complex: complex_new() * float: float_new() * int: long_new() * list: list_in

[issue29736] Optimize builtin types constructor

2017-03-06 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +429 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29695] Weird keyword parameter names in builtins

2017-03-06 Thread R. David Murray
R. David Murray added the comment: If Raymond is on the side of skipping the deprecation than I'm good with it. Like I said, this is a marginal case. -- ___ Python tracker ___

[issue29735] Optimize functools.partial() for positional arguments

2017-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What about C stack consumption? Is not this increase it? Since nested partial()`s are collapsed, you need to interlace them with other wrapper for testing. def decorator(f): def wrapper(*args): return f(*args) return wrapper def f(*args): pa

[issue29736] Optimize builtin types constructor

2017-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The half of constructors no longer use PyArg_ParseTupleAndKeywords(). I would wait until constructors be converted to Argument Clinic. There are ready patches for some of these builtin types, patches for other are in proggress. -- nosy: +serhiy.stor

[issue29695] Weird keyword parameter names in builtins

2017-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks all! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue29695] Weird keyword parameter names in builtins

2017-03-06 Thread STINNER Victor
STINNER Victor added the comment: Unhappy buildbot. http://buildbot.python.org/all/builders/AMD64%20Debian%20root%203.x/builds/456/steps/test/logs/stdio == ERROR: test_keyword_arguments (test.test_descr.ClassPropertiesAndMethod

[issue29695] Weird keyword parameter names in builtins

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +430 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue29733] concurrent.futures as_completed raise TimeoutError wrong

2017-03-06 Thread Josh Rosenberg
Josh Rosenberg added the comment: The docs ( https://docs.python.org/3/library/concurrent.futures.html#concurrent.futures.as_completed ) do seem to indicate it shouldn't do so as long as results were available before the timeout expired: "The returned iterator raises a concurrent.futures.Time

[issue29723] 3.6.1rc1 adds the current directory to sys.path when running a subdirectory's __main__.py; previous versions did not

2017-03-06 Thread Nick Coghlan
Nick Coghlan added the comment: I think Eryk's diagnosis is correct: this is a straight up bug in the original patch, where it's missing the check to only use the new logic when in isolated mode (as it's compensating for the fact that there is no extra sys.path[0] entry inserted in that case).

[issue29571] test_re is failing when local is set for `en_IN`

2017-03-06 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks for the explanation - given that, I agree that simply reverting the attempted test-based fix and instead relying on the issue 20087 updates is the way to go. -- ___ Python tracker

[issue13566] Increase pickle compatibility

2017-03-06 Thread Josh Rosenberg
Josh Rosenberg added the comment: Right, but Antoine's objection is that suddenly strs pickled in Py3 can end up as strs in Py2, rather than unicode. If the library enforces a Py3-like type separation on Py2 (text arguments are unicode only, binary data is str only), then you have the problem

[issue29545] Python behavioral difference between Linux and AIX

2017-03-06 Thread Anna Henningsen
Changes by Anna Henningsen : -- nosy: +addaleax ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue29735] Optimize functools.partial() for positional arguments

2017-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If the underlying function doesn't support fast call, and either args or pto->args are empty, partial_call() makes two unneeded copyings. Arguments are copied from a tuple to the raw array and from the array to new tuple. This is what the current code does,

[issue29676] verbose output of test_cprofile

2017-03-06 Thread INADA Naoki
INADA Naoki added the comment: OK, now I found what caused this difference. lsprof expect `func` is PyCFunction object. But it can be PyMethodDescrObject when LOAD_METHOD is used to call C method. In Modules/_lsprof.c (line 459): case PyTrace_C_CALL: if ProfilerObject *)self)

[issue29676] verbose output of test_cprofile

2017-03-06 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +431 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue29676] C method is not profiled by lsprof

2017-03-06 Thread INADA Naoki
Changes by INADA Naoki : -- components: +Interpreter Core -Tests title: verbose output of test_cprofile -> C method is not profiled by lsprof ___ Python tracker ___ _

[issue9051] Improve pickle format for timezone aware datetime instances

2017-03-06 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> rejected stage: patch review -> resolved status: pending -> closed ___ Python tracker ___

[issue29723] 3.6.1rc1 adds the current directory to sys.path when running a subdirectory's __main__.py; previous versions did not

2017-03-06 Thread Ned Deily
Ned Deily added the comment: Thanks for the analysis, Eryk and Nick. Then this sounds like a release blocker problem that should be fixed for 3.6.1. Steve, can you take a look, please? -- nosy: +steve.dower priority: normal -> release blocker stage: -> needs patch type: -> behavior

[issue15954] No error checking after using of the wcsxfrm()

2017-03-06 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue29708] support reproducible Python builds

2017-03-06 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue29716] Python 3 Module doc still sounds like __init__.py is required

2017-03-06 Thread Brett Cannon
Brett Cannon added the comment: I've gone ahead and closed this. Thanks for taking the time to check in on this, James! -- nosy: +brett.cannon resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue29691] Some tests fail in coverage Travis check

2017-03-06 Thread Brett Cannon
Brett Cannon added the comment: The test_traceback changes should be easy to tweak to use a regex or startwith() check so the tests pass again. For the test_xml_etree failures I'm not sure how best to fix that other than taking it out. Maybe if sys.gettrace() returns something then skip the te

[issue29691] Some tests fail in coverage Travis check

2017-03-06 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue15954] No error checking after using of the wcsxfrm()

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7 -Python 3.4, Python 3.5 ___ Python tracker

[issue29691] Some tests fail in coverage Travis check

2017-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is this a duplicate of issue29048? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bu

[issue29691] Some tests fail in coverage Travis check

2017-03-06 Thread Brett Cannon
Brett Cannon added the comment: I don't think it's a duplicate because we had a passing coverage run when we initially made the migration so something got tweaked to lead to the failures. -- ___ Python tracker ___

[issue29691] Some tests fail in coverage Travis check

2017-03-06 Thread Brett Cannon
Brett Cannon added the comment: BTW, just because I assigned this to me doesn't mean others can't write a PR to solve this. :) I will review any PR that fixes this issue, I'm just going to make sure it gets solved no matter what if no one else creates a PR. --

[issue29691] Some tests fail in coverage Travis check

2017-03-06 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: I'll look into creating a PR when I have some time. It would also be useful to tweak the Travis/coverage configuration so that it fails loudly if one of the tests doesn't pass in the coverage check. -- ___ Python tr

[issue29737] Optimize concatenating empty tuples

2017-03-06 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Since tuples are immutable, concatenating with empty tuple can be optimized by returning an opposite argument. Microbenchmarks (the difference is larger for larger tuples): $ ./python -m perf timeit --duplicate=100 -s 'a = (1, 2)' 'a + ()' Unpatched: Medi

[issue29737] Optimize concatenating empty tuples

2017-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +432 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue29738] Fix memory leak in SSLSocket.getpeercert()

2017-03-06 Thread Olivier Vielpeau
New submission from Olivier Vielpeau: The code snippet in #25569 reproduces the memory leak with Python 3.6.0 and 2.7.13. The current memory leak is a regression that was introduced in #26470. Going to attach a PR on github that fixes the issue shortly. -- assignee: christian.heimes co

[issue29738] Fix memory leak in SSLSocket.getpeercert()

2017-03-06 Thread Olivier Vielpeau
Changes by Olivier Vielpeau : -- pull_requests: +433 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue29691] Some tests fail in coverage Travis check

2017-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The list of failing tests in issue29048 contains test_traceback and test_xml_etree. Thus this issue may be a part of issue29048. Some tests may be fixed since reporting issue29048. -- ___ Python tracker

[issue29739] zipfile raises wrong exception for some incorrect passwords

2017-03-06 Thread Jack Cushman
New submission from Jack Cushman: This bug arises when attempting to unzip a password-protected zipfile using the wrong password. Usually when zipfile extraction is attempted with an incorrect password, zipfile raise `RuntimeError("Bad password for file")`. But for a small subset of passwords

[issue29700] readline memory corruption when sys.stdin fd >= FD_SETSIZE for select()

2017-03-06 Thread Martin Panter
Martin Panter added the comment: “Input9)” is probably a typo for “input()”. In Python 2, sys.stdin etc are by default wrappers around ’s “stdin” etc, and can easily be wrappers around other FILE objects, so the PyOS_Readline API and Python’s “readline” module pass these objects directly to

[issue29736] Optimize builtin types constructor

2017-03-06 Thread STINNER Victor
STINNER Victor added the comment: > I would wait until constructors be converted to Argument Clinic. There are > ready patches for some of these builtin types, patches for other are in > proggress. Do you have links for these changes? It's painful to search for Argument Clinic changes, the is

[issue29740] Visual C++ CRT security update from 14 June 2011

2017-03-06 Thread Markus
New submission from Markus: In 14 June 2011 Microsoft released Visual C++ 2008 runtime MFC Security Update https://www.microsoft.com/en-us/download/details.aspx?id=26368 The Security Update also updates the CRT runtime (used by Python 2.7) Without the security update, Python 2.7.13 uses vc90.c

  1   2   >