[issue43347] IDLE crashes in macOS Apple chip, maybe completions

2021-05-02 Thread Tal Einat


Tal Einat  added the comment:

I'd be happy to look into this but I haven't access to any M-1 Macs at the 
moment.

It would be helpful if someone with an M-1 could try running IDLE from the 
command line to see if an error message is written when this issue occurs.

--
nosy: +taleinat

___
Python tracker 

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



[issue44014] Fix error in Enum documentation.

2021-05-02 Thread Kris Powell


Change by Kris Powell :


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

___
Python tracker 

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



[issue44014] Fix error in Enum documentation.

2021-05-02 Thread Kris Powell


New submission from Kris Powell :

The example code was referring to the wrong enum `Color`, instead of `Ordinal`.

--
messages: 392765
nosy: krisaoe
priority: normal
severity: normal
status: open
title: Fix error in Enum documentation.
type: enhancement

___
Python tracker 

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



[issue43583] make test failures, 2 tests failed: test_embed test_tabnanny

2021-05-02 Thread Alexei S


Change by Alexei S :


--
components: +Tests
type:  -> compile error

___
Python tracker 

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



[issue42362] Switch to clang as default compiler in build-installer.py

2021-05-02 Thread Ned Deily


Ned Deily  added the comment:


New changeset c3bfa762214e4fbe25699d75c0412791cefd7094 by Ned Deily in branch 
'master':
bpo-42362: use clang name on 10.9 builds as well (GH-25834)
https://github.com/python/cpython/commit/c3bfa762214e4fbe25699d75c0412791cefd7094


--

___
Python tracker 

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



[issue29707] os.path.ismount() always returns false for mount --bind on same filesystem

2021-05-02 Thread R0b0t1


R0b0t1  added the comment:

https://bugs.python.org/issue29707#msg331921
> But what is the problem with getting False for bind mounts on the same 
> filesystem?

When doing directory traversal it is important to not duplicate listings. It 
seems this can cause duplication. I'm replying to echo Mikko Korkalo's 
sentiment, this really should not have been closed.

This should likely be addressed along with https://bugs.python.org/issue23407.

--
nosy: +R0b0t1

___
Python tracker 

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



[issue42235] [macOS] Use --enable-optimizations in build-installer.py

2021-05-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +24521
pull_request: https://github.com/python/cpython/pull/25832

___
Python tracker 

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



[issue42362] Switch to clang as default compiler in build-installer.py

2021-05-02 Thread Ned Deily


Change by Ned Deily :


--
pull_requests: +24520
pull_request: https://github.com/python/cpython/pull/25834

___
Python tracker 

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



[issue42235] [macOS] Use --enable-optimizations in build-installer.py

2021-05-02 Thread Ned Deily


Ned Deily  added the comment:

Thanks for the PR. I am only going to apply this to the 3.10 branch for now. 
Perhaps when we have more experience with it, it could be backported to 3.9.x. 
First appearance in 3.10.0b1.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10

___
Python tracker 

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



[issue42235] [macOS] Use --enable-optimizations in build-installer.py

2021-05-02 Thread Ned Deily


Change by Ned Deily :


--
pull_requests:  -24519

___
Python tracker 

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



[issue42235] [macOS] Use --enable-optimizations in build-installer.py

2021-05-02 Thread Ned Deily


Change by Ned Deily :


--
pull_requests:  -24518

___
Python tracker 

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



[issue42235] [macOS] Use --enable-optimizations in build-installer.py

2021-05-02 Thread Ned Deily


Ned Deily  added the comment:


New changeset e08059edef3be07ada3058d68ad2c9cc13b7418e by Ronald Oussoren in 
branch 'master':
bpo-42235: [macOS] Use LTO/PGO in build-installer.py with new enough compilers 
(GH-23079)
https://github.com/python/cpython/commit/e08059edef3be07ada3058d68ad2c9cc13b7418e


--

___
Python tracker 

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



[issue42235] [macOS] Use --enable-optimizations in build-installer.py

2021-05-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +24519
pull_request: https://github.com/python/cpython/pull/25832

___
Python tracker 

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



[issue42235] [macOS] Use --enable-optimizations in build-installer.py

2021-05-02 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +24518
pull_request: https://github.com/python/cpython/pull/25831

___
Python tracker 

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



[issue41129] setup.py test for macOS SDK files may incorrectly classify files in other file systems

2021-05-02 Thread Ned Deily


Ned Deily  added the comment:

Thanks for the PR, Ned!  Fixed in 3.10.0b1 and 3.9.5.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, Python 3.9 -Python 3.8

___
Python tracker 

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



[issue41129] setup.py test for macOS SDK files may incorrectly classify files in other file systems

2021-05-02 Thread Ned Deily


Ned Deily  added the comment:


New changeset 98035ec93ff0d9875f19027015689734d70c14e5 by Miss Islington (bot) 
in branch '3.9':
bpo-41129: Fix check for macOS SDK paths when building Python (GH-25785) 
(GH-25830)
https://github.com/python/cpython/commit/98035ec93ff0d9875f19027015689734d70c14e5


--

___
Python tracker 

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



[issue25478] Consider adding a normalize() method to collections.Counter()

