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

2019-08-12 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I had a similar problem during EuroPython, but that was when I had anaconda on 
my machine. I've since removed it because generally don't use it but had it 
installed for a training session.

I haven't tried to reproduce, but also don't run 10.14.6 yet (holding of 
rebooting due to too much active Terminal windows). I'll try to reproduce later 
this week on another machine.

I get reports about this in the py2app repo as well, see 
,
 so this is not just something on a single machine.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-08-12 Thread Batuhan


Batuhan  added the comment:

serhiy can you review the solution i found?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-08-12 Thread Batuhan


Change by Batuhan :


--
pull_requests: +14968
pull_request: https://github.com/python/cpython/pull/15247

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37798] Add C fastpath for statistics.NormalDist.inv_cdf()

2019-08-12 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

> Can I work on this issue?  
> It might be my first C module addition task for CPython.

Yes.  This issue would be a good place to start.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37760] Refactor makeunicodedata.py: dedupe parsing, use dataclass

2019-08-12 Thread miss-islington


miss-islington  added the comment:


New changeset b02e148a0d6e7a11df93a09ea5f4e1b0ad9b77b8 by Miss Islington (bot) 
in branch '3.8':
bpo-37760: Mark all generated Unicode data headers as generated. (GH-15171)
https://github.com/python/cpython/commit/b02e148a0d6e7a11df93a09ea5f4e1b0ad9b77b8


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37760] Refactor makeunicodedata.py: dedupe parsing, use dataclass

2019-08-12 Thread miss-islington


miss-islington  added the comment:


New changeset c2b9d9f202e4a99fc0800b7a0f0944ac4c2382e3 by Miss Islington (bot) 
in branch '3.8':
bpo-37760: Mark all generated Unicode data headers as generated. (GH-15171)
https://github.com/python/cpython/commit/c2b9d9f202e4a99fc0800b7a0f0944ac4c2382e3


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37760] Refactor makeunicodedata.py: dedupe parsing, use dataclass

2019-08-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset 99d208efed97e02d813e8166925b998bbd0d3993 by Benjamin Peterson 
(Greg Price) in branch 'master':
bpo-37760: Constant-fold some old options in makeunicodedata. (GH-15129)
https://github.com/python/cpython/commit/99d208efed97e02d813e8166925b998bbd0d3993


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37758] unicodedata checksum-tests only test 1/17th of Unicode's codepoints

2019-08-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset def97c988be8340f33869b57942a30d10fc3a1f9 by Benjamin Peterson 
(Greg Price) in branch 'master':
bpo-37758: Clean out vestigial script-bits from test_unicodedata. (GH-15126)
https://github.com/python/cpython/commit/def97c988be8340f33869b57942a30d10fc3a1f9


--
nosy: +benjamin.peterson

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37831] bool(~True) == True

2019-08-12 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

:-D

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37760] Refactor makeunicodedata.py: dedupe parsing, use dataclass

2019-08-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14967
pull_request: https://github.com/python/cpython/pull/15246

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37798] Add C fastpath for statistics.NormalDist.inv_cdf()

2019-08-12 Thread Dong-hee Na


Dong-hee Na  added the comment:

@rhettinger

Hi, Can I work on this issue?
It might be my first C module addition task for CPython.

--
nosy: +corona10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37760] Refactor makeunicodedata.py: dedupe parsing, use dataclass

2019-08-12 Thread miss-islington


miss-islington  added the comment:


New changeset 4e3dfcc4b987e683476a1b16456e57d3c9f581cb by Miss Islington (bot) 
(Greg Price) in branch 'master':
bpo-37760: Mark all generated Unicode data headers as generated. (GH-15171)
https://github.com/python/cpython/commit/4e3dfcc4b987e683476a1b16456e57d3c9f581cb


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37760] Refactor makeunicodedata.py: dedupe parsing, use dataclass

2019-08-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14966
pull_request: https://github.com/python/cpython/pull/15245

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37760] Refactor makeunicodedata.py: dedupe parsing, use dataclass

