Re: Customise the virtualenv `activate` script

2017-06-15 Thread Ben Finney
Cameron Simpson writes: > I must admit my initial preference would be the differently named > wrapper. Surely users of the codebase will be invoking stuff via > something opaque which sources the requisite things? That “something opaque” is the ‘$VENV/bin/activate’ script; many

[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 ___ ___

[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 ___

[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

[issue30176] curses attribute constants list is incomplete

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

[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

[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 ___ ___

[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

[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 --

[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 ___ ___

[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,

[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

[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

[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

[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

Re: Developers Who Use Spaces Make More Money!

2017-06-15 Thread Ian Kelly
On Thu, Jun 15, 2017 at 8:51 PM, Larry Martell wrote: > On Thu, Jun 15, 2017 at 6:35 PM, Christopher Reimer > wrote: >> One commentator on a tech website admonished programmers for wasting time by >> pressing the space bar four times

[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 --

[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 --

[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

[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)

Re: Developers Who Use Spaces Make More Money!

2017-06-15 Thread Larry Martell
On Thu, Jun 15, 2017 at 6:35 PM, Christopher Reimer wrote: >> On Jun 15, 2017, at 3:24 PM, jlada...@itu.edu wrote: >> >> This is hilarious, I have to share: >> >> https://stackoverflow.blog/2017/06/15/developers-use-spaces-make-money-use-tabs/ >> >> Thanks to Guido

[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

[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

[issue28837] 2to3 does not wrap zip correctly

2017-06-15 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +2280 ___ Python tracker ___ ___

[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

[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 ___

[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
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 --

[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

[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 ___ ___

[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 ___ ___

[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 --

[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 --

[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 ___ ___

[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

[issue30656] typo in PyModule_New documentation

2017-06-15 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +2276 ___ Python tracker ___ ___

[issue30656] typo in PyModule_New documentation

2017-06-15 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +2275 ___ Python tracker ___ ___

Re: Developers Who Use Spaces Make More Money!

2017-06-15 Thread Steve D'Aprano
On Fri, 16 Jun 2017 08:42 am, Chris Angelico wrote: > On Fri, Jun 16, 2017 at 8:24 AM, wrote: >> This is hilarious, I have to share: >> >> https://stackoverflow.blog/2017/06/15/developers-use-spaces-make-money-use-tabs/ >> >> Thanks to Guido for making us all richer! > > Bah,

[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 ___ ___

[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 =

[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

Re: Developers Who Use Spaces Make More Money!

2017-06-15 Thread Christopher Reimer
> On Jun 15, 2017, at 3:24 PM, jlada...@itu.edu wrote: > > This is hilarious, I have to share: > > https://stackoverflow.blog/2017/06/15/developers-use-spaces-make-money-use-tabs/ > > Thanks to Guido for making us all richer! One commentator on a tech website admonished programmers for wasting

[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

[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

[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

[issue23890] assertRaises increases reference counter

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: Thank you Vjacheslav Fyodorov for your bug report! The bug should now be fixed in 3.5, 3.6 and master (future 3.7) branches. Python 2.7 is not affected by the bug. -- ___ Python tracker

[issue23890] assertRaises increases reference counter

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3dc573c8d19dc42ed786ca3237afdad183c41ca0 by Victor Stinner in branch '3.5': Fix ref cycles in TestCase.assertRaises() (#193) (#2228) https://github.com/python/cpython/commit/3dc573c8d19dc42ed786ca3237afdad183c41ca0 --

Re: Developers Who Use Spaces Make More Money!

2017-06-15 Thread Chris Angelico
On Fri, Jun 16, 2017 at 8:24 AM, wrote: > This is hilarious, I have to share: > > https://stackoverflow.blog/2017/06/15/developers-use-spaces-make-money-use-tabs/ > > Thanks to Guido for making us all richer! Bah, that's just noise. There may appear to be a small difference

[issue23890] assertRaises increases reference counter

2017-06-15 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2273 ___ Python tracker ___ ___

[issue30673] Add -t option (timeout) to Tools/buildbot/test.bat for "AMD64 Windows8.1 Refleaks 3.x" buildbot

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: Oh wait, it seems like I misunderstood how Tools/buildbot/test.bat works: unknown parameters as passed as if to regrtest. So it wasn't needed to add a new -t option, using --timeout should just work. There were two bugs in the buildbot configuration: * the

Developers Who Use Spaces Make More Money!

2017-06-15 Thread jladasky
This is hilarious, I have to share: https://stackoverflow.blog/2017/06/15/developers-use-spaces-make-money-use-tabs/ Thanks to Guido for making us all richer! -- https://mail.python.org/mailman/listinfo/python-list

[issue30673] Add -t option (timeout) to Tools/buildbot/test.bat for "AMD64 Windows8.1 Refleaks 3.x" buildbot

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: I added the -t options to 3.5, 3.6 and master (3.7) branches. I have a small issue: in Python 2.7, regrtest has no --timeout option. In Python 3, the timeout was implemented using faulthandler, module which was added to Python 3.3. I guess that we can handle

[issue23890] assertRaises increases reference counter

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 50dbf577e10f806056d60ac956db0748d2cc8257 by Victor Stinner in branch '3.6': bpo-23890: Fix ref cycle in TestCase.assertRaises (#858) https://github.com/python/cpython/commit/50dbf577e10f806056d60ac956db0748d2cc8257 --

[issue30675] test_zipfile leaks references on Python 3.5 on the wo Refleaks buildbots (Gentoo, Windows)

2017-06-15 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2272 ___ Python tracker ___ ___

[issue30673] Add -t option (timeout) to Tools/buildbot/test.bat for "AMD64 Windows8.1 Refleaks 3.x" buildbot

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset ab4ea09604ea7754a80e4fc36280f5772bf4a8b2 by Victor Stinner in branch '3.5': bpo-30673: test.bat: add -t option (timeout) (#2211) (#2226) https://github.com/python/cpython/commit/ab4ea09604ea7754a80e4fc36280f5772bf4a8b2 --

[issue30673] Add -t option (timeout) to Tools/buildbot/test.bat for "AMD64 Windows8.1 Refleaks 3.x" buildbot

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset e064d4dfeda09fd206653697b70b434e98cc1b57 by Victor Stinner in branch '3.6': bpo-30673: test.bat: add -t option (timeout) (#2211) (#2225) https://github.com/python/cpython/commit/e064d4dfeda09fd206653697b70b434e98cc1b57 --

[issue30675] test_zipfile leaks references on Python 3.5 on the wo Refleaks buildbots (Gentoo, Windows)

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 33cf0c4cd6e8abe138c3469ca9ec1502410945f0 by Victor Stinner in branch '3.5': bpo-30675: Fix multiprocessing code in regrtest (#2220) https://github.com/python/cpython/commit/33cf0c4cd6e8abe138c3469ca9ec1502410945f0 --

[issue30675] test_zipfile leaks references on Python 3.5 on the wo Refleaks buildbots (Gentoo, Windows)

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: Ok, using attached test_x.py, I'm able to reproduce this bug on Python 2.7. -- Added file: http://bugs.python.org/file46955/test_x.py ___ Python tracker

[issue30673] Add -t option (timeout) to Tools/buildbot/test.bat for "AMD64 Windows8.1 Refleaks 3.x" buildbot

2017-06-15 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2271 ___ Python tracker ___ ___

[issue30673] Add -t option (timeout) to Tools/buildbot/test.bat for "AMD64 Windows8.1 Refleaks 3.x" buildbot

2017-06-15 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2270 ___ Python tracker ___ ___

Re: [OT] is JSON all that great? - was Re: API Help

2017-06-15 Thread Chris Angelico
On Fri, Jun 16, 2017 at 6:58 AM, Grant Edwards wrote: > On 2017-06-15, Erik wrote: >> On 15/06/17 15:10, Chris Angelico wrote: >>> On Fri, Jun 16, 2017 at 12:00 AM, alister wrote: Json is designed to be legal

Re: [OT] is JSON all that great? - was Re: API Help

2017-06-15 Thread Chris Angelico
On Fri, Jun 16, 2017 at 6:17 AM, Erik wrote: > On 15/06/17 15:10, Chris Angelico wrote: >> >> On Fri, Jun 16, 2017 at 12:00 AM, alister >> wrote: >>> >>> Json is designed to be legal Javascript code & therefore directly >>> executable so no

Re: sqlite in 2.7 on redhat 6

2017-06-15 Thread Larry Martell
On Thu, Jun 15, 2017 at 1:44 PM, Kushal Kumaran wrote: > Your python was built without sqlite3 support. If your yum repo > provider is unable to rebuild with sqlite3, you can do so yourself. > Make sure the sqlite-devel package is installed so your python build > will use

Re: [OT] is JSON all that great? - was Re: API Help

2017-06-15 Thread Grant Edwards
On 2017-06-15, Erik wrote: > On 15/06/17 15:10, Chris Angelico wrote: >> On Fri, Jun 16, 2017 at 12:00 AM, alister wrote: >>> Json is designed to be legal Javascript code & therefore directly >>> executable so no parser is posible. >>> >> >>

Re: [OT] is JSON all that great? - was Re: API Help

2017-06-15 Thread Erik
On 15/06/17 15:10, Chris Angelico wrote: On Fri, Jun 16, 2017 at 12:00 AM, alister wrote: Json is designed to be legal Javascript code & therefore directly executable so no parser is posible. "no parser is possible"??? I *think* alister meant "so it is possible

[issue30680] textwrap should treat Unicode em-dash like ASCII em-dash

2017-06-15 Thread Jonathan Eunice
Jonathan Eunice added the comment: Agreed. It makes great sense that textwrap started as highly ASCII-centric. But in the Python 3, Unicode-friendly era, ASCII-biased isn't where we should leave things. -- ___ Python tracker

[issue30680] textwrap should treat Unicode em-dash like ASCII em-dash

2017-06-15 Thread R. David Murray
R. David Murray added the comment: This seems sensible to me (I haven't looked at the PR, I'm talking about adding the support). When textwrap was written python was pretty ascii oriented, so it is not too much of a surprise that unicode em dashes were not supported. -- nosy:

[issue30680] textwrap should treat Unicode em-dash like ASCII em-dash

2017-06-15 Thread Jonathan Eunice
Changes by Jonathan Eunice : -- pull_requests: +2269 ___ Python tracker ___ ___

[issue29606] urllib FTP protocol stream injection

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Wouldn't be better to solve this issue on the level of the ftplib module or FTP handler in urllib.request instead of urllib.parse? -- nosy: +serhiy.storchaka ___ Python tracker

[issue30680] textwrap should treat Unicode em-dash like ASCII em-dash

2017-06-15 Thread Jonathan Eunice
New submission from Jonathan Eunice: The textwrap module goes to great lengths to "do the right thing" when it finds the ASCII simulation of an em-dash (two or more consecutive hyphens), but it does nothing to recognize and similarly treat true (Unicode) em-dashes (aka '\N{EM DASH}',

[issue1360] Queue.get() can't be interrupted with Ctrl-C unless timed out

2017-06-15 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +2268 ___ Python tracker ___

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

2017-06-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___

[issue30213] ZipFile from 'a'ppend-mode file generates invalid zip

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks a duplicate of issue29094. -- status: open -> pending superseder: -> Regression in zipfile writing in 2.7.13 ___ Python tracker

[issue30441] os.environ raises RuntimeError: dictionary changed size during iteration

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue24484. The solution depends on the assumption that list(dict) is atomic. -- ___ Python tracker ___

[issue30626] "SystemError: returned NULL without setting an error" from open function

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

[issue30673] Add -t option (timeout) to Tools/buildbot/test.bat for "AMD64 Windows8.1 Refleaks 3.x" buildbot

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 258bfc462b1e58689b43f662a10e44ece3a10bef by Victor Stinner in branch 'master': bpo-30673: test.bat: add -t option (timeout) (#2211) https://github.com/python/cpython/commit/258bfc462b1e58689b43f662a10e44ece3a10bef --

[issue30626] "SystemError: returned NULL without setting an error" from open function

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 263dcc39daa74066c2b2fcb007a4bd4f7ec65073 by Serhiy Storchaka in branch '3.5': [3.5] bpo-30626: Fix error handling in PyImport_Import(). (GH-2103) (#) https://github.com/python/cpython/commit/263dcc39daa74066c2b2fcb007a4bd4f7ec65073

[issue30626] "SystemError: returned NULL without setting an error" from open function

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset fab05de21480fc54a5101cf813195cb32724b5ad by Serhiy Storchaka in branch '3.6': [3.6] bpo-30626: Fix error handling in PyImport_Import(). (GH-2103) (#2221) https://github.com/python/cpython/commit/fab05de21480fc54a5101cf813195cb32724b5ad

[issue30626] "SystemError: returned NULL without setting an error" from open function

2017-06-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2267 ___ Python tracker ___ ___

[issue30626] "SystemError: returned NULL without setting an error" from open function

2017-06-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2266 ___ Python tracker ___ ___

[issue30626] "SystemError: returned NULL without setting an error" from open function

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 145541cfa05394c38cfd64c0be2c5fb382860995 by Serhiy Storchaka in branch 'master': bpo-30626: Fix error handling in PyImport_Import(). (#2103) https://github.com/python/cpython/commit/145541cfa05394c38cfd64c0be2c5fb382860995 --

Re: sqlite in 2.7 on redhat 6

2017-06-15 Thread Kushal Kumaran
Larry Martell writes: > On Thu, Jun 15, 2017 at 12:20 PM, Kushal Kumaran wrote: >> Larry Martell writes: >> >>> On Thu, Jun 15, 2017 at 10:35 AM, Peter Otten <__pete...@web.de> wrote: Larry Martell wrote: >>

[issue30676] [Windows] Potential for GIL deadlock on Windows in threadmodule acquire_lock

2017-06-15 Thread Stephan R.A. Deibel
Stephan R.A. Deibel added the comment: I think I misunderstood the implementation of EnterNonRecursiveMutex -- the mutex that could block there is the internal 'cs' mutex, which would only be held only briefly while Enter/LeaveNonRecursiveMutex are running, and it looks like the 'cs' mutex is

Re: sqlite in 2.7 on redhat 6

2017-06-15 Thread Larry Martell
On Thu, Jun 15, 2017 at 12:20 PM, Kushal Kumaran wrote: > Larry Martell writes: > >> On Thu, Jun 15, 2017 at 10:35 AM, Peter Otten <__pete...@web.de> wrote: >>> Larry Martell wrote: >>> > On linux the system sqlite3 is used. I tried

[issue30625] Documentation is unclear how "y*" and "y#" format units vary

2017-06-15 Thread Gregory Szorc
Gregory Szorc added the comment: IMO I don't find the 3.2 docs more useful. Specifically, the behavior for memoryview is still unclear. -- ___ Python tracker

[issue30465] FormattedValue expressions have wrong lineno and col_offset information

2017-06-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- Removed message: http://bugs.python.org/msg296115 ___ Python tracker ___

[issue30465] FormattedValue expressions have wrong lineno and col_offset information

2017-06-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- Removed message: http://bugs.python.org/msg296114 ___ Python tracker ___

[issue30465] FormattedValue expressions have wrong lineno and col_offset information

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It causes segfault also with unpatched Python. -- ___ Python tracker ___

[issue30465] FormattedValue expressions have wrong lineno and col_offset information

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The last example causes a segfault with current PR. >>> import ast >>> ast.parse(r""" ... f'''\ ... \ ... {x}\ ... \ ... ''' ... """) python: Python/ast.c:4994: FstringParser_ConcatFstring: Assertion `!state->last_str || PyUnicode_GET_LENGTH(state->last_str)

[issue30676] [Windows] Potential for GIL deadlock on Windows in threadmodule acquire_lock

2017-06-15 Thread Steve Dower
Steve Dower added the comment: We recently tried switching the GIL implementation on Windows by changing the setting you refer to. It didn't work, so we didn't keep the change, but I don't recall the details - likely the same issue you bring up here. I don't have the other issue number handy

Re: [gettext] How to change language at run-time

2017-06-15 Thread Peter Otten
pozz wrote: > Il 15/06/2017 15:22, Peter Otten ha scritto: >> pozz wrote: >> >>> I know I can load multiple gettext.translation: >>> >>> it = gettext.translation('test', localedir="locale", >>> languages=["it"]) es = gettext.translation('test', >>> localedir="locale",

Re: sqlite in 2.7 on redhat 6

2017-06-15 Thread Kushal Kumaran
Larry Martell writes: > On Thu, Jun 15, 2017 at 10:35 AM, Peter Otten <__pete...@web.de> wrote: >> Larry Martell wrote: >> On linux the system sqlite3 is used. >>> >>> I tried building and installing sqlite from source and that did not >>> solve the problem. >> >>

[issue30679] __aexit__ not called when `run_until_complete` is interrupted by SIGINT

2017-06-15 Thread Yury Selivanov
Yury Selivanov added the comment: Yes, this is a known limitation of asyncio -- keyboardinterrupt exceptions kills the loop rather abruptly. One way to handle this is to use 'signal.signal' for sigint to raise custom exception instead of keyboardinterrupt. --

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

2017-06-15 Thread Emily Morehouse
Emily Morehouse added the comment: Looks great, thanks for the updates. Mariatta, can you get this merged in? -- ___ Python tracker ___

[issue30679] __aexit__ not called when `run_until_complete` is interrupted by SIGINT

2017-06-15 Thread Arthur Darcet
Arthur Darcet added the comment: Ok, thank you. I'm guessing the patch I proposed in the PR is not an option, for my curiosity, why is that? -- ___ Python tracker

Re: [gettext] How to change language at run-time

2017-06-15 Thread pozz
Il 15/06/2017 15:22, Peter Otten ha scritto: pozz wrote: I know I can load multiple gettext.translation: it = gettext.translation('test', localedir="locale", languages=["it"]) es = gettext.translation('test', localedir="locale", languages=["es"]) and install one translation at

Re: [OT] is JSON all that great? - was Re: API Help

2017-06-15 Thread Gene Heskett
On Thursday 15 June 2017 01:10:26 Marko Rauhamaa wrote: > Chris Angelico : > > XML is thus poorly suited to *most* forms of data, > > Correct. > > > > > > > aa > > qq > > qw > > qe > > as > > > > > > What does this represent? A generic XML parser has to cope with

[issue30675] test_zipfile leaks references on Python 3.5 on the wo Refleaks buildbots (Gentoo, Windows)

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: It seems like Python 3.6 and master (3.7) are not impacted by this bug, thanks to my rework on regrtest (now libregrtest) in Python 3.6. It's unclear to me if Python 2.7 has the bug: I don't see the warm_caches() function. --

[issue30675] test_zipfile leaks references on Python 3.5 on the wo Refleaks buildbots (Gentoo, Windows)

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: I succeeded to reproduce the bug, but only when running the -jN option, like: ./python -m test -j2 -R 3:3 test_zipfile I reduced the test to: ./python -m test -j2 -R 3:3 test_zipfile -m test_random_open This test heavily use random.randint(). In fact, the

  1   2   >