[issue23890] assertRaises increases reference counter

2017-06-15 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ __

[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2017-06-15 Thread Tim Bell
New submission from Tim Bell: Python 3.6 documentation for email.utils.parsedate_to_datetime() says "Performs the same function as parsedate(), but on success returns a datetime." The docs for parsedate() say "If it succeeds in parsing the date...; otherwise None will be returned." By implicat

[issue30671] dict: simplify and improve lookup function

2017-06-15 Thread Dmitry Rubanovich
Dmitry Rubanovich added the comment: I am looking at the 3.6.1 code. I am not trying to simulate the index lookup as the lookup function would do it. There is no point in that. The point of the script is to detect collisions among perturbed secondary indexes rather than between primary has

[issue694339] IDLE: Dedenting with Shift+Tab

2017-06-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: <> is a predefined virtual event. https://www.tcl.tk/man/tcl8.6/TkCmd/event.htm I can't find <> listed there. I don't remember if I actually saw it before mentioning it. While I like mimicking smart_indent, I don't know if we can dismiss Roger Serwy's concern

[issue30671] dict: simplify and improve lookup function

2017-06-15 Thread INADA Naoki
INADA Naoki added the comment: Firstly, do you understand the lookup without perturb? It's documented here: https://github.com/python/cpython/blob/258bfc462b1e58689b43f662a10e44ece3a10bef/Objects/dictobject.c#L161-L182 >>> n = 0; L = [] >>> for i in range(16): ... L.append(n) ... n = (n*5+1)

[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2017-06-15 Thread Tim Bell
Changes by Tim Bell : -- pull_requests: +2274 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue30656] typo in PyModule_New documentation

2017-06-15 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +2275 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30656] typo in PyModule_New documentation

2017-06-15 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +2276 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2017-06-15 Thread R. David Murray
R. David Murray added the comment: The problem is that if it returns None on parse failure, then you can't tell the difference between the header not existing and the date not being parseable. I don't have a solution for this problem. Suggestions welcome. (Note that this is only a problem i

[issue30529] Incorrect error messages for invalid whitespaces in f-string subexpressions

2017-06-15 Thread Eric V. Smith
Changes by Eric V. Smith : -- pull_requests: +2277 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30656] typo in PyModule_New documentation

2017-06-15 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 6a90a124706b73824aebf5c2bd7b27daf82b2342 by Mariatta in branch '3.6': bpo-30656: Fix Python C API Module Objects documentation (GH-2170) (GH-2230) https://github.com/python/cpython/commit/6a90a124706b73824aebf5c2bd7b27daf82b2342 -- ___

[issue30656] typo in PyModule_New documentation

2017-06-15 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker ___ ___

[issue30656] typo in PyModule_New documentation

2017-06-15 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 0b13f58497d3a36d062c3b3b827abb05db5afbc1 by Mariatta in branch '3.5': bpo-30656: Fix Python C API Module Objects documentation (GH-2170) (GH-2231) https://github.com/python/cpython/commit/0b13f58497d3a36d062c3b3b827abb05db5afbc1 -- ___

[issue29478] email.policy.Compat32(max_line_length=None) not as documented

2017-06-15 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +2278 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue29478] email.policy.Compat32(max_line_length=None) not as documented

2017-06-15 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +2279 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30192] hashlib module breaks with 64-bit kernel and 32-bit user space

2017-06-15 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker ___ ___

[issue30603] textwrap: declining indent level has no test case

2017-06-15 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 214f7eed7640f873223427c02a95a70775d2b396 by Mariatta (Jonathan Eunice) in branch 'master': bpo-30603: add tests to textwrap.dedent (GH-2206) https://github.com/python/cpython/commit/214f7eed7640f873223427c02a95a70775d2b396 -- _

[issue30620] textwrap: dedent contains logic that can never execute

2017-06-15 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 7a801839e9a88bdcac5aaab494b532230fcf7caa by Mariatta (Jonathan Eunice) in branch 'master': bpo-30620: Remove dead lines from textwrap.dedent (GH-2064) https://github.com/python/cpython/commit/7a801839e9a88bdcac5aaab494b532230fcf7caa --

[issue30603] textwrap: declining indent level has no test case

2017-06-15 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue30620] textwrap: dedent contains logic that can never execute

2017-06-15 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue28837] 2to3 does not wrap zip correctly

2017-06-15 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +2280 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue29478] email.policy.Compat32(max_line_length=None) not as documented

2017-06-15 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 820b71464c2c0e8cca1abfb5dfe47fa7f7ffec75 by Mariatta in branch '3.5': [email] bpo-29478: Fix passing max_line_length=None from Compat32 policy (GH-595) (GH-2234) https://github.com/python/cpython/commit/820b71464c2c0e8cca1abfb5dfe47fa7f7ffec75

[issue30671] dict: simplify and improve lookup function

2017-06-15 Thread Dmitry Rubanovich
Dmitry Rubanovich added the comment: Yes, I do understand it. But the statement in lines 166, 167: "For any initial j in range(2**i), repeating that 2**i times generates each int in range(2**i) exactly once" does not hold when the perturb is added. 2**i times will not be enough to generate

[issue28837] 2to3 does not wrap zip correctly

2017-06-15 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 292b421d48ab91b0c68ea4040fc7371e7d6d610e by Mariatta in branch '3.6': bpo-28837: Fix lib2to3 handling of map/zip/filter calls when followed with a 'trailer', e.g. zip()[x] (GH-24) (GH-2235) https://github.com/python/cpython/commit/292b421d48ab91

