[issue42058] Process not running with args

2020-10-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

bpo is the issue tracker for patching the python cpython repository.  We 
support running python from system command line terminals and icons that we 
install, as specified in the CPython docs.  Ask questions about running python 
otherwise on other forums.

--
nosy: +terry.reedy
resolution:  -> third party
stage:  -> resolved
status: open -> closed

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



[issue42122] macOS complains about how fonts are accessed

2020-10-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

python.org 3.10 mac is still using 8.6.8.  It is on IDLE/Python => About

--

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



[issue2190] MozillaCookieJar ignores HttpOnly cookies

2020-10-22 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies
Describes the purpose of the HttpOnly attribute used in PR.

--

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



[issue42124] FAIL test_asyncio test_sendfile_close_peer_in_the_middle_of_receiving

2020-10-22 Thread Terry J. Reedy


New submission from Terry J. Reedy :

==
FAIL: test_sendfile_close_peer_in_the_middle_of_receiving 
(test.test_asyncio.test_sendfile.ProactorEventLoopTests)
--
Traceback (most recent call last):
  File "D:\a\1\s\lib\test\test_asyncio\test_sendfile.py", line 458, in 
test_sendfile_close_peer_in_the_middle_of_receiving
self.run_loop(
AssertionError: ConnectionError not raised

--
components: Tests, asyncio
messages: 379397
nosy: asvetlov, terry.reedy, yselivanov
priority: normal
severity: normal
stage: needs patch
status: open
title: FAIL test_asyncio test_sendfile_close_peer_in_the_middle_of_receiving
type: behavior
versions: Python 3.10

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



[issue2190] MozillaCookieJar ignores HttpOnly cookies

2020-10-22 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
assignee: loewis -> 
status: closed -> open
versions:  -Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 
3.7, Python 3.8, Python 3.9

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



[issue42122] macOS complains about how fonts are accessed

2020-10-22 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

On my Airbook, 'python310' was not found; 'python3.10' worked.

--

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



[issue42122] macOS complains about how fonts are accessed

2020-10-22 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I am sure that this is yet another macOS Catalina+ tcl/tk problem.  3.10 is 
fine on Mohave.  Those complaints must come from macOS in response to 'Client' 
tk requests.  IDLE and tkinter do not use those names.  If you want to try to 
see what tkinter function triggers those messages, try the following in the 
Python REPL.

import tkinter as tk
from tkinter import font
root = tk.Tk()
fnames = font.names(root)
f1 = font.Font(root=root, name=fnames[0], exists=True)
f2 = font.Font(root=root, name='TkFixedFont', exists=True)

--
assignee: terry.reedy -> 
components: +Tkinter, macOS -IDLE
nosy: +ned.deily, ronaldoussoren
title: IDLE complains about how fonts are accessed -> macOS complains about how 
fonts are accessed

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



[issue41755] Docs: Please remove `from distutils.core import setup`

2020-10-22 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

But notice that even agreeing removes 'pending', making it pretty useless.

--
stage:  -> resolved
status: open -> closed

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



[issue41755] Docs: Please remove `from distutils.core import setup`

2020-10-22 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

In that case, I agree.

--
status: pending -> open

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



[issue3760] PEP 3121 --- PyType_Copy is missing

2020-10-22 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Zach Ware agreed on a coredev sprint discussion.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

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



[issue4573] zsh-style subpattern matching for fnmatch/glob

2020-10-22 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.10 -Python 2.7, Python 3.0

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



[issue5906] Risk of confusion in multiprocessing module - daemonic processes

2020-10-22 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Is the paragraph "Usually, daemon processes ..." in Pascal's initial post 
supposed to be a quote from 
https://docs.python.org/3/library/multiprocessing.html?  'daemon p' is nowhere 
in the corrent doc and I find nothing like this paragraph.  Is this issue still 
relevant?

--
assignee: jnoller -> 
components: +Documentation
nosy: +terry.reedy
versions: +Python 3.10 -Python 2.6, Python 2.7, Python 3.0, Python 3.1

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



[issue4573] zsh-style subpattern matching for fnmatch/glob

2020-10-22 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Raymond, is this zsh addition still relevant or out of date?

--
nosy: +terry.reedy

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



[issue3760] PEP 3121 --- PyType_Copy is missing

2020-10-22 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

12 years later there still is no PyType_Copy, at least not by that name, 
according to the doc index. So it is either not urgently needed or the need has 
been covered by other additions. I think that this should be closed as out of 
date and any new additions should be done in the light of the current situation.

--
nosy: +terry.reedy

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



[issue5043] get_msvcr() returns None rather than []

2020-10-22 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

The claimed bug is that when msc_pos is -1 in the code as posted, 'return []' 
should be executed, but None is returned instead.  When I add 'msc_pos = -1 
before the if statement, and call the function, after adding the needed sys 
import, [] is indeed returned.

The final elif return has two bugs, '%i' and 'Ver':
raise ValueError("Unknown MS Compiler version %i " % msc_Ver)  # Posted
raise ValueError("Unknown MS Compiler version %s " % msc_ver)  # Fixed

With this fix and without -1 forced, the ValueError is raised on all current 
versions, so this code is out of date in any case.

--
nosy: +terry.reedy
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

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



[issue33987] IDLE: use ttk.Frame for ttk widgets

2020-10-22 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 25687bbe0da160ebdd3cd422a01d677ce467e72e by Miss Skeleton (bot) 
in branch '3.9':
bpo-33987: IDLE: Use ttk Frame on doc window and statusbar (GH-11433) (GH-22899)
https://github.com/python/cpython/commit/25687bbe0da160ebdd3cd422a01d677ce467e72e


--

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



[issue33987] IDLE: use ttk.Frame for ttk widgets

2020-10-22 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 06c9e01c651c35c2e058eca0f7073dd405578f78 by Miss Skeleton (bot) 
in branch '3.8':
bpo-33987: IDLE: Use ttk Frame on doc window and statusbar (GH-11433) (GH-22900)
https://github.com/python/cpython/commit/06c9e01c651c35c2e058eca0f7073dd405578f78


--

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



[issue33987] IDLE: use ttk.Frame for ttk widgets

2020-10-22 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset facb522d44fceaf15de6bc95de1cd680c4621c2a by Cheryl Sabella in 
branch 'master':
bpo-33987: IDLE: Use ttk Frame on doc window and statusbar (GH-11433)
https://github.com/python/cpython/commit/facb522d44fceaf15de6bc95de1cd680c4621c2a


--

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



[issue33987] IDLE: use ttk.Frame for ttk widgets

2020-10-22 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I closed this prematurely. Cheryl's PR 11433 converts frames for help and 
statusbar.  My patch also omitted searchbase, perhaps because this I wanted to 
refactor at the same time.  In any case, the macOS appearance bug that 
motivated Mark's post remains, and a patch will have to make sure that the 
derived dialogs add frames inside the new master frame instead of the toplevel.

The message I deleted meant to say
#35598 converted config_key to ttk, including a ttk frame inside toplevel.

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

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



[issue33987] IDLE: use ttk.Frame for ttk widgets

2020-10-22 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
Removed message: https://bugs.python.org/msg332835

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



[issue41626] port shebang of tools from python2 to python3

2020-10-22 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Thoughts I wrote on the PR that belong here.  (Thanks for the reminder,  Éric.):
*The use of #! in both stdlib and tools seems rather inconsistent.

* Stdlib modules are best run with  -m mod so as to run the code with 
the exact python binary they are meant for. So maybe the marker should be be 
removed at least from /Lib/*.  But...

-- I was not really aware of idlelib.pyshell.  Running with an explicit  binary 
seems particularly important for IDLE.  About once a month on SO, some beginner 
posts about not being able to import a module they downloaded when running IDLE 
(maybe only sometimes).  Nearly always, they have 2 pythons, such as from 
Anaconda and python.org.

I may want or need to deprecate using pyshell as entry instead of 
idle.py/idlew.py/idle.bat as I want to move startup code from pyshell to either 
idle.py or a separate startup only file.  I am not sure how to get from here to 
there, partly because I don't really know what 'here' is in practice. 

* With 2.7 put to bed, the line is hardly needed to select between latest 2.x 
and latest 3.x.

* The response of py.exe to shebang lines needs to be detailed and considered.  
I believe it only knows about python.org installs, so it will only start the 
latest python.org install.  I don't know what it does if 32- and 64- bit 
versions are both present.  I also don't know what it runs if the 'default' 
installed version is not the latest installed version.  Does py.exe know what 
the default is, or does that just affect what 'python' runs?

--
nosy: +terry.reedy

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



[issue41910] Document that object.__eq__ implements `a is b`

2020-10-21 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Brett, I presume you want this closed.

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

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



[issue41910] Document that object.__eq__ implements `a is b`

2020-10-21 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset b2b3803081f07600710273b4f902b5be6e5596e7 by Miss Skeleton (bot) 
in branch '3.8':
bpo-41910: specify the default implementations of object.__eq__ and 
object.__ne__ (GH-22874) (#22877)
https://github.com/python/cpython/commit/b2b3803081f07600710273b4f902b5be6e5596e7


--

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



[issue41910] Document that object.__eq__ implements `a is b`

2020-10-21 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset c3538b83816663d7b767391a375179a0ce923990 by Miss Skeleton (bot) 
in branch '3.9':
bpo-41910: specify the default implementations of object.__eq__ and 
object.__ne__ (GH-22874) (#22876)
https://github.com/python/cpython/commit/c3538b83816663d7b767391a375179a0ce923990


--

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



[issue41736] test_site: test_s_option() failed on AMD64 Windows8.1 Refleaks 3.7

2020-10-20 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

On Windows 10 and master, I ran 12 copies of test_site in parallel 10 times.  
Then I ran -R 3:100 3 times.  All pass.  

Unless refleaks are considered security holes, perhaps this should be closed 
until it re-occurs in a normally maintained branch.

--
nosy: +terry.reedy

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



[issue42097] Python 3.7.9 logging/threading/fork hang

2020-10-20 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Have you found this in 3.8+?  Since last June, 3.7 only gets security fixes, 
and this might have been fixed in later versions.

--
nosy: +terry.reedy

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



[issue42085] Add dedicated slot for sending values

2020-10-20 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
nosy: +asvetlov, yselivanov

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



[issue41859] Uncaught ValueError

2020-10-20 Thread Terry J. Reedy


Change by Terry J. Reedy :


Removed file: https://bugs.python.org/file49480/debian-desktop.png

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



[issue41859] Uncaught ValueError

2020-10-20 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
nosy:  -patanjalisutra666

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



[issue41859] Uncaught ValueError

2020-10-20 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
Removed message: https://bugs.python.org/msg377737

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



[issue42010] Generic types accept indexing/subscripting, causing confusion

2020-10-20 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I think kj's patch is ready to merge.  Guido, do you want to take a look?

--

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



[issue41988] No hyphen in broken up word in documentation

2020-10-19 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Perhaps send the screenshot to the Brave devs, along with the doc url.

--

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



[issue37945] [Windows] locale.getdefaultlocale() issues on Windows: test_locale.test_getsetlocale_issue1813()

2020-10-19 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

test__locale (#38324) also passed CI and buildbots while failing locally.

--
nosy: +terry.reedy
stage:  -> needs patch
versions: +Python 3.10

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



[issue38324] [Windows] test__locale fails on Windows local machines

2020-10-19 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

This issue *is* a duplicate of #37945 with respect to test_locale.  So I remove 
that from the title.  It is not a duplicate with respect to test__locale, which 
fails for a very different reason.  The other failures I mentioned are noise 
here (and now fixed).  So when PR-20529 is merged (it fixes test__locale for me 
also), we can close this.

--
title: [Windows] test_locale and test__locale failures on Windows -> [Windows] 
test__locale fails on Windows local machines

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



[issue26376] Tkinter root window won't close if packed.

2020-10-19 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I just reproduced this too with Airbook Mohave.  When IDLE's Shell is running, 
it is linked to an execution subprocess that is initially invisible, unless and 
until the user creates a visible window.  Tk() does this.  On Windows, a tk 
Window icon appears when I mouse over the IDLE taskbar icon.  On Mac, a new 
python rocket icon, also used for Python Launcher, appears.  And it becomes the 
active app for the Apple menu bar, making it more tied to the OS than on 
Windows.  In either case, I can switch between IDLE and tk windows by clicking 
icons or sub-icons.

When I click the red close button on the tk window, it disappears, but the 
rocket app icon is still there.  Clicking it maybe restores the window, which 
was hidden, not closed.  Or I may have to right click the rocket and then 'tk'. 
 Right-clicking the rocket and then 'quit' fails to close.  But trying to 
modify the tk window may fail with 'app destroyed' even though it can be made 
visible.  Closing the parent IDLE closes the Window.

--

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



[issue39107] Upgrade Windows tcl/tk to 8.6.10

2020-10-19 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

We should then upgrade on Windows again.  PR would have nearly the same changes.

--

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



[issue39107] Upgrade Windows tcl/tk to 8.6.10

2020-10-19 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
components:  -macOS
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
title: Upgrade tcl/tk to 8.6.10 (Windows and maxOS) -> Upgrade Windows tcl/tk 
to 8.6.10

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



[issue39107] Upgrade tcl/tk to 8.6.10 (Windows and maxOS)

2020-10-19 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

The Windows part of this is done.  Existing tests also pass on my machine.

Ned, do you want this left open for macOS? or close?

--
stage: patch review -> 

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



[issue42082] Eliminate test_peg_generator redundant output

2020-10-19 Thread Terry J. Reedy


New submission from Terry J. Reedy :

When running tests locally (Win10), test_peg_generator outputs the following 20 
times.

parse.c
pegen.c
string_parser.c
tokenizer.c
Python-ast.c
asdl.c
peg_extension.c
   Creating library 
C:\Users\Terry\AppData\Local\Temp\tmpcr6_pvyl\Debug\Users\Terry\AppData\Local\Temp\tmpcr6_pvyl\parse_d.cp310-win32.lib
 and object 
C:\Users\Terry\AppData\Local\Temp\tmpcr6_pvyl\Debug\Users\Terry\AppData\Local\Temp\tmpcr6_pvyl\parse_d.cp310-win32.exp
LINK : /LTCG specified but no code generation required; remove /LTCG from the 
link command line to improve linker performance

Can this be fixed?

--
components: Interpreter Core, Tests
messages: 378970
nosy: pablogsal, terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Eliminate test_peg_generator redundant output
type: behavior
versions: Python 3.10

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



[issue38041] IDLE Shell: Refine restart line

2020-10-16 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Yes, the further changes I am thinking about should be a new issue.

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

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



[issue42010] Generic types accept indexing/subscripting, causing confusion

2020-10-16 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Subscription of list and dict (only with '') and ??? is at least puzzling.  
Removal of a new feature after release is a bad idea.  But this new feature, 
expansion of subscription, needs to documented in
https://docs.python.org/3/reference/expressions.html#subscriptions
as legal code.

The current first line

 "A subscription selects an item of a sequence (string, tuple or list) or 
mapping (dictionary) object:"

is no longer always true.  This suggested replacement is:

 "Subscription of a sequence (string, tuple or list) or mapping (dictionary) 
object selects an item from the collection."

Then at the end, add something like

 "Subscription of certain type objects creates a Generic Alias.

where 'Generic Alias links to where such are documented.

--
assignee:  -> docs@python
components: +Documentation -Interpreter Core
nosy: +docs@python, terry.reedy
stage: patch review -> needs patch

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



[issue41989] htmlparser unclosed script tag causes data loss

2020-10-16 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Waylan, 3.7 and before only get security fixes.

To me, this might be considered an enhancement rather than bug fix, but I will 
leave that to Ezio.

--
nosy: +terry.reedy
versions:  -Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

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



[issue41988] No hyphen in broken up word in documentation

2020-10-16 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Raymond, what viewer are you using when you see unhyphenated word breaks?

--

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



[issue41988] No hyphen in broken up word in documentation

2020-10-16 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I am closing because word breakage when wrapping and justifying is an 
OS-browswer issue.  I see the image as having two hyphenation bugs, but whoever 
wrote that viewer might disagree.

The displayed paragraph is the first bullet point in the doc.  With Firefox on 
Windows 10, the default wrapping (narrower than my full screen width) is after 
'paramont' and 'learn at'.

  Decimal “is based on a floating-point model which was designed with people in 
mind, and necessarily has a paramount
  guiding principle – computers must provide an arithmetic that works in the 
same way as the arithmetic that people learn at
  school.” – excerpt from the decimal arithmetic specification.

If I enlarge the text with Cntl-Mousewheel, even up to to the max 300%, Firefox 
rewraps but never breaks words; it only justifies with spaces.

With MS Edge and Google Chrome, the default breaks are after 'has a' and 'as 
the' and the max enlargements are 400/500%, but the behavior is otherwise the 
same -- rewrapping and justification with spaces, no word breaks.

  Decimal “is based on a floating-point model which was designed with people in 
mind, and necessarily has a
  paramount guiding principle – computers must provide an arithmetic that works 
in the same way as the
  arithmetic that people learn at school.” – excerpt from the decimal 
arithmetic specification.

Safari on my Macbook Mohave, does break words, and has nec-essarily, 
arith-metic, and ap-plication (later in the text), which are correct.

In the image, rewrapping is done by breaking words according to some local 
algorithm.  Short pieces as in ne-cessarily and ap-plications are hyphenated 
but the 'big' pieces of arith metic are not.  This looks like a browser bug, 
but might be a local standard.  According to both Google and my paper 
dictionary, the first hyphenation should be nec-essarily, as in Safari, which 
is an exception to the general rule of 'before a single consonant', as in 
spe-ci-fi-ca-tion.  But maybe some group disagrees with this exception.

--
nosy: +mdk, terry.reedy
resolution:  -> third party
stage:  -> resolved
status: open -> closed

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



[issue42040] Change IDLE 'more information' splash line, change doc name

2020-10-14 Thread Terry J. Reedy


New submission from Terry J. Reedy :

IDLE currently follows the version and system info line with 
 Type "help", "copyright", "credits" or "license()" for more information.  The 
last 3 are nearly useless, and duplicate the availability of the documents in a 
better format from About IDLE, where such things are usually found.  In any 
case, beginners are not likely to care, and most people will look at most once.

Entering 'help' prints the instruction to enter 'help()' for interaction or 
'help(object)' for info on object.

Proposed replacement:
  Type "help" (no quotes) or click Help above for more information.

On macOS, one must click IDLE for About IDLE, but macOS users should know and 
expect it there (which is why it is moved there on macOS).

Also, the menu entry "IDLE Help" should be "IDLE Doc".  I believe the current 
entry dates to when "IDLE Help" was a separate text from the IDLE doc rather 
than a copy thereof.

PR later.

--
assignee: terry.reedy
components: IDLE
messages: 378663
nosy: taleinat, terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Change IDLE 'more information' splash line, change doc name
type: enhancement
versions: Python 3.10, Python 3.8, Python 3.9

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



[issue27351] Update ConfigParser doc: accepts iterables, not just lists

2020-10-13 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
title: Unexpected ConfigParser.read() behavior when passed fileobject -> Update 
ConfigParser doc: accepts iterables, not just lists
versions:  -Python 2.7

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



[issue30934] Document how to run coverage for repository idlelib files.

2020-10-13 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Tal, this is an existing issue about documenting how to run IDLE coverage.  It 
was left open to add something about the *nix equivalent of my Windows 
instructions.  I would like to finish this, with updates elsewhere in the text.

I'm dubious about Louie's patch (PR 2733) for multiple reasons: it starts with 
venv's, which I consider a separate issue; it gives the commands that might go 
in a script, but does not comprise a script itself; I cannot tell if it uses an 
IDLE specific .coverage.  Louie ceased IDLE involvement in Sept 2017, so I am 
closing his patch in favor of whatever you might contribute.

The .coveragerc copied into the README is missing some additions, and I plan to 
add some annotations to the original.  Do you think it better to have a copy in 
README.txt, or a separate .coveragerc file in idle_test?  Same question for 
cover.bat.

"5. Test Coverage" begins with "Install the coverage package into your Python 
3.6 site-packages directory."  That should be '3.x' or 'the most recent 
installed Python possible', so it is most likely to be compatible with current 
master branch python.  I should also mention that we only need coverage on 
master, and have other revisions in mind.

Cheryl mentioned above instructions for coverage of all IDLE tests.  I have the 
command, commented out, in my original cover.bat.  After retesting, I could add 
it, commented out, to the copy.

--
nosy: +taleinat -wohlganger
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.6, Python 3.7

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



[issue34976] IDLE: Replace the search dialog with a search bar

2020-10-12 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Notepad++ Find by marks all matches in the current doc as 'found', with a 
distinct (darker) highlight for the 'selected' found.  Double clicking selects 
a word, as in IDLE, *and* finds all matches.  One can then either 
cut/copy/replace the selection, as in IDLE, *or* look at other matches in the 
file.

Notepad++ also offers options to (in addition) 'Find all' in current doc or all 
opened docs.  This lists the hits in a separate box, as with IDLE's Find all.  
Double clicking on a hit line goes to that line.  (Easier than RtClick/goto.)

I suspect I would find live highlighting annoying.  Why would having all 'a's 
on a page light up when I type 'a' be a plus?  But I will try your patch when 
we are ready to focus on search/replace/find.  

I have mentioned elsewhere that I might go for a minimal search box on the 
status line separate from the dialog(s).

--

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



[issue34976] IDLE: Replace the search dialog with a search bar

2020-10-12 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Notepad++, which I use, uses a tabbed dialog for search and replace, which I 
think I would like to somewhat imitate.  Or just have one search and replace 
dialog.  I need to experiment.  I don't like the Firefox toolbar and consider 
it buggy.  In any case, it and browsers in general do not do replace.  Maybe 
yours is better.

--

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



[issue35155] Clarify Protocol Handlers in urllib.request Docs

2020-10-12 Thread Terry J. Reedy


Change by Terry J. Reedy :


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

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



[issue38792] IDLE calltips may not properly close on KeyboardInterrupt

2020-10-10 Thread Terry J. Reedy


Change by Terry J. Reedy :


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

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



[issue38077] IDLE leaking ARGV into globals() namespace

2020-10-10 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Since I opened the followup issue, yes.  Thanks for noticing.

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

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



[issue41968] 3.9 IDLE documentation.

2020-10-08 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Velson, when you respond to a post by email, rather than on the web page, 
please delete the post you are responding to, except for maybe a quoted line or 
two.  When your response is added to the web page below previous posts, posts 
quoted in full constitute noise that makes the stream of posts harder to read.

I forgot to mention above that I added a link to this issue on #31329 so that 
when I work on that, I will be reminded to read comments here also.
They will be helpful.

IDLE is intended for learning to write Python programs and to develop programs 
that can be run directly with Python, without IDLE.  It is not intended for 
production runs (though there are a few cases where that might be sensible).  
So, to run with IDLE, edit with IDLE and hit F5.

I installed 3.9.0 with the python.org Windows installer and clicked "[X] make 
this default" (or however that is worded, top of second page, I believe).  
Double-clicking file.py or right-clicking and clicking Open runs the file with 
C:/Windows/py.exe, as I said in my first response.  py.exe then runs the file 
with the default python.exe.  Right-click also shows Edit with IDLE and a 
choice of versions.  To get this on your system, you probably best delete all 
pythons on your system and start over with the python.org installer.  For any 
more help on installing and using Python, please post to the python-list mail 
list.

--

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



[issue31329] Add idlelib module entry to doc

2020-10-07 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I closed #41968 as a duplicate of this.

--
nosy:  -louielu

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



[issue41968] 3.9 IDLE documentation.

2020-10-07 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I agree that the doc needs more, but I am closing this as a duplicate of 
#31329, which is specifically doc about starting IDLE.  You can still answer 
Paine's questions here if you want.

File association: IDLE is not Python.  It is one of many Python-oriented 
editors and IDEs.  .py files are and by default should be associated for 
running with something that runs the file with python.exe.  On Windows, this is 
done via C:/Windows/py.exe.  The default version for double clicking is 
determined by a checkmark in the installer.

The Windows installer does associate .py files with IDLE for editing: rt click, 
edit with IDLE 

idle.exe is not needed for starting idle.

I don't know what you mean by 'source format'.  IDLE is written in Python.  The 
directory structure is mostly implementation detail not relevant to using IDLE. 
 File are described in idlelib/README.txt.  This might be mentioned in the doc.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Add idlelib module entry to doc
type:  -> enhancement
versions: +Python 3.10 -Python 3.9

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



[issue41957] IDLE does not Transform Tabs into Spaces in Interactive Mode

2020-10-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

#37903 is the first stage of a serious refactor

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed

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



[issue41952] sys.version has double space between month and date

2020-10-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

>>> sys.version
'3.10.0a1 (tags/v3.10.0a1:8e9afaf, Oct  5 2020, 20:32:52) [MSC v.1927 64 bit 
(AMD64)]'

I am guessing that the template is leaving spaces for 2 digits.  Intentional?  
I see the same thing in local repository debug builds.

Pablo is the release manager for 3.10/11.

--
assignee: terry.reedy -> 
nosy: +lukasz.langa, pablogsal
type: enhancement -> behavior
versions: +Python 3.9

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



[issue41774] Add programming FAQ entry: remove multiple entries from list

2020-10-05 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
title: While removing element from list using for and remove(), which has same 
items output is not right -> Add programming FAQ entry: remove multiple entries 
from list
type: behavior -> enhancement
versions: +Python 3.8, Python 3.9

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



[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-10-05 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 060937da988347a887a5f165b023d972fcb97802 by Terry Jan Reedy in 
branch 'master':
bpo-41774: Tweak new programming FAQ entry (GH-22562)
https://github.com/python/cpython/commit/060937da988347a887a5f165b023d972fcb97802


--

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



[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-10-05 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +21557
pull_request: https://github.com/python/cpython/pull/22562

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



[issue41912] Long generator chain causes segmentation fault

2020-10-02 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Another "We are not responsible, proceed at your own risk" operation is 
importing ctypes, which allows one to overwrite bytes in the running python.

--
nosy: +terry.reedy
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

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



[issue41911] Language reference incorrectly says comparison expressions return boolean values

2020-10-02 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

For rich comparisons, a proper explanation is given in the rich comparison 
entry in the datamodel section ( #41910) 

"A rich comparison method may return the singleton NotImplemented if it does 
not implement the operation for a given pair of arguments. By convention, False 
and True are returned for a successful comparison. However, these methods can 
return any value, so if the comparison operator is used in a Boolean context 
(e.g., in the condition of an if statement), Python will call bool() on the 
value to determine if the result is true or false."

bool(x) calls x.__bool__ and requires that the latter return False or True.

As for the other two comparisons, x is y always returns False or True for a 
proper implementation because int == int always does.  If y.__contains__(x) 
does not raise, x in y returns bool(y.__contains__(x)), clamping aberrant 
implementations of __contains__.

A replacement text might be 

"Comparisons normally yield boolean values: True or False.  But rich 
comparisons not in a Boolean context may yield anything."

Possibly link 'rich comparisons' to the datamodel section.

--
nosy: +terry.reedy

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



[issue41910] Document that object.__eq__ implements `a is b`

2020-10-02 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

The word 'object' in this section is a bit confusing because it refers to any 
Python object, not to base class 'object' or an instance thereof.  I suspect 
that this usage predates the introduction of the latter in 2.2.

This interpretation is required for sentences like "By default, __ne__() 
delegates to __eq__() and inverts the result unless it is NotImplemented." and 
"If a class does not define an __eq__() method ..." (in the __hash__ entry) to 
make sense.  I think that the meaning of 'object' should be stipulated at the 
top of the section and mention the existence of base class 'object', and maybe 
list which of the following methods it has, and that they are inherited by 
subclasses.

The base class __eq__ implementation is implied in this paragraph in the 
__hash__ entry.

"User-defined classes have __eq__() and __hash__() methods by default; with 
them, all objects compare unequal (except with themselves) and x.__hash__() 
returns an appropriate value such that x == y implies both that x is y and 
hash(x) == hash(y)."

I think it worthwhile explaining that user classes get these defaults by 
inheriting them (and others) from 'object', and that the implication follows 
from inheriting a particular base class implementation of __eq__.  To put it 
another way, I believe the quoted paragraph makes the  definition a Python 
requirement rather than just a CPython implementation detail.

--
nosy: +terry.reedy

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



[issue41887] ast.literal_eval does not accept strings with leading whitespaces

2020-10-02 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

The doc for literal_eval says "evaluate ... a string containing a Python 
literal or container display."  To me, ' 1' qualifies, just as it does as an 
expression for eval().

The exception comes from parsing raising IndentationError with leading 
whitespace even when the mode is 'eval' rather than 'exec'.  This surprised me. 
Eval() gets strips the beginning of the string before it is parsed.  If parsing 
remains as is, I agree that doing the same for literal_eval strings.  But why 
should not parsing remove indents for 'eval' mode?

--
nosy: +terry.reedy
versions: +Python 3.10 -Python 3.6, Python 3.7

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



[issue41878] python3 fails to use custom mapping object as symbols in eval()

2020-10-02 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Robert, this tracker is for patching CPython, not for debugging user code.  If, 
as it appears, you are not suggesting the former, please close this.  For the 
latter, python-list and stackoverflow.com are appropriate forums.

--
nosy: +terry.reedy

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



[issue41877] Check against misspellings of assert etc. in mock

2020-10-02 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Vedran, you explained why many use pytest instead of unittest. But we have the 
latter and a stability policy.

I am not familiar with the existing mock code, but one already invented 
solution for misspelling tolerance without enumeration is the soundex 
algorithm.  I have not read the details for over a decade, but I belive 
soundex() = 'asrt' for all examples given here.  Perhaps it 
could be used to broaden the test.

--
nosy: +terry.reedy

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



[issue41866] Document error in chinese version of contextlib.

2020-10-02 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
nosy: +mdk

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



[issue41908] Make IDLE Start Menu entry more descriptive

2020-10-02 Thread Terry J. Reedy


New submission from Terry J. Reedy :

A current python-list thread "Problem" is about the difficulties beginners have 
getting started immediately after installation.  I believe it started with 
another beginner asking about getting the modify/repair note.  One other thing 
that came up is that "IDLE", by itself, means nothing to someone who does not 
know what it is.  So one suggestion was to replace the current
  IDLE (Python 3.9 64 bit)
with something more descriptive.

The current longest entry is
  Python 3.9 Module Docs (64-bit)
which appears to be about as long as possible that fits in the space allowed 
without being truncated with ... (like "Microsoft Visual Studio 2010 Express"). 
 (The font is proportional, I believe, so a char count does not give an exact 
measure.)

I propose a new entry for IDLE that is slightly shorter that the apparent 
maximum.
  IDLE Shell-Editor (3.9 64-bit)

The menu entry is also the initial filename for a desktop shortcut.  For me, 
after editing is complete, it displays as either


IDLE
Shell-Edit...
(inactive, 2 lines only) or

  IDLE
Shell-Editor
(3.9 64-bit)
(active, full 3 lines)

I checked that the future '3.10' will not cause a problem.
The popup shortcut comment
"Launches IDLE, the interactive environment for Python 3.9."
nicely complements the proposed title, tying 'IDLE' to 'Python'.
For a taskbar icon, the menu entry is the popup description.
---

macOS: The equivalent of 'Python 3.9' on the start menu is the 'Python 3.9' 
folder in Finder.  The equivalent of the 'IDLE (Python 3.9 64 bit)' entry is 
the Python app icon labelled simply 'IDLE' for the IDLE.app startup file. Ned, 
what would you think of the longer name "IDLE Shell-Editor.app'?  (And maybe 
add 3.9 somewhere -- I have 3.8 and 3.9 loaded and on the (taskbar) I only know 
which is which by position.)

--
assignee: terry.reedy
components: IDLE, Installation, Windows
messages: 377805
nosy: ned.deily, paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: Make IDLE Start Menu entry more descriptive
type: enhancement
versions: Python 3.10

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



[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-09-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 5b0181d1f6474c2cb9b80bdaf3bc56a78bf5fbe7 by Terry Jan Reedy in 
branch 'master':
bpo-41774: Add programming FAQ entry (GH-22402)
https://github.com/python/cpython/commit/5b0181d1f6474c2cb9b80bdaf3bc56a78bf5fbe7


--

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



[issue41859] Uncaught ValueError

2020-09-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Reports with a reproducer are also helpful.

Again, can you get a completion box at all?

--

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



[issue41858] Fix incomplete line on optparse documentation

2020-09-26 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 00eb063b6600fdb4ba5cfb99da83cc1660ec69bf by Emmanuel Arias in 
branch 'master':
bpo-41858: Clarify line in optparse doc (GH-22407)
https://github.com/python/cpython/commit/00eb063b6600fdb4ba5cfb99da83cc1660ec69bf


--

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



[issue41859] Uncaught ValueError

2020-09-26 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

On Windows, the only key I found that closed the completion box via 
keyrelease_event is Left Arrow.  If I explicitly caught that, the method might 
not be needed on Windows.  Next I will look at the triplets list and how 
something might be missing or deleted twice.

On my Mac Airbook with current 3.8.6 and 3.9.0rc2, I cannot get a completion 
box, even with the menu.  Do you have the same issue?

Reports with a traceback, like this one, are helpful and welcome.  If possible, 
include and information about either the code or action that triggered the 
exception.

--

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



[issue41858] Fix incomplete line on optparse documentation

2020-09-25 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I can see how the current phrasing gives one pause, and might seem incomplete, 
but it is not incorrect.  The sense of

Additionally, users can run one of  ::
-h
--help
and optparse will ...

is "Additionally, users can run one of `` -h`` or `` 
--help`` and optparse will ...".  I personally prefer this running text form 
with in-line code markup to the block form.  What do you think?

If we keep the block form, I slightly prefer 'one of the following' to 'one of 
the next lines' but cannot say why.

--
nosy: +terry.reedy

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



[issue41848] PEG parser doesn't allow lambda in for_if_clause

2020-09-25 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

After adding parens,
>>> [x for x in [] if (lambda: x)]
[]

--
nosy: +terry.reedy

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



[issue41822] Document the meaning of values for sys.float_info.rounds

2020-09-25 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
title: Document the mean of values for sys.float_info.rounds -> Document the 
meaning  of values for sys.float_info.rounds
versions: +Python 3.10

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



[issue41813] Clarify specification of object.__await__

2020-09-25 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
components: +asyncio
nosy: +asvetlov, yselivanov

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



[issue41812] Broken link on documentation header

2020-09-25 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
nosy: +mdk
versions:  -Python 3.6, Python 3.7

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



[issue41306] test_tk test_widgets.ScaleTest fails with Tk 8.6.10

2020-09-25 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Fixing this test bug is required to upgrade tk on Windows.  #39107 and PR 22405.

E. Paine reported on the PR 21715 that this change is intentional and here to 
stay.  I wondered the same; thank you for asking.

--
nosy: +terry.reedy

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



[issue41863] IDLE shell not opening with 3.5 on Mac Mohave.

2020-09-25 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

To try to run IDLE with 8.5, one should install tcl/tk 8.5.18 as described at 
https://www.python.org/download/mac/tcltk/.  This requires making a free Active 
State account and is not at all guaranteed to be sufficient.

Today I installed 3.8.6 and 3.9.0rc2 (3.9.0 is due in 2 weeks) on an Airbook 
with up to date Mohave and ran IDLE. In both cases, there are a few 
Mac-specific bugs, but IDLE mostly works.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed
title: IDLE shell not opening -> IDLE shell not opening with 3.5  on Mac Mohave.

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



[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-09-25 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Raymond, please take what I have written and rewrite it to your satisfaction.  
I have lots else to do, including investigating the IDLE bug you just reported.

--
assignee: terry.reedy -> 

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



[issue41859] Uncaught ValueError

2020-09-24 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I presume that at some point you got a completion box.  It disappeared with 
this traceback and when >>> appeared, you continued.  What python binary? 
3.8.5?  3.8.6? My diagnosis so far.

__call__ is a method in CallWrapper.  The wrapped func is multicall.handler.  
The exception was caught in the
except: self.widget._report_exception()
clause of __call__, but it should never have been raised.

keyrelease_event catches internal errors.  If the insert cursor is not where 
IDLE expects, because "# we didn't catch an event which moved the insert", IDLE 
just closes box rather than trying to recover.  I presume that this should 
never happen.  But when it did, a ValueError was raised for the reason given.  
In this error state, multicall.event_delete makes an invalid assumption.

The simple and immediate fix would be to catch the very rare delete failure.  A 
better and harder fix would be to catch the uncaught insert-moving event. For 
this, it would have been nice if keyrelease displayed a message identifying the 
released key with an email request.  I should  try to reproduce the failure 
(including on Mac) by trying every key (or type of key) that might possibly 
move the cursor.

--

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



[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-09-24 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Timings depend on multiple factors, including implementation (cpython versus 
pypy versus cython, etc) and complexity of the keep/discard decision. I said in 
the proposed text that a listcomp may be faster.  I think that sufficient; 
anyone who cares can test their specific case.

I like the simple ad easy 'slice replacement = iterator' form because it 
illustrates to me that we have done something right with Python's design.

--

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



[issue39107] Upgrade tcl/tk to 8.6.10 (Windows and maxOS)

2020-09-24 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

On Windows, tk Scale['from'] is no longer rounded, matching ttk.Scale.  More 
details and conditional fix on the PR.

--
versions: +Python 3.10 -Python 3.9

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



[issue39107] Upgrade tcl/tk to 8.6.10 (Windows and maxOS)

2020-09-24 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

The existing patch mostly changes '9' to '10', which cannot in itself cause the 
test failure.  There must be a change in widget behavior.  Either Serhiy or 
Mark Rosemen might do better at diagnosing the discrepancy and whether 
_tkinter.c, tkinter.__init__, or tkinter/.../test_widget.py should be changed.
--

PR branches on the main repository are discouraged.  It is just as easy and 
safer for another coredev to modify a fork branch.

--

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



[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-09-24 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

You are right; the replacement index I called 'j' is better buried as a C index 
or pointer within a slice replacement. In fact, a generator expression, if one 
has a keep expression, or a filter call, if one has filter function, work, 
without the intermediate list.   Both also incorporate the keep scan 
index/pointer in C.  I verified that this works by defining 3 functions.

def fc(n, keep):
mylist = list(range(n))
mylist[:] = [x for x in mylist if keep(x)]
return mylist

def fg(n, keep):
mylist = list(range(n))
mylist[:] = (x for x in mylist if keep(x))
return mylist

def fl(n, keep):
mylist = list(range(n))
mylist[:] = filter(keep, mylist)
return mylist

I added a second test expression.

print(fc(i, keep) == fg(i, keep) == fl(i, keep) == expect)

at the 3 obvious places in the test loop above.
---

In the existing question about removing duplicates, the existing all-hashable 
answer
   mylist = list(set(mylist))
could be replaced by
   mylist[:] = set(mylist)

--
stage: patch review -> needs patch

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



[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-09-24 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
keywords: +patch
pull_requests: +21442
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/22402

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



[issue41775] IDLE: change Shell window title

2020-09-24 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

In the last few months, there has been an increase in bpo issues mis-tagged 
IDLE.  Today's example: #41774

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

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



[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-09-24 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I modeled the new entry on the previous one.  The code and its test.

def fr(n, remove):
mylist = list(range(n))
for i in range(len(mylist)-1, -1, -1):
if remove(mylist[i]):
del mylist[i]
return mylist

def ff(n, keep):
   mylist = list(range(n))
   j = 0
   for i, item in enumerate(mylist): 
   if keep(item):
   mylist[j] = item
   j += 1
   del mylist[j:]
   return mylist

for i in range(9):

expect = list(range(0, i, 2))
def remove(n): return n % 2
def keep(n): return n % 2 == 0
print(fr(i, remove) == ff(i, keep) == expect)

expect = list(range(i//2))
def remove(n): return n >= i//2
def keep(n): return n < i//2
print(fr(i, remove) == ff(i, keep) == expect)

expect = list(range(i//2, i))
def remove(n): return n < i//2
def keep(n): return n >= i//2
print(fr(i, remove) == ff(i, keep) == expect)

# all True

--

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



[issue41775] IDLE: change Shell window title

2020-09-24 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 05cc881cbcf5d73a312568c78c7149eae3195072 by Terry Jan Reedy in 
branch 'master':
bpo-41775: Make 'IDLE Shell' the shell title  (#22399)
https://github.com/python/cpython/commit/05cc881cbcf5d73a312568c78c7149eae3195072


--

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



[issue41775] IDLE: change Shell window title

2020-09-24 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
keywords: +patch
pull_requests: +21439
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/22399

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



[issue33822] IDLE subsection of What's New 3.8

2020-09-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -21425

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



[issue41844] IDLE subsection of What's New 3.9

2020-09-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 57e7d5c19e934f450f5a3539eff48162a78af994 by Miss Islington (bot) 
in branch '3.9':
bpo-41844: Add IDLE section to What's New 3.9 (GN-22382)
https://github.com/python/cpython/commit/57e7d5c19e934f450f5a3539eff48162a78af994


--

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



[issue33822] IDLE subsection of What's New 3.8

2020-09-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.10, Python 3.9

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



[issue33822] IDLE subsection of What's New 3.8

2020-09-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 9c4eac7f02ddcf32fc1cdaf7c08c37fe9718c1fb by Terry Jan Reedy in 
branch 'master':
bpo-33822: Update IDLE section of What's New 3.8 (GH-22383)
https://github.com/python/cpython/commit/9c4eac7f02ddcf32fc1cdaf7c08c37fe9718c1fb


--

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



[issue33822] IDLE subsection of What's New 3.8

2020-09-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +21425
pull_request: https://github.com/python/cpython/pull/22382

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



[issue41844] IDLE subsection of What's New 3.9

2020-09-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 22b7616f26694ac707fd53ece500febfad665426 by Terry Jan Reedy in 
branch 'master':
bpo-41844: Add IDLE section to What's New 3.9 (GN-22382)
https://github.com/python/cpython/commit/22b7616f26694ac707fd53ece500febfad665426


--

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



[issue33822] IDLE subsection of What's New 3.8

2020-09-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +21423
pull_request: https://github.com/python/cpython/pull/22383

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



[issue41844] IDLE subsection of What's New 3.9

2020-09-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


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

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



[issue33822] IDLE subsection of What's New 3.8

2020-09-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -21421

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



[issue33822] IDLE subsection of What's New 3.8

2020-09-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +21421
pull_request: https://github.com/python/cpython/pull/22382

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



  1   2   3   4   5   6   7   8   9   10   >