2021-05-02 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset 8c598dbb9483bcfcb88fc579ebf27821d8861465 by Raymond Hettinger in 
branch 'master':
bpo-25478: Add total() method to collections.Counter (GH-25829)
https://github.com/python/cpython/commit/8c598dbb9483bcfcb88fc579ebf27821d8861465


--

___
Python tracker 

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



[issue41129] setup.py test for macOS SDK files may incorrectly classify files in other file systems

2021-05-02 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +24517
pull_request: https://github.com/python/cpython/pull/25830

___
Python tracker 

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



[issue41129] setup.py test for macOS SDK files may incorrectly classify files in other file systems

2021-05-02 Thread Ned Deily


Ned Deily  added the comment:


New changeset d52bbde9421987d216c600557ef5bc931d03efcc by Ned Batchelder in 
branch 'master':
bpo-41129: Fix check for macOS SDK paths when building Python (GH-25785)
https://github.com/python/cpython/commit/d52bbde9421987d216c600557ef5bc931d03efcc


--

___
Python tracker 

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



[issue37903] IDLE Shell sidebar.

2021-05-02 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset b43cc31a270d0dacbc69e35d6c6fbdb5edd7e711 by Tal Einat in branch 
'master':
bpo-37903: IDLE: add shell sidebar mouse interactions (GH-25708)
https://github.com/python/cpython/commit/b43cc31a270d0dacbc69e35d6c6fbdb5edd7e711


--

___
Python tracker 

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



[issue25478] Consider adding a normalize() method to collections.Counter()

2021-05-02 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
pull_requests: +24516
pull_request: https://github.com/python/cpython/pull/25829

___
Python tracker 

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



[issue42362] Switch to clang as default compiler in build-installer.py

2021-05-02 Thread Ned Deily


Change by Ned Deily :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10

___
Python tracker 

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



[issue42362] Switch to clang as default compiler in build-installer.py

2021-05-02 Thread miss-islington


miss-islington  added the comment:


New changeset 90d523910a61290597b4599f17363b532f0a4411 by Ronald Oussoren in 
branch 'master':
bpo-42362: Switch to clang/clang++ as the default compiler in 
build-installer.py (GH-23298)
https://github.com/python/cpython/commit/90d523910a61290597b4599f17363b532f0a4411


--
nosy: +miss-islington

___
Python tracker 

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



[issue43926] Clean metadata (importlib_metadata 4.0)

2021-05-02 Thread Jason R. Coombs


Change by Jason R. Coombs :


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



[issue37923] Combining typing.get_type_hints and inspect.signature

2021-05-02 Thread Larry Hastings


Change by Larry Hastings :


--
nosy:  -larry

___
Python tracker 

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



[issue37923] Combining typing.get_type_hints and inspect.signature

2021-05-02 Thread Larry Hastings


Larry Hastings  added the comment:

"Type hints" and "annotations" aren't the same thing.  And type hints are more 
opinionated about the values of annotations than would be appropriate for the 
inspect module.  For example, typing.get_type_hints() wraps strings with 
ForwardRef, turns None into NoneType, and it ignores objects with a 
"__no_type_check__" attribute.

So, I think it might be okay to *add* a *new* function to the typing module 
that was equivalent to inspect.signature() (and typing.signature() seems like a 
good name here).  I don't use type hints, so I don't have a strong opinion on 
that either way.  But you definitely shouldn't modify inspect.signature() so it 
produces type hints.

--

___
Python tracker 

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



[issue43851] Optimise SQLite builds on macOS and Windows

2021-05-02 Thread Ned Deily


Ned Deily  added the comment:


New changeset 555cbbe7c10c29ec4358c66c247b8d7e871a5f7b by Erlend Egeberg 
Aasland in branch 'master':
bpo-43851: Build SQLite with SQLITE_OMIT_AUTOINIT on macOS (GH-25413)
https://github.com/python/cpython/commit/555cbbe7c10c29ec4358c66c247b8d7e871a5f7b


--

___
Python tracker 

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



[issue43568] Drop support for Mac OS X < 10.3 module linking

2021-05-02 Thread Ned Deily


Ned Deily  added the comment:

Thanks for the PR!  I updated it using the slightly different different changes 
in https://github.com/pypa/distutils/pull/36 and it was just easier to open a 
new PR.

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



[issue43568] Drop support for Mac OS X < 10.3 module linking

2021-05-02 Thread Ned Deily


Ned Deily  added the comment:


New changeset 870317825822c856490a32eee037fec8057690b1 by Ned Deily in branch 
'master':
bpo-43568: Drop support for MACOSX_DEPLOYMENT_TARGET < 10.3 (GH-25827)
https://github.com/python/cpython/commit/870317825822c856490a32eee037fec8057690b1


--

___
Python tracker 

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



[issue43568] Drop support for Mac OS X < 10.3 module linking

2021-05-02 Thread Ned Deily


Change by Ned Deily :


--
pull_requests: +24515
pull_request: https://github.com/python/cpython/pull/25827

___
Python tracker 

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



[issue43977] Implement the latest semantics for PEP 634 for matching collections

2021-05-02 Thread Mark Shannon


Change by Mark Shannon :


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