[issue28837] 2to3 does not wrap zip correctly

2017-06-15 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Backported to 3.6. -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed versions: -Python 2.7 ___ Python tracker ___

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-06-15 Thread Zachary Ware
Zachary Ware added the comment: New changeset 51599e2bdd10ab77212a7cbb41a13ea70ee13da8 by Zachary Ware in branch 'master': bpo-30450: Pull Windows dependencies from GitHub rather than svn (GH-1783) https://github.com/python/cpython/commit/51599e2bdd10ab77212a7cbb41a13ea70ee13da8 -- _

[issue30631] Warnings in VS2015 Update 3 32-Bit

2017-06-15 Thread Zachary Ware
Zachary Ware added the comment: New changeset c9318853bbe8d62cb72ed853b0ffb75311ea474c by Zachary Ware (Segev Finer) in branch 'master': bpo-30631: Silence MSVC warnings in third-party code (GH-1963) https://github.com/python/cpython/commit/c9318853bbe8d62cb72ed853b0ffb75311ea474c --

[issue30631] Warnings in VS2015 Update 3 32-Bit

2017-06-15 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the patch! -- components: +Build resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2017-06-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'm not sure it would be any better, but what about defining something like a DateFormatDefect and returning that? -- ___ Python tracker ___ _

[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2017-06-15 Thread Tim Bell
Tim Bell added the comment: My proposed solution (in https://github.com/python/cpython/pull/2229) is two-part: 1. change parsedate_to_datetime() to return None rather than raising an exception; and 2. change headerregistry.DateHeader.parse() to check for None being returned from parsedate_to

[issue30176] curses attribute constants list is incomplete

2017-06-15 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 116dd5eba60a940b35db6aaf4e8c998ac30ad440 by Mariatta (Xiang Zhang) in branch 'master': bpo-30176: Add missing curses cell attributes constants (GH-1302) https://github.com/python/cpython/commit/116dd5eba60a940b35db6aaf4e8c998ac30ad440 -

[issue30671] dict: simplify and improve lookup function

2017-06-15 Thread Tim Peters
Tim Peters added the comment: Whatever the iteration, accept that it's necessary it reach every value in range(2**i) eventually. The current scheme does that, for reasons already documented. You seem to be overlooking the importance of this part: """ Note that because perturb is unsigned, if

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-06-15 Thread Zachary Ware
Changes by Zachary Ware : -- pull_requests: +2281 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-06-15 Thread Zachary Ware
Zachary Ware added the comment: New changeset cb8c0485ab1e3aeb4f64e76177aabbc6eba5a0ef by Zachary Ware in branch 'master': bpo-30450: Add NEWS and whatsnew (GH-2236) https://github.com/python/cpython/commit/cb8c0485ab1e3aeb4f64e76177aabbc6eba5a0ef -- _

[issue30523] unittest: add --list-tests option to only display the list of test names, don't run tests

2017-06-15 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +2283 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-06-15 Thread Zachary Ware
Changes by Zachary Ware : -- pull_requests: +2282 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30523] unittest: add --list-tests option to only display the list of test names, don't run tests

2017-06-15 Thread Louie Lu
Louie Lu added the comment: Serhiy and Victor suggest moving this option to regrtest. open a new PR 2238 addressed this. Also, because moving into regrtest, some test that used `requires` will need to pass option when using it. e.g.: $ ./python -m test test.test_curses --list-cases -ucurses

[issue30176] curses attribute constants list is incomplete

2017-06-15 Thread Xiang Zhang
Changes by Xiang Zhang : -- stage: patch review -> backport needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue30541] Add restricted mocks to the python unittest mocking framework

2017-06-15 Thread Berker Peksag
Berker Peksag added the comment: I personally never need this feature before so I will add Michael and Robert to nosy list to take their opinions. -- nosy: +berker.peksag, michael.foord, rbcollins stage: -> patch review ___ Python tracker

[issue30642] Fix leaks in idlelib

2017-06-15 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2017-06-15 Thread Kubilay Kocak
Changes by Kubilay Kocak : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue26491] Defer DECREFs until enum object is in a consistent state for re-entrancy

2017-06-15 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-06-15 Thread Zachary Ware
Zachary Ware added the comment: New changeset 04431c926a88be433203f89e3577addd0d41b602 by Zachary Ware in branch '3.6': bpo-30450: Pull Windows dependencies from GitHub rather than svn (GH-1783) (GH-2237) https://github.com/python/cpython/commit/04431c926a88be433203f89e3577addd0d41b602 -

[issue30176] curses attribute constants list is incomplete

2017-06-15 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +2284 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30671] dict: simplify and improve lookup function

2017-06-15 Thread Dmitry Rubanovich
Dmitry Rubanovich added the comment: Tim, I am not testing randomly. The scripts calculate secondary hash for **each** value in a ring to see how often this results in duplicate (or triplicate, etc.) values. And they do it for each (mod 2**i) ring for i between 8 and 20. Then (mostly as an

[issue30671] dict: simplify and improve lookup function

2017-06-15 Thread INADA Naoki
INADA Naoki added the comment: It seems not "simplify". Please try implement it and show benchmark result if you think it's really worth enough. -- ___ Python tracker ___ __

[issue29783] Modify codecs.open() to use the io module instead of codecs.StreamReaderWriter()

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 272d888c7b58aff5e1614e3b12e8198b92054835 by Victor Stinner in branch 'master': bpo-29783: Replace codecs.open() with io.open() (#599) https://github.com/python/cpython/commit/272d888c7b58aff5e1614e3b12e8198b92054835 -- _

<    1   2