2019-08-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset ef2af1ad44be0542a47270d5173a0b920c3a450d by Benjamin Peterson 
(Greg Price) in branch 'master':
bpo-37760: Factor out the basic UCD parsing logic of makeunicodedata. (GH-15130)
https://github.com/python/cpython/commit/ef2af1ad44be0542a47270d5173a0b920c3a450d


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37760] Refactor makeunicodedata.py: dedupe parsing, use dataclass

2019-08-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:

Thanks for working this. In your interested in doing some more hacking on 
Unicode data, there's #32771.

--
nosy: +benjamin.peterson

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21109] tarfile: Traversal attack vulnerability

2019-08-12 Thread Ashwin Ramaswami


Ashwin Ramaswami  added the comment:

I've added a PR in which I'm working on adding in the tests. Wanted to make 
sure this is the approach you had in mind? It wasn't as simple as how tests are 
handled in, say, test_binascii.py, because over there there was only one class 
that handled the main test suite, while in this file, there are multiple.

--
nosy: +epicfaace

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21109] tarfile: Traversal attack vulnerability

2019-08-12 Thread Ashwin Ramaswami


Change by Ashwin Ramaswami :


--
pull_requests: +14965
stage: test needed -> patch review
pull_request: https://github.com/python/cpython/pull/15244

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-08-12 Thread Kevin Walzer


Kevin Walzer  added the comment:

Hard to say what is going on without knowing more about the specific version of 
Tk (not just 8.6, but 8.6.8? 8.6.9?).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

macOS's clang does emit some warnings when it sees symbols that shouldn't be 
used with the current target version. CPython's build system should consider 
adding -Werror=unguarded-availability-new to CFLAGS to turn these warnings into 
errors so they are caught at compile time and not run time. But there should be 
proper filtering of affected symbols first, otherwise people won't be able to 
build CPython when targeting older macOS versions.

