[issue37833] tkinter crashes macOS in the latest macOS update 10.14.6

2019-08-12 Thread Ned Deily
Ned Deily added the comment: Thanks for the link but that really doesn’t pin down exactly what Tk is in use. This probably should be pursued with the Tk project. Adding Kevin Walzer from Tk: Kevin, does this problem sound familiar? -- nosy: +wordtech _

[issue37831] bool(~True) == True

2019-08-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: Okay, we'll just continue to tell users "you're holding it wrong" ;-) -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue37831] bool(~True) == True

2019-08-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: It may have been a mistake to directly support | & and ^. That implies ~ should work. The fallback is to use "not" but that looks weird and has the wrong operator precedence: (not a) ^ (not b & c) -- ___ Pyt

[issue37831] bool(~True) == True

2019-08-12 Thread Tim Peters
Tim Peters added the comment: I don't agree that "~" doesn't "work". If people are reading it as "not", they're in error. The Python docs say ~x means the bits of x inverted and that's what it does. There's no sense it which it was _intended_ to be logical negation, no more in Pytho

[issue37354] Write PowerShell Activate.ps1 to be static so it can be signed

2019-08-12 Thread Steve Dower
Steve Dower added the comment: New changeset 0c64b57e0155c333b7c96ec2af009c1388cd5d31 by Steve Dower (Miss Islington (bot)) in branch '3.8': [3.8] bpo-37354: Make Powershell Activate.ps1 script static to allow for signing (GH-14967) https://github.com/python/cpython/commit/0c64b57e0155c333b7

[issue37354] Write PowerShell Activate.ps1 to be static so it can be signed

2019-08-12 Thread Steve Dower
Steve Dower added the comment: New changeset 3e34a25a7a5c9ea2c46f2daeeb60f072faa5aaa1 by Steve Dower in branch 'master': bpo-37354: Sign Activate.ps1 for release (GH-15235) https://github.com/python/cpython/commit/3e34a25a7a5c9ea2c46f2daeeb60f072faa5aaa1 --

[issue37354] Write PowerShell Activate.ps1 to be static so it can be signed

2019-08-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +14959 pull_request: https://github.com/python/cpython/pull/15236 ___ Python tracker ___ __

[issue37354] Write PowerShell Activate.ps1 to be static so it can be signed

2019-08-12 Thread Steve Dower
Steve Dower added the comment: Thanks, Derek! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue37834] readlink on Windows cannot read app exec links

2019-08-12 Thread Steve Dower
Steve Dower added the comment: Added an update with a new stat field (st_reparse_tag) so that we can tell them apart, which also means I can add a test for readlink. -- assignee: -> steve.dower ___ Python tracker

[issue37354] Write PowerShell Activate.ps1 to be static so it can be signed

2019-08-12 Thread miss-islington
miss-islington added the comment: New changeset 2b98d8ec7ec3d41c6403ff9f6677a00ea0cb8b92 by Miss Islington (bot) in branch '3.8': bpo-37354: Sign Activate.ps1 for release (GH-15235) https://github.com/python/cpython/commit/2b98d8ec7ec3d41c6403ff9f6677a00ea0cb8b92 -- nosy: +miss-isli

[issue37834] readlink on Windows cannot read app exec links

2019-08-12 Thread Eryk Sun
Eryk Sun added the comment: Symlinks are specially interpreted by the file API, I/O manager, and network redirector. So I think they should remain a separate category. readlink() and is_link() should be reserved for POSIX symlinks, i.e. only IO_REPARSE_TAG_SYMLINK. These app-exec reparse p

[issue37834] readlink on Windows cannot read app exec links

2019-08-12 Thread Eryk Sun
Eryk Sun added the comment: > How about adding a separate function such as nt.read_reparse_point() If we support reading junctions, this should be using the substitute name (with \??\ replaced by \\?\) instead of the print name. For both symlinks and junctions, [MS-FSCC] 2.1.2 states that th

[issue37759] Polish whatsnew for 3.8

2019-08-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 66a34d35e4c97da9840a29ba9fba76721021c463 by Raymond Hettinger in branch 'master': bpo-37759: Second round of edits to Whatsnew 3.8 (GH-15204) https://github.com/python/cpython/commit/66a34d35e4c97da9840a29ba9fba76721021c463 --

[issue37834] readlink on Windows cannot read app exec links

2019-08-12 Thread Steve Dower
Steve Dower added the comment: Thanks Eryk for your valuable response :) > readlink() and is_link() should be reserved for POSIX symlinks, i.e. only > IO_REPARSE_TAG_SYMLINK. I'm okay with that reasoning. Honestly, the only real problem I've seen is in applications that use a reimplementat

[issue37764] email.Message.as_string infinite loop

2019-08-12 Thread Ashwin Ramaswami
Change by Ashwin Ramaswami : -- keywords: +patch pull_requests: +14960 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15239 ___ Python tracker ___

[issue37764] email.Message.as_string infinite loop

2019-08-12 Thread Ashwin Ramaswami
Ashwin Ramaswami added the comment: Oh, both the Travis links I sent actually ended up reproducing the bug. I've made a PR that fixes with an even smaller test case: get_unstructured('=?utf-8?q?somevalue?=aa') It looks like this is caused because "aa" is thought to be an encoded word escape

[issue34916] Add create_window_function() to sqlite3.Connection

2019-08-12 Thread Charles
Charles added the comment: I've implemented this in a fork / standalone packaging of the Python 3.x sqlite3 module. You can find the relevant portions (and a couple unrelated changes) in this commit: https://github.com/coleifer/pysqlite3/commit/91c20016fd3fd3d1d7ade475893046958f7faa00 -

[issue16958] The sqlite3 context manager does not work with isolation_level=None

2019-08-12 Thread Charles
Charles added the comment: > With isolation_level set to None, the sqlite3 library is in autocommit mode, > so changes will get committed immediately inside the with, which is simply > broken. Not necessarily. When sqlite is in autocommit mode, you can still open transactions by executing a

[issue37831] bool(~True) == True

2019-08-12 Thread Tim Peters
Tim Peters added the comment: BTW, I should clarify that I think the real "sin" here was making bool a subclass of int to begin with. For example, there's no sane reason at all for bools to support division, and no reason for a distinct type not to define "~" any way it feels like. Adverti

[issue37831] bool(~True) == True

2019-08-12 Thread Eryk Sun
Eryk Sun added the comment: We could extend bool with shades of grey that close the 2-bit, signed set over the complement: {-2, -1, 0, 1}. For example, the bitwise complement of False could be RealNews (-1, 0x11) and the bitwise complement of True could be FakeNews (-2, 0x10). The bool() va

[issue37759] Polish whatsnew for 3.8

2019-08-12 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +14961 pull_request: https://github.com/python/cpython/pull/15240 ___ Python tracker ___ ___

[issue37826] Document PEP 3134 in tutorials/errors.rst

2019-08-12 Thread Abhilash Raj
Abhilash Raj added the comment: Yes, I am gonna work on a PR. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue37759] Polish whatsnew for 3.8

2019-08-12 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +14962 pull_request: https://github.com/python/cpython/pull/15241 ___ Python tracker ___ ___

[issue37759] Polish whatsnew for 3.8

2019-08-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 9bedb8c9e60fab4f49ee12b95f8073ee9f577f81 by Raymond Hettinger in branch '3.8': bpo-37759: Second round of edits to Whatsnew 3.8 (GH-15204) (GH-15240) https://github.com/python/cpython/commit/9bedb8c9e60fab4f49ee12b95f8073ee9f577f81

[issue15010] unittest: _top_level_dir is incorrectly persisted between calls to different load_test methods

2019-08-12 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +14963 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15242 ___ Python tracker ___

[issue15010] unittest: _top_level_dir is incorrectly persisted between calls to different load_test methods

2019-08-12 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz versions: +Python 3.7, Python 3.8, Python 3.9 -Python 3.2, Python 3.3 ___ Python tracker ___ __

[issue22811] _top_level_dir state leaks on defaultTestLoader

2019-08-12 Thread Zackery Spytz
Zackery Spytz added the comment: It seems that this issue is a duplicate of bpo-15010. -- nosy: +ZackerySpytz ___ Python tracker ___ __

[issue37830] continue in finally with return in try results with segfault

2019-08-12 Thread ppperry
ppperry added the comment: Unfortunately, there's a similar bug for `break` in a finally inside two nested loops, so just re-banning `continue` won't fix the crash. The code below segfaults: ``` def simple(): for number in range(2): for number in range(2): try:

[issue37826] Document PEP 3134 in tutorials/errors.rst

2019-08-12 Thread Abhilash Raj
Change by Abhilash Raj : -- keywords: +patch pull_requests: +14964 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15243 ___ Python tracker ___ ___

[issue37677] Seg Fault on OSX when multiprocessing

2019-08-12 Thread alvis
alvis added the comment: Hi, sorry i am unable to provide a standalone script that cause this issue, as it happen once every few weeks. Is it similar to the no_proxy=* issue? -- ___ Python tracker _

[issue31601] Availability of utimensat, futimens not checked correctly on macOS

2019-08-12 Thread Gregory Szorc
Gregory Szorc added the comment: I ran into this with PyOxidizer. CPython's `configure` needs to be made aware of the current macOS SDK version and filter out symbols not present in the target macOS version. I worked around it by `undef`'ing some entries from the generated `pyconfig.h` file.

<    1   2