[issue43977] Implement the latest semantics for PEP 634 for matching collections

2021-05-02 Thread Mark Shannon


Mark Shannon  added the comment:


New changeset 33ec88ac81f23668293d101b83367b086c795e5e by Mark Shannon in 
branch 'master':
bpo-43977: Make sure that tp_flags for pattern matching are inherited 
correctly. (GH-25813)
https://github.com/python/cpython/commit/33ec88ac81f23668293d101b83367b086c795e5e


--

___
Python tracker 

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



[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread Steve Dower


Change by Steve Dower :


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



[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread Steve Dower


Steve Dower  added the comment:


New changeset 10665ac37313560fe87460cf4a5c26677049bf62 by Erlend Egeberg 
Aasland in branch '3.8':
bpo-43434: Move sqlite3.connect audit events to sqlite3.Connection.__init__ 
(GH-25818)
https://github.com/python/cpython/commit/10665ac37313560fe87460cf4a5c26677049bf62


--

___
Python tracker 

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



[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +24514
pull_request: https://github.com/python/cpython/pull/25826

___
Python tracker 

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



[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread Steve Dower


Steve Dower  added the comment:


New changeset ad73d1657ca3591b1dd1d15bb80ce83ca7fc3223 by Erlend Egeberg 
Aasland in branch '3.9':
bpo-43434: Move sqlite3.connect audit event to sqlite3.Connection.__init__ 
(GH-25818)
https://github.com/python/cpython/commit/ad73d1657ca3591b1dd1d15bb80ce83ca7fc3223


--

___
Python tracker 

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



[issue43977] Implement the latest semantics for PEP 634 for matching collections

2021-05-02 Thread Brandt Bucher


Brandt Bucher  added the comment:


New changeset 9387fac100db359cbb6ec2a76f8a5eba8f9d7b65 by Brandt Bucher in 
branch 'master':
bpo-43977: Document the new pattern matching type flags (GH-25734)
https://github.com/python/cpython/commit/9387fac100db359cbb6ec2a76f8a5eba8f9d7b65


--

___
Python tracker 

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



[issue44013] tempfile.TemporaryFile: name of file descriptor cannot be reused in consecutive initialization

2021-05-02 Thread Xiang Zhong


New submission from Xiang Zhong :

The variable of instance cannot be reused in two consecutive codes chunk 
combinations. Please check the difference in attached file, xtempfile.py, 
function: test_3 & test_4.

However, surprisingly, the problem can be fixed in test_5 and test_6.

Which may be helpful for debug: why does the value of "id(fd.name)" keep 
constant all the time inside those combinations?

--
components: Library (Lib)
files: xtempfile.py
messages: 392746
nosy: zhongxiang117
priority: normal
severity: normal
status: open
title: tempfile.TemporaryFile: name of file descriptor cannot be reused in 
consecutive initialization
type: behavior
versions: Python 3.8, Python 3.9
Added file: https://bugs.python.org/file50004/xtempfile.py

___
Python tracker 

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



[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread Erlend Egeberg Aasland


Erlend Egeberg Aasland  added the comment:

Thanks, Steve, that means a lot! Glad to help. Thank you for getting it into 
beta1. Having the new event out there with the wrong object passed to it would 
have been a tiny bit embarrassing :)

--

___
Python tracker 

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



[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


--
pull_requests: +24513
pull_request: https://github.com/python/cpython/pull/25825

___
Python tracker 

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



[issue43490] IDLE freezes at random

2021-05-02 Thread Ned Deily


Ned Deily  added the comment:

Without more information and a way to reproduce the behavior, there is little 
we can do to help here. If the problem persists, please re-open with more 
information, in particular a copy of the Python version information from the 
IDLE shell you are using to run the turtle module, i.e.:
Python 3.9.4 (v3.9.4:1f2e3088f3, Apr  4 2021, 12:19:19)
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin

--
resolution:  -> works for me
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



[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread Steve Dower


Steve Dower  added the comment:


New changeset cbb7b9ed4a6069a2cb2e2f809926c2cfa332a493 by Erlend Egeberg 
Aasland in branch 'master':
bpo-43434: Clean up sqlite3.connect() after GH-25818 (GH-25823)
https://github.com/python/cpython/commit/cbb7b9ed4a6069a2cb2e2f809926c2cfa332a493


--

___
Python tracker 

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



[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread Steve Dower


Steve Dower  added the comment:

Thanks, Erlend! Appreciate how quickly you got onto that, and the quality of 
your work.

--

___
Python tracker 

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



[issue34788] ipaddress module fails on rfc4007 scoped IPv6 addresses

2021-05-02 Thread Oliver Giles


Change by Oliver Giles :


--
nosy: +ohwgiles
nosy_count: 10.0 -> 11.0
pull_requests: +24512
pull_request: https://github.com/python/cpython/pull/25824

___
Python tracker 

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



[issue44012] IPv6Address.exploded does not support interface name (scope id)

2021-05-02 Thread Oliver Giles


Change by Oliver Giles :


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

___
Python tracker 

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



[issue43983] Can't install Python v3.9.4 / 0x80070643 / windows 10 64bit

2021-05-02 Thread Steve Dower


Steve Dower  added the comment:

This is the full error message (and sorry I just saw that you put it on 
pastebin in the first post).

MSI (s) (18:04) [13:13:04:342]: SECREPAIR: Hash Database: 
C:\Windows\Installer\SourceHash{1C17C2CE-B315-4C1C-885A-E37181C7368E}
MSI (s) (18:04) [13:13:04:342]: Note: 1: 2203 2: 
C:\Windows\Installer\SourceHash{1C17C2CE-B315-4C1C-885A-E37181C7368E} 3: 
-2147023504 
MSI (s) (18:04) [13:13:04:342]: SECREPAIR: Error in CreateDatabase for write
MSI (s) (18:04) [13:13:04:342]: SECUREREPAIR: SecureRepair Failed. Error code: 
89b55C5DDD8

This file isn't ours, so there's nothing we can do. You could try running some 
of the builtin troubleshooters, or perhaps the "sfc /scannow" command (in an 
elevated prompt) might help. It's possible that you have an aggressive 
antivirus or admin policy that you may be able to disable. Otherwise, for a 
corrupt install database, I'd guess you're looking at a Windows reset/reinstall.

If you have any success, please let us know what worked. If it turns out to be 
something within our control, we can try and make a change, but I suspect it'll 
just be handy to know for next time someone hits an issue like this.

--

___
Python tracker 

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



[issue44012] IPv6Address.exploded does not support interface name (scope id)

2021-05-02 Thread Oliver Giles


New submission from Oliver Giles :

IPv6 addresses may contain a scope id, for example "fe80::1%eth0".

These are usually required for link-local addresses.

bpo-34788 added support for scoped IPv6 addresses, but missed the
"exploded" method:

>>> import ipaddress
>>> ipaddress.IPv6Address('fe80::1%eth0').exploded
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python3.9/ipaddress.py", line 394, in exploded
return self._explode_shorthand_ip_string()
  File "/usr/lib/python3.9/ipaddress.py", line 1824, in 
_explode_shorthand_ip_string
ip_int = self._ip_int_from_string(ip_str)
  File "/usr/lib/python3.9/ipaddress.py", line 1705, in _ip_int_from_string
raise AddressValueError("%s in %r" % (exc, ip_str)) from None
ipaddress.AddressValueError: Only hex digits permitted in '1%eth0' in 
'fe80::1%eth0'

--
components: Library (Lib)
messages: 392740
nosy: ohwgiles
priority: normal
severity: normal
status: open
title: IPv6Address.exploded does not support interface name (scope id)

___
Python tracker 

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



[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


--
pull_requests: +24510
pull_request: https://github.com/python/cpython/pull/25823

___
Python tracker 

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



[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


--
pull_requests: +24509
stage: backport needed -> patch review
pull_request: https://github.com/python/cpython/pull/25822

___
Python tracker 

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



[issue44011] Borrow asyncio ssl implementation from uvloop

2021-05-02 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 5fb06edbbb769561e245d0fe13002bab50e2ae60 by Andrew Svetlov in 
branch 'master':
bpo-44011: New asyncio ssl implementation (#17975)
https://github.com/python/cpython/commit/5fb06edbbb769561e245d0fe13002bab50e2ae60


--

___
Python tracker 

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



[issue44006] symbol documentation still exists

2021-05-02 Thread Julien Palard


Julien Palard  added the comment:

This is interesting!

Also notice the footer: Last updated on Jul 26, 2020.

I checked on the docsbuild server and found the `symbol.html` file was marked 
as modified today (probably by the build cron) (and it contains the "Last 
updated on Jul 26, 2020" string, yes).

I think the explanation may be that Sphinx does not remove a file from the html 
output when it's rst counterpart is removed (which may be legitimate, Sphinx 
can't guess the rst was there before, so it can't distinguish if it's a human 
generated file that should be kept, or an old file to delete).

There's however no links pointing to it (apart when switching version from 3.9 
to 3.10 using the version switcher).

I'm removing the files manually as is:

docsbuild@docs:/srv/docsbuild/3.10$ rm 
cpython-*/Doc/build/html/library/symbol.html 

I'll let the daily cron update docs.python.org (to ensure it does the job).

--

___
Python tracker 

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



[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread Erlend Egeberg Aasland


Erlend Egeberg Aasland  added the comment:

Thanks! :) I'll fix the backports.

--

___
Python tracker 

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



[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread Steve Dower


Steve Dower  added the comment:

We could get this one in after beta 1 anyway, but sure, it's in.

The backports are going to have to be manual, I suspect...

--
stage: patch review -> backport needed

___
Python tracker 

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



[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread Steve Dower


Steve Dower  added the comment:


New changeset c96cc089f60d2bf7e003c27413c3239ee9de2990 by Erlend Egeberg 
Aasland in branch 'master':
bpo-43434: Move sqlite3.connect audit events to sqlite3.Connection.__init__ 
(GH-25818)
https://github.com/python/cpython/commit/c96cc089f60d2bf7e003c27413c3239ee9de2990


--

___
Python tracker 

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



[issue41100] Support macOS 11 and Apple Silicon Macs

2021-05-02 Thread Ned Deily


Ned Deily  added the comment:

Thank you to everyone who contributed to this major undertaking!  A particular 
thank you to Lawrence for doing much of the initial work and paving the way. 
Now that 3.8 also supports Big Sur and Apple Silicon Macs as of the imminent 
3.8.10 release, it's time to close this issue. If new concerns arise, pleasa 
open or use other issues.

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



[issue44006] symbol documentation still exists

2021-05-02 Thread Ammar Askar


Ammar Askar  added the comment:

Added Julien to the nosy list, looks like we might be retaining old deleted 
docs pages.

--
nosy: +ammar2, mdk

___
Python tracker 

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



[issue43926] Clean metadata (importlib_metadata 4.0)

2021-05-02 Thread Jason R. Coombs


Jason R. Coombs  added the comment:


New changeset 37e0c7850de902179b28f1378fbbc38a5ed3628c by Jason R. Coombs in 
branch 'master':
bpo-43926: Cleaner metadata with PEP 566 JSON support. (GH-25565)
https://github.com/python/cpython/commit/37e0c7850de902179b28f1378fbbc38a5ed3628c


--

___
Python tracker 

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



[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2021-05-02 Thread Jelle Zijlstra


Change by Jelle Zijlstra :


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

___
Python tracker 

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



[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2021-05-02 Thread Jelle Zijlstra


Jelle Zijlstra  added the comment:

It turns out that IO, TextIO, BinaryIO, Match, and Pattern aren't in 
typing.__all__. As Walter points out above, there's no clear reason for this. I 
am submitting a PR to add them to __all__.

--
nosy: +Jelle Zijlstra

___
Python tracker 

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



[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-05-02 Thread Jelle Zijlstra


Jelle Zijlstra  added the comment:

The documentation 
(https://docs.python.org/3.10/library/typing.html#typing.BinaryIO) now mentions 
the typing.io and typing.re namespaces.

I would prefer that they be deprecated and eventually completely removed. They 
don't work with most static type checkers. https://bugs.python.org/issue42001 
makes the same points.

--
nosy: +Jelle Zijlstra
title: Unclear status of the typing.io and typing.re pseudo-modules in docs and 
runtime -> Deprecate the typing.io and typing.re pseudo-modules
versions: +Python 3.10, Python 3.11 -Python 3.6, Python 3.7, 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



[issue42001] Deprecate `typing.io` Wrapper Namespace

2021-05-02 Thread Jelle Zijlstra


Jelle Zijlstra  added the comment:

Closing as a duplicate of https://bugs.python.org/issue38291

--
nosy: +Jelle Zijlstra
resolution:  -> duplicate
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



[issue34568] Types in `typing` not anymore instances of `type` or subclasses of "real" types

2021-05-02 Thread Jelle Zijlstra


Jelle Zijlstra  added the comment:

More recent versions of typing have added some helper functions that could be 
useful here, like typing.get_origin and typing.get_args. I'm going to close 
this issue because I don't think there's anything actionable.

--
nosy: +Jelle Zijlstra
resolution:  -> fixed
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



[issue40397] Refactor typing._GenericAlias

2021-05-02 Thread Jelle Zijlstra


Jelle Zijlstra  added the comment:

Looks like there's nothing left to do here.

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



[issue44011] Borrow asyncio ssl implementation from uvloop

2021-05-02 Thread Andrew Svetlov


Change by Andrew Svetlov :


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

___
Python tracker 

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



[issue44011] Borrow asyncio ssl implementation from uvloop

2021-05-02 Thread Andrew Svetlov


New submission from Andrew Svetlov :

There is a PR created a long time ago.
Finally, I've ported tests for it also.

The documentation doesn't mention new ssh_shutdown_timeout parameter yet.

The latest changes from https://github.com/MagicStack/uvloop/pull/385 can be 
applied separately.

--
components: asyncio
messages: 392726
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Borrow asyncio ssl implementation from uvloop
versions: Python 3.10

___
Python tracker 

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



[issue37923] Combining typing.get_type_hints and inspect.signature

2021-05-02 Thread Jelle Zijlstra


Jelle Zijlstra  added the comment:

As of Python 3.10, thanks to Larry Hastings inspect.signature will have a new 
eval_str= parameter that lets you evaluate string annotations. This isn't quite 
what you're asking for, though, because typing.get_type_hints does more work 
than eval_str does. Still, it's similar enough that I'm inclined to close this 
issue.

--
nosy: +Jelle Zijlstra, larry

___
Python tracker 

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



[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread Erlend Egeberg Aasland


Erlend Egeberg Aasland  added the comment:

Steve, can we get this in before beta1 (bco. the bugfix)?

--

___
Python tracker 

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



[issue32752] no information about accessing typing.Generic type arguments

2021-05-02 Thread Jelle Zijlstra


Jelle Zijlstra  added the comment:

We have typing.get_args() as of 3.8.

--
nosy: +Jelle Zijlstra
resolution:  -> fixed
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



[issue28556] typing.py upgrades

2021-05-02 Thread Jelle Zijlstra


Jelle Zijlstra  added the comment:

Looks like this is no longer relevant.

--
nosy: +Jelle Zijlstra
resolution:  -> out of date
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



[issue41411] Improve and consolidate f-strings docs

2021-05-02 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Eric, do you want to approve and apply these PRs ?

--
assignee: docs@python -> eric.smith
nosy: +rhettinger

___
Python tracker 

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



[issue38250] enum.Flag should be more set-like

2021-05-02 Thread Shantanu


Change by Shantanu :


--
nosy: +hauntsaninja
nosy_count: 6.0 -> 7.0
pull_requests: +24506
pull_request: https://github.com/python/cpython/pull/25820

___
Python tracker 

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



[issue43990] In documentation Section 6.17, Operator precedence, footnotes 5 & 6 are reversed

2021-05-02 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Webb, thanks for the report.
Zackery, thanks for the PR.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10

___
Python tracker 

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



[issue43990] In documentation Section 6.17, Operator precedence, footnotes 5 & 6 are reversed

2021-05-02 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset e60b1e150d708c40fa3c51d012d9bf471f04bc70 by Miss Islington (bot) 
in branch '3.9':
bpo-43990: Fix the footnote ordering in the operator precedence docs (GH-25805) 
(GH-25819)
https://github.com/python/cpython/commit/e60b1e150d708c40fa3c51d012d9bf471f04bc70


--

___
Python tracker 

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



[issue43968] os.path.realpath() unexpected breaking change: resolves subst'd paths to real paths

2021-05-02 Thread sfmc


sfmc  added the comment:

> How about keeping a substitute or mapped drive from the input path
> if resolving the root path on the drive prefixes the overall real
> path? That would be pretty easy to implement.

So if the resolved path is accessible from the original path's drive, then keep 
the drive?
This is what 'realpath' in Ruby does. Good idea, in my opinion.
Letting this be default behavior (controlled by keyword argument) would prevent 
the issues with mounted drives.

> For your own needs, you could add a sitecustomize.py file that
> does "ntpath.realpath = ntpath.abspath". That will change the
> behaviour back to what it was in 3.7.

It works. Thank you very much.

-

Since you provided the working solution for me, the destiny of this bug report 
is at your discretion.

--

___
Python tracker 

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



Re: library not initialized (pygame)

2021-05-02 Thread Michael Torrie
On 5/2/21 1:23 PM, Quentin Bock wrote:
> the error apparently comes from the first instructions variable saying
> library not initialized not sure why, its worked before but not now :/

I don't get that error on my Fedora 32 machine.  The script ultimately
doesn't run because it can't find the icon png file. But the window
briefly appears and it seems like pygame is being initialized properly.


-- 
https://mail.python.org/mailman/listinfo/python-list


[issue43754] Eliminate bindings for partial pattern matches

2021-05-02 Thread Brandt Bucher


Change by Brandt Bucher :


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



[issue43754] Eliminate bindings for partial pattern matches

2021-05-02 Thread Brandt Bucher


Brandt Bucher  added the comment:


New changeset 0ad1e0384c8afc5259a6d03363491d89500a5d03 by Brandt Bucher in 
branch 'master':
bpo-43754: Eliminate bindings for partial pattern matches (GH-25229)
https://github.com/python/cpython/commit/0ad1e0384c8afc5259a6d03363491d89500a5d03


--

___
Python tracker 

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



[issue43983] Can't install Python v3.9.4 / 0x80070643 / windows 10 64bit

2021-05-02 Thread Marwan Essam


Marwan Essam  added the comment:

Hello Shreyan,
unfortunately still not working, I tried all the solutions and none worked. 
still showing the same error.

--

___
Python tracker 

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



library not initialized (pygame)

2021-05-02 Thread Quentin Bock
Code:
#imports and variables for game
import pygame
from pygame import mixer
running = True

#initializes pygame
pygame.init()

#creates the pygame window
screen = pygame.display.set_mode((1200, 800))

#Title and Icon of window
pygame.display.set_caption("3.02 Project")
icon = pygame.image.load('3.02 icon.png')
pygame.display.set_icon(icon)

#setting up font
pygame.font.init()
font = pygame.font.Font('C:\Windows\Fonts\OCRAEXT.ttf', 16)
font_x = 10
font_y = 40
items_picked_up = 0
items_left = 3

def main():
global running, event

#Game Loop
while running:
#sets screen color to black
screen.fill((0, 0, 0))

#checks if the user exits the window
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
pygame.quit()

def display_instruction(x, y):
instructions = font.render("Each level contains 3 items you
must pick up in each room.", True, (255, 255, 255))
instructions_2 = font.render("When you have picked up 3 items,
you will advance to the next room, there are 3.", True, (255, 255, 255))
instructions_3 = font.render("You will be able to change the
direction you are looking in the room, this allows you to find different
objects.", True, (255, 255, 255))
clear = font.render("Click to clear the text.", True, (255,
255, 255))
screen.blit(instructions, (10, 40))
screen.blit(instructions_2, (10, 60))
screen.blit(instructions_3, (10, 80))
screen.blit(clear, (10, 120))

if event.type == pygame.MOUSEBUTTONDOWN:
if event.type == pygame.MOUSEBUTTONUP:
screen.fill(pygame.Color('black'))  # clears the screen text

display_instruction(font_x, font_y)
pygame.display.update()


main()

the error apparently comes from the first instructions variable saying
library not initialized not sure why, its worked before but not now :/
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue41411] Improve and consolidate f-strings docs

2021-05-02 Thread Stéphane Blondon

Stéphane Blondon  added the comment:

It seems ezio-melotti hesitates to continue the modifications in the PR 
https://github.com/python/cpython/pull/21552#pullrequestreview-458400056 

IMO, the PR improves enough the documentation, so it would be nice to merge it, 
even without the other changes.

I'd like to help but I don't know how I could do that.

@ezio.melotti, @amaajemyfren Are you still interested by this issue? How can I 
help you?

--
nosy: +sblondon

___
Python tracker 

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



[issue43990] In documentation Section 6.17, Operator precedence, footnotes 5 & 6 are reversed

2021-05-02 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +24505
pull_request: https://github.com/python/cpython/pull/25819

___
Python tracker 

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



[issue41222] Undocumented behaviour change of POpen.stdout.readine with bufsize=0 or =1

2021-05-02 Thread Yann Dirson


Yann Dirson  added the comment:

With upcoming 3.10 phasing out 2.7 compatibility I have to find a solution to 
this, so I'm back digging here.

Even .read(1) on a subprocess pipe causes an underlying buffered read, so 
working around the problem by a loop of 1-byte reads has to do with os.read(), 
though its usage on file-like object is discouraged.

It looks like one of those would be needed, depending on the expected semantics 
of `POpen`'s `bufsize` parameter:

* use the provided bufsize for the underlying buffering
* provide a dummy pipe fd through fileno(), feeding it data as long as a read() 
call leaves data in the underlying buffer (indeed a simple conditional 1-byte 
read or write to the pipe before returning to caller should provide the correct 
semantics)

--
versions: +Python 3.9

___
Python tracker 

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



[issue43990] In documentation Section 6.17, Operator precedence, footnotes 5 & 6 are reversed

2021-05-02 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
assignee: docs@python -> rhettinger

___
Python tracker 

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



[issue44010] IDLE: highlight soft keywords

2021-05-02 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Soft keywords are a huge nuisance for syntax highlighting as they need special 
case regexes and tests.

Hard keywords are matched against complete words, regardless of whether the 
context is syntactically valid or not.  If 'for' and 'else' were the only 
keywords, the keyword part of the IDLE colorizer regex would be as follows.

>>> kw = r"\b" + colorizer.any("KEYWORD", ['for', 'else']) + r"\b"
>>> kw
'\\b(?Pfor|else)\\b'

Both words in 'for.else' are highlighted as the tokenizer will see them as 
keywords.  The parser will later see the combination as an error.

The tag name in a "(?P...) construct can only be used once in a regex.  
Since the word-boundary context is the same for all hard keywords, the 
alternation can be done within one such context and all (hard) keywords get the 
same match tag (dict key "KEYWORD"), making it easy to give all the same 
highlight.

Soft keywords need different contexts to avoid false positives.  'match' and 
'case' must be the first non-blank on a line and followed by ':'.  '_' must 
follow 'case' and space. I believe each context will have to have its own tag 
name, so multiple keyword tags must be mapped to 'keyword'.  

skw1 = r"^[ \t]*(?Pmatch|case)[ \t]+:"
skw2 = r"case[ \t]+(?P_)\b"

Add skw1 and skw2 to the prog definition, which should use "|".join(...).

In ColorDelegator.LoadTagDefs (which should be renamed), replace

"KEYWORD": idleConf.GetHighlight(theme, "keyword"),

with
"KEYWORD": keydef
"SKEY1": keydef
"SKEY2": keydef

after first defining keydef with

keydef = idleConf.GetHighlight(theme, "keyword")

Some new tests will be needed.

--
stage:  -> test needed

___
Python tracker 

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



[issue43983] Can't install Python v3.9.4 / 0x80070643 / windows 10 64bit

2021-05-02 Thread Shreyan Avigyan


Shreyan Avigyan  added the comment:

See if the your problem is solved by following 
https://docs.microsoft.com/en-us/troubleshoot/windows-server/application-management/msi-installation-error-1603.

--
nosy: +shreyanavigyan

___
Python tracker 

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



[issue43990] In documentation Section 6.17, Operator precedence, footnotes 5 & 6 are reversed

2021-05-02 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset 7d2b83e9f092a2ea1f715fe028f7c48324bee756 by Zackery Spytz in 
branch 'master':
bpo-43990: Fix the footnote ordering in the operator precedence docs (GH-25805)
https://github.com/python/cpython/commit/7d2b83e9f092a2ea1f715fe028f7c48324bee756


--
nosy: +rhettinger

___
Python tracker 

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



[issue43983] Can't install Python v3.9.4 / 0x80070643 / windows 10 64bit

2021-05-02 Thread Marwan Essam


Marwan Essam  added the comment:

Done, i uploaded a rar with all the log files in %TEMP%

--
Added file: https://bugs.python.org/file50003/logs.rar

___
Python tracker 

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



[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread Erlend Egeberg Aasland


Erlend Egeberg Aasland  added the comment:

The PR accidentally fixes a bug in GH-25246 (bpo-43762):
The object passed to PySys_Audit() is now the connection object, not the module 
object.

--

___
Python tracker 

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



[issue44010] IDLE: highlight soft keywords

2021-05-02 Thread E. Paine


E. Paine  added the comment:

Thanks for linking to the Lexical Analysis docs. Not quite sure how I missed 
this given it is directly below the normal keywords section. Given the 
distinction described there, it may instead be best for IDLE to highlight this 
as its own category (i.e. not grouping it with the standard keywords).

--
title: IDLE: highlight new `match` / `case` syntax -> IDLE: highlight soft 
keywords

___
Python tracker 

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



[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


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

___
Python tracker 

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



[issue44010] IDLE: highlight new `match` / `case` syntax

2021-05-02 Thread Ken Jin


Ken Jin  added the comment:

Hi, I'm no IDLE expert, but I think moving the new soft keywords into kwlist 
seems wrong:

Soft keywords were added in Python 3.9 when the PEG parser became the default. 
The keyword list was also updated accordingly 
https://docs.python.org/3/library/keyword.html#keyword.softkwlist.

This link provides an explanation of how soft keywords differ from normal 
keywords:  
https://docs.python.org/3.10/reference/lexical_analysis.html#soft-keywords

Thanks

--
nosy: +kj

___
Python tracker 

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



[issue43997] dataclasses documentation needs version added for match_args, kw_only, and slots

2021-05-02 Thread Eric V. Smith


Change by Eric V. Smith :


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

___
Python tracker 

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



[issue43997] dataclasses documentation needs version added for match_args, kw_only, and slots

2021-05-02 Thread miss-islington


New submission from miss-islington :


New changeset a5eabc9a39c617475adb7eaee62de7566a995442 by Shreyan Avigyan in 
branch 'master':
bpo-43997: Add versionadded directives for to match_args, kw_only, and slots in 
dataclasses.dataclasses documentation (GH-25803)
https://github.com/python/cpython/commit/a5eabc9a39c617475adb7eaee62de7566a995442


--
nosy: +miss-islington

___
Python tracker 

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



[issue44010] IDLE: highlight new `match` / `case` syntax

2021-05-02 Thread E. Paine


New submission from E. Paine :

As-per PEP 634, structural pattern matching is now in Python. This introduces 
the `match` and `case` keywords. IDLE does not highlight these.

The problem is that these are listed in `keyword.softkwlist` rather than 
`keyword.kwlist` (which is what IDLE uses). This confuses me, as this is not a 
__future__ feature and there is no discussion of it becoming one in #42128. 
There is also no discussion (that I could find) about which list it should be 
put in. The addition to softkwlist was done in PR-22917.

Do we change IDLE to use softkwlist, or move those keywords into kwlist?

--
assignee: terry.reedy
components: IDLE
messages: 392705
nosy: epaine, taleinat, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE: highlight new `match` / `case` syntax
type: behavior
versions: Python 3.10, Python 3.11

___
Python tracker 

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



[issue37322] test_ssl: test_pha_required_nocert() emits a ResourceWarning

2021-05-02 Thread Christian Heimes


Christian Heimes  added the comment:

I have cherry-picked e047239eafefe8b19725efffe7756443495cf78b into both 
backports and rebased them on top of upstream/3.8 and upstream/3.9.

--

___
Python tracker 

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



[issue43983] Can't install Python v3.9.4 / 0x80070643 / windows 10 64bit

2021-05-02 Thread Steve Dower


Steve Dower  added the comment:

Hi Marwan

If you look in your %TEMP% directory for the log file you attached, you'll find 
some more similar log files. Could you attach those as well? One of them will 
have the actual issue in it.

--

___
Python tracker 

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



[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread Steve Dower


Steve Dower  added the comment:

Yes, let's move it into the init function.

--

___
Python tracker 

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



[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-05-02 Thread Christian Heimes


Christian Heimes  added the comment:


New changeset d8389e3e50864447a74605d7ede3d14246bc633a by Christian Heimes in 
branch 'master':
bpo-38820: Add ssl, hashlib, and hmac changes to whatsnew 3.10 (GH-25817)
https://github.com/python/cpython/commit/d8389e3e50864447a74605d7ede3d14246bc633a


--

___
Python tracker 

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



[issue43968] os.path.realpath() unexpected breaking change: resolves subst'd paths to real paths

2021-05-02 Thread Steve Dower


Steve Dower  added the comment:

> The problem is with Python debugger and third-party tools - we can't make 
> changes there.

You can report the issue to them, though. They may not realise that they're 
using realpath() in scenarios when their users do not want links to be resolved.

For your own needs, you could add a sitecustomize.py file that does 
"ntpath.realpath = ntpath.abspath". That will change the behaviour back to what 
it was in 3.7.

> Is this acceptable for Python 3.8.10?

No, it's not a security fix.

--

___
Python tracker 

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



[issue43794] OpenSSL 3.0.0: Handle UNEXPECTED_EOF_WHILE_READING / wrap SSL_OP_IGNORE_UNEXPECTED_EOF

2021-05-02 Thread Christian Heimes


Christian Heimes  added the comment:

I have updated whatsnew in GH-25817.

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



  1   2   >