--
nosy: +indygreg

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:
return number
finally:
break
simple()
```

--
nosy: +ppperry

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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() value some of built-in objects could be 
declared as RealNews or FakeNews by decree of the steering committee. For other 
projects this would have to be subject to opinion, which will probably lead to 
endless internal debates and flame wars.

In a boolean context, FakeNews would be falsey and RealNews would be truthy. 
For bitwise operations, we have the following:

~False -> RealNews
~True  -> FakeNews

False& FakeNews -> False
False& RealNews -> False
True & FakeNews -> False
True & RealNews -> True
RealNews & FakeNews -> FakeNews

False| FakeNews -> FakeNews
False| RealNews -> RealNews
True | FakeNews -> RealNews
True | RealNews -> RealNews
RealNews | FakeNews -> RealNews

False^ FakeNews -> FakeNews
False^ RealNews -> RealNews
True ^ FakeNews -> RealNews
True ^ RealNews -> FakeNews
RealNews ^ FakeNews -> True



--
nosy: +eryksun

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.  Advertised inheritance is usually a Bad Idea ;-)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 BEGIN query. In fact, that's the main reason to use 
isolation_level=None -- you can manage the transactions yourself.

--
nosy: +coleifer

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

--
nosy: +coleifer

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 in 
https://github.com/python/cpython/blob/fd5a82a7685d1599aab12e722a383cb0a2adfd8a/Lib/email/_header_value_parser.py#L1042
 -- thus, get_encoded_word fails, which ends up making get_unstructured go in 
an infinite loop.

My PR makes the parser parse "=?utf-8?q?somevalue?=aa" as 
"=?utf-8?q?somevalue?=aa". However, the existing test cases make sure it parses 
"=?utf-8?q?somevalue?=nowhitespace" as "somevaluenowhitespace". I'm not too 
familiar with RFC 2047, but why are "aa" and "nowhitespace" treated 
differently? Should they be?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 reimplementation of spawn() rather than the UCRT's 
version (which handles the reparse point jsut fine).

> they lack an associated filter driver that handles them in normal file 
> operations

Also true, and likely to be a cause of more problems. But not ours to fix :)

> How about adding a separate function such as nt.read_reparse_point() that's 
> able to read reparse points [...]? The internal implementation could be 
> shared with os.readlink.

Maybe it can just return bytes and let the caller do the parsing?

> The current behavior of follow_symlinks in stat() is problematic. It should 
> be limited to symlinks.

This sounds like a good option to me, too. So that would suggest that 
Modules/posixmodule.c in win32_xstat_impl would verify both 
FILE_ATTRIBUTE_REPARSE_POINT and IO_REPARSE_TAG_SYMLINK? And if the tag is 
different it'll return information about the reparse point rather than the 
target?

> The stat result would gain an st_reparse_tag field (already added by your 
> PR), which would be non-zero whenever a reparse point is opened.

I agree this can stay. We don't need the rest of the logic here - callers who 
care to follow non-symlink reparse points can use the new 
nt.read_reparse_point() function to do it.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the print name SHOULD be informative, 
not that it MUST be, where SHOULD and MUST are defined by RFC2119. The print 
name can be non-informative for some reason (e.g. maybe to use the whole 16 KiB 
buffer for the target path.) For symlinks that's not normally observed, since 
CreateSymbolicLinkW is conservative. For junctions, applications and frameworks 
use a low-level IOCTL to set them, and they're not necessarily bothering to set 
a print name. For example, PowerShell omits it:

PS C:\Mount> new-item Spam -type junction -value C:\Temp\Spam | out-null
PS C:\Mount> fsutil.exe reparsepoint query spam
Reparse Tag Value : 0xa003
Tag value: Microsoft
Tag value: Name Surrogate
Tag value: Mount Point
Substitue Name offset: 0
Substitue Name length: 32
Print Name offset: 34
Print Name Length: 0
Substitute Name:   \??\C:\Temp\Spam

This mount point works fine despite the lack of a print name.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 points are not name surrogates (i.e. 0x2000_ set in 
the tag), and they lack an associated filter driver that handles them in normal 
file operations. I/O syscalls that try to reparse the path fail with 
STATUS_IO_REPARSE_TAG_NOT_HANDLED.

It's also messy to conflate different things in general for the sake of a 
particular case. For example, if code sees the app-exec link as a symlink 
because ntpath.is_link() is true, it may try to copy it via os.readlink() and 
os.symlink(). This creates a different type of reparse point, if the user even 
has the symlink privilege, which may not behave the same as the original 
app-exec link in a CreateProcessW call. (I don't know what the end goal is for 
the Windows team in terms of allowing app executables under 
"%ProgramFiles%\WindowsApps" to be executed directly.) 

How about adding a separate function such as nt.read_reparse_point() that's 
able to read reparse points that are documented (most types are opaque) and can 
be interpreted as a string, or a tuple of strings? The internal implementation 
could be shared with os.readlink.

The current behavior of follow_symlinks in stat() is problematic. It should be 
limited to symlinks. So another idea that I think could prove generally useful 
is to extend stat() and lstat() with a follow_reparse_points=True parameter. If 
false, it would imply follow_symlinks is false. Explicitly passing 
follow_symlinks=True with follow_reparse_points=False would be an error. With 
follow_symlinks=False and follow_reparse_points=True, it would only open a 
symlink and follow all other types of reparse points. The stat result would 
gain an st_reparse_tag field (already added by your PR), which would be 
non-zero whenever a reparse point is opened.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/0c64b57e0155c333b7c96ec2af009c1388cd5d31


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 Python than in C (C has the distinct unary prefix 
"!" operator for truthiness negation, and, as you note, Python has "not").

It's educational ;-) to learn how analogies between ints and bools can break 
down.  For logical negation in the sense they want here, it's not "~x" they 
want but "~x & 1" - that is, if someone insists on using an inappropriate 
operator.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-08-12 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +14958
pull_request: https://github.com/python/cpython/pull/15235

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: +14957
pull_request: https://github.com/python/cpython/pull/15233

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 732775d6be8062e72cf4995d5a9db0170e22c233 by Steve Dower (Derek 
Keeler) in branch 'master':
bpo-37354: Make Powershell Activate.ps1 script static to allow for signing 
(GH-14967)
https://github.com/python/cpython/commit/732775d6be8062e72cf4995d5a9db0170e22c233


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-08-12 Thread Ricardo Smits


Ricardo Smits  added the comment:

I am on a Conda environment with Python 3.7.4 with the corresponding
Tkinter 8.6 that came with it. I tried to use some apps I compiled with
Pyinstaller and all of them caused this crash. So I tried line by line on
the terminal (to cross out Pyinstaller as the problem) and "root = tk.Tk()"
was where it crashed for me.

Here are more people with the same issues:
https://github.com/pyinstaller/pyinstaller/issues/4334

As Ronald said, most certainly it is a macOS bug, but I don't think they
will bother to fix this when they are so close to their 10.15 release :/

On Mon, Aug 12, 2019 at 8:39 PM Ned Deily  wrote:

>
> Ned Deily  added the comment:
>
> Can you be more specific about the source of your Pythons and Tk 8.6 and
> exactly what version it is? Tk through tkinter seems to work as expected
> (and without a crash) when I try the current Python.org pythons with their
> built-in Tk 8.6.6 or current MscPorts Pythons with their Tk 8.6.9 all
> running on the latest released 10.14.6 with Supplemental Update on a
> MacBook Pro.
>
> Ronald, are you able to reproduce this?
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16637] py-bt, py-locals, etc. GDB commands fail with output-radix 16

2019-08-12 Thread Roundup Robot


Change by Roundup Robot :


--
pull_requests: +14956
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/15232

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37831] bool(~True) == True

2019-08-12 Thread Mark Dickinson


Mark Dickinson  added the comment:

> isn't `int()` the obvious way "to convert an integer-like thing to an actual 
> int"?

Well sorta, except that it's too lenient, letting in strings, floats, Decimal 
instances and the like. The strings isn't so much of an issue - it's more the 
silent truncation with the floats and Decimals that's problematic.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37831] bool(~True) == True

2019-08-12 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

For reference, the link to the Python-Ideas discussion in Mailman 3:

https://mail.python.org/archives/list/python-id...@python.org/thread/7UR3XGXNLGCM6QFR7KTIQ2QGVRS6QNZH/

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37831] bool(~True) == True

2019-08-12 Thread Tim Peters


Tim Peters  added the comment:

Mark, isn't `int()` the obvious way "to convert an integer-like thing to an 
actual int"?

>>> int(True)
1
>>> int(False)
0

For the rest, I'm -True on making ~ do something magical for bools inconsistent 
with what it does for ints.  "is-a" is a promise.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37834] readlink on Windows cannot read app exec links

2019-08-12 Thread Steve Dower


Change by Steve Dower :


--
keywords: +patch
pull_requests: +14955
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/15231

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37834] readlink on Windows cannot read app exec links

2019-08-12 Thread Steve Dower


Change by Steve Dower :


--
nosy: +eryksun

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37834] readlink on Windows cannot read app exec links

2019-08-12 Thread Steve Dower


New submission from Steve Dower :

The IO_REPARSE_TAG_APPEXECLINK was introduced for aliases to installed UWP apps 
that require activation before they can be executed.

Currently these are in an unusual place as far as Python support goes - stat() 
fails where lstat() succeeds, but the lstat() result doesn't have the right 
flags to make is_link() return True.

It's not clear whether we *should* treat these as regular symlinks, given there 
are a number of practical differences, but since we can enable it I'm going to 
post a PR anyway.

--
components: Windows
messages: 349486
nosy: paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: readlink on Windows cannot read app exec links
versions: Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-08-12 Thread Ned Deily


Ned Deily  added the comment:

Can you be more specific about the source of your Pythons and Tk 8.6 and 
exactly what version it is? Tk through tkinter seems to work as expected (and 
without a crash) when I try the current Python.org pythons with their built-in 
Tk 8.6.6 or current MscPorts Pythons with their Tk 8.6.9 all running on the 
latest released 10.14.6 with Supplemental Update on a MacBook Pro.

Ronald, are you able to reproduce this?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37831] bool(~True) == True

2019-08-12 Thread Mark Dickinson


Mark Dickinson  added the comment:

There's also the minor annoyance that there isn't currently an obvious safe way 
to convert an integer-like thing to an actual int, to make sure that bools do 
the right thing in a numeric context. operator.index *ought* to be that obvious 
way, but it leaves bools untouched.

>>> operator.index(True)
True

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-08-12 Thread Batuhan


Batuhan  added the comment:

I closed the my PR in favor of Serhiy's PR.

On Mon, Aug 12, 2019, 9:18 PM Serhiy Storchaka 
wrote:

>
> Change by Serhiy Storchaka :
>
>
> --
> pull_requests: +14953
> pull_request: https://github.com/python/cpython/pull/15230
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37831] bool(~True) == True

2019-08-12 Thread Mark Dickinson


Mark Dickinson  added the comment:

> Making True == -1 looks interesting, but it has drawbacks.

Yes, please ignore that part of my post. :-) It shouldn't be considered 
seriously until a time machine turns up (and probably not even then).

My main worry with the proposed change is accidental breakage from the change 
in meaning. I've so far failed to find any examples of real-world functions 
that could/would be broken - the closest I've come is floating-point 
bit-pattern manipulation functions (constructing a bit-string from a sign, 
exponent and significand, where it's quite natural to treat the sign both as an 
"is_negative" boolean and as a 0-or-1 integer). But that case didn't involve a 
`~sign` at any point, so it doesn't count.

Still, I have a nagging suspicion that such a function will turn up if we make 
this change.

Having ~True *not* be the same as ~1 feels like a bigger surprise to me than 
having ~True not be False; it breaks my simple mental model that bools always 
behave like ints in numeric contexts.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-08-12 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +14953
pull_request: https://github.com/python/cpython/pull/15230

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32489] Allow 'continue' in 'finally' clause

2019-08-12 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +14954
pull_request: https://github.com/python/cpython/pull/15230

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37804] Remove Thread.isAlive in Python 3.9

2019-08-12 Thread STINNER Victor


Change by STINNER Victor :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37804] Remove Thread.isAlive in Python 3.9

2019-08-12 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 44046fe4fc7f00a6eb855b33e6a3f953cf5233a5 by Victor Stinner 
(Dong-hee Na) in branch 'master':
bpo-37804: Remove the deprecated method threading.Thread.isAlive() (GH-15225)
https://github.com/python/cpython/commit/44046fe4fc7f00a6eb855b33e6a3f953cf5233a5


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37831] bool(~True) == True

2019-08-12 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

-1 from me too.

Making True == -1 looks interesting, but it has drawbacks.

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32912] Raise non-silent warning for invalid escape sequences

2019-08-12 Thread Steve Dower


Change by Steve Dower :


--
nosy: +steve.dower

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37583] Got a 113 error when running the test_socket

2019-08-12 Thread hai shi


hai shi  added the comment:

Oh, sorry, victor. I use ./python -m unittest xxx before.

Updating the test result again.

--
Added file: https://bugs.python.org/file48538/test_socket_fail_info_v2.txt

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23837] asyncio: read pipe transport tries to resume reading after loop is gone

2019-08-12 Thread Sascha Silbe


Change by Sascha Silbe :


--
nosy: +sascha_silbe

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37831] bool(~True) == True

2019-08-12 Thread Mark Dickinson


Change by Mark Dickinson :


--
stage: resolved -> 

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37831] bool(~True) == True

2019-08-12 Thread Mark Dickinson


Mark Dickinson  added the comment:

See also the discussion started by Antoine here:

https://mail.python.org/pipermail//python-ideas/2016-April/039488.html

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37831] bool(~True) == True

2019-08-12 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

+0 This proposal may be worth re-considering.  I've seen the problem arise in 
practice on multiple occasions.  I suspect that it will continue to give people 
trouble.

Right now, a bool is-a int that 1) only has two singleton instances equal to 
zero and one, 2) has a different repr, and 3) has the & | and ^ operations 
redefined to return instances of bool.

I think we could also override the ~ operation.  That would be a Liskov 
violation, making bools slightly less substitutable for ints, but it does so in 
a way that is intuitive and likely to match what a user intends when inverting 
a bool.

--
nosy: +rhettinger, tim.peters
status: closed -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37564] ArgumentParser should support bool type according to truth values

2019-08-12 Thread paul j3


paul j3  added the comment:

This patch lacks proper documentation, and is too English language specific.

For users who assume 'type' means a class rather than function (callable) this 
change does not need documentation, since it accommodates that assumption.  But 
more experienced users, or ones who read the documentation with care, this 
change could be puzzling.  "Why does 'bool' work?"  Admittedly they are 
unlikely to try it.  Still, we are deviating the documented behavior.

We also need to pay attention to internationalization.  Argparse wraps most 
error messages and string displays in 'gettext'.  There isn't any other part of 
argparse that assumes that sys.argv strings have English meanings.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35855] IDLE squeezer: improve unsqueezing and autosqueeze default

2019-08-12 Thread Tal Einat


Tal Einat  added the comment:

See issue #37768 regarding opening of help(object) output in a separate window.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37831] bool(~True) == True

2019-08-12 Thread Josh Rosenberg


Change by Josh Rosenberg :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> ~True is not False

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2019-08-12 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +14952
pull_request: https://github.com/python/cpython/pull/15228

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37398] contextlib.ContextDecorator decorating async functions

2019-08-12 Thread Yury Selivanov


Yury Selivanov  added the comment:

> I think a simple iscoroutinefunction check will be pretty close to 100% 
> matching what users expect.

Yes, "pretty close", but not reliable. :)  E.g. I can easily design a decorator 
that when applied first would break the proposed iscoroutinefunction logic.  
While decorators like that aren't popular, I'd be wary about introducing a 
solution that can lead to hours of debugging in some weird (and maybe stupid) 
cases.

> Or, if we don't change the semantics, then we can still be 100% confident 
> that if iscoroutinefunction returns true, then the user has made a mistake. 
> (I.e., if we make this issue a warning, then it's possible we'll miss print a 
> warning in some complicated cases, but we can be confident that all the 
> warnings we do print are correct.)

+1 to implement a warning the way you suggest.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-08-12 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

This is almost certainly a bug in macOS. I wonder if it is possible to work 
around it in Python.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37642] timezone allows no offset from range (23:59, 24:00)

2019-08-12 Thread Paul Ganssle


Change by Paul Ganssle :


--
pull_requests: +14951
pull_request: https://github.com/python/cpython/pull/15227

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37642] timezone allows no offset from range (23:59, 24:00)

2019-08-12 Thread Paul Ganssle


Change by Paul Ganssle :


--
pull_requests: +14950
pull_request: https://github.com/python/cpython/pull/15226

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37804] Remove Thread.isAlive in Python 3.9

2019-08-12 Thread Dong-hee Na


Change by Dong-hee Na :


--
keywords: +patch
pull_requests: +14949
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/15225

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-08-12 Thread Ricardo Smits


New submission from Ricardo Smits :

tkVersion == 8.6

After the new update in macOS (10.14.6):

In any python interpreter, when running tk.Tk() it makes macOS crash and logout 
giving the following error:
$ CGSTrackingRegionSetIsEnabled returned CG error 268435459
$ HIToolbox: received notification of WindowServer event port death.

--
components: macOS
messages: 349472
nosy: ned.deily, ronaldoussoren, smits92
priority: normal
severity: normal
status: open
title: tkinter crashes macOS in the latest macOS update 10.14.6
type: crash
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15266] Perform the same checks as PyPI for Description field

2019-08-12 Thread Giovanni Cappellotto


Change by Giovanni Cappellotto :


--
nosy:  -potomak

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37415] Error build Python with Intel compiler: doesn't provide atomic_uintptr_t

2019-08-12 Thread STINNER Victor


STINNER Victor  added the comment:

> Changing Include/pyatomic.h to use _Atomic as suggested by Victor in 
> msg346785 leads to the error that _Atomic was undefined.

No idea how to define a "_Py_atomic_address" type with icc 2019.4 in this case. 
If someone has a working patch, I can review it ;-)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15266] Perform the same checks as PyPI for Description field

2019-08-12 Thread STINNER Victor


Change by STINNER Victor :


--
keywords:  -easy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15266] Perform the same checks as PyPI for Description field

2019-08-12 Thread STINNER Victor


STINNER Victor  added the comment:

> Why are can I still find these issues in the "Easy issues" list?

My bad... I only added a comment but forgot to remove the easy keyword. It's 
now removed ;-)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36974] Implement PEP 590

2019-08-12 Thread STINNER Victor


STINNER Victor  added the comment:

'SystemError: bad call flags' error message LGTM, I don't think that it should 
be changed.

> Are there many projects that define functions/methods but never call them?

I have no idea.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37583] Got a 113 error when running the test_socket

2019-08-12 Thread STINNER Victor


STINNER Victor  added the comment:

I don't understand such error:


==
ERROR: testSendmsgBadMultiCmsg (test.test_socket.SendmsgTests)
--
Traceback (most recent call last):
  File "/home/shihai/workspace/cpython/Lib/test/test_socket.py", line 2649, in 
setUp
self.serv_sock.settimeout(self.fail_timeout)
AttributeError: 'SendmsgTests' object has no attribute 'serv_sock'

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37774] Micro-optimize vectorcall using PY_LIKELY

2019-08-12 Thread STINNER Victor


STINNER Victor  added the comment:

My previous attempt: bpo-29461.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37774] Micro-optimize vectorcall using PY_LIKELY

2019-08-12 Thread STINNER Victor


STINNER Victor  added the comment:

I dislike adding these macros:

#  define Py_UNLIKELY(value) __builtin_expect(!!(value), 0)
#  define Py_LIKELY(value) __builtin_expect(!!(value), 1)

It's too easy to introduce a performance regression by mistake. IHMO PGO 
compilation already defeats the purpose of these macros. You should use PGO 
build.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14465] xml.etree.ElementTree: add feature to prettify XML output

2019-08-12 Thread STINNER Victor


Change by STINNER Victor :


--
nosy:  -vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37762] IDLE very slow due a super long line output in chunks

2019-08-12 Thread Tal Einat


Tal Einat  added the comment:

With PR GH-15211 (for issue #37827), which implements terminal-like handling of 
the \r and \b control characters, the TensorFlow tutorial almost works as 
intended in the IDLE shell; a minor change to Tensorflow is needed to make it 
work as intended.

Tensorflow inspect sys.stdout to decide whether to use \r and \b control 
characters is its progress output. Since it recognizes that IDLE's sys.stdout 
replacement isn't a terminal, it decides not to. Overriding the 
_dynamic_display attribute of the Progbar class in 
tensorflow/python/keras/utils/generic_utils.py makes it work very nicely with 
the above mentioned PR.

(I checked this on Windows; it is possible that it will "just work" on other 
OSs.)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34155] email.utils.parseaddr mistakenly parse an email

2019-08-12 Thread STINNER Victor


STINNER Victor  added the comment:

This issue is a security issue so Python 2.7, 3.5, 3.6 should also be fixed, no?

--
status: closed -> open
versions: +Python 2.7, Python 3.5, Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34155] email.utils.parseaddr mistakenly parse an email

2019-08-12 Thread STINNER Victor


STINNER Victor  added the comment:

I change the issue type to security because of 
https://bugs.python.org/issue34155#msg340534: "Note that this bug was used in 
an actual security attack so it is serious".

--
type: behavior -> security

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-08-12 Thread STINNER Victor


STINNER Victor  added the comment:

> It looks to me, that it is not possible to solve this with the current 
> bytecode. Perhaps the only way to fix a crash is to revert issue32489.

That sounds like a good compromise to unblock next Python 3.8 release. 
issue32489 can wait another release (Python 3.9), no?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-08-12 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
nosy: +pablogsal

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37831] bool(~True) == True

2019-08-12 Thread Mark Dickinson


Mark Dickinson  added the comment:

Looks like this is essentially a duplicate of #12447

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >