[issue41549] IDLE leaks `_` into hint box

2020-09-01 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
resolution:  -> not a bug
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



[issue41549] IDLE leaks `_` into hint box

2020-08-15 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

The global completion list for Shell or Editor comprises keywords (recently 
added), builtins, and global names bound by code executed in the current 
subprocess.  The doc recommends restarting the subprocess when editing so that 
the global names are those resulting from the code being edited rather than 
code enter in Shell.  (I an trying to make this even clearer in the doc.)

wyz23x2 appears to claim that at least one leading underscore name, in 
particular '_', appeared in the list without having ever entered '_' as the 
prefix to be completed.  That would be a bug.  (_ names appear after 
ZeroDivisionError.)  This might have happened in the past, but I do not see 
this in current IDLE.  Without further info, I will close this as 'not a bug'. 

If '_' appeared alone, without the builtins, that would be a deeper bug.

--
versions: +Python 3.10 -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



[issue41549] IDLE leaks `_` into hint box

2020-08-14 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I think that I understood what is the issue.

1. Open the IDLE editor, type "foo" and press . The pop-up list 
does not contain "foo".
2. Switch to the IDLE shell, type "foo = 1" and press .
3. Switch back to the IDLE editor (the cursor points after "foo") and press 
 again. The pop-up list contains now "foo".

The problem is that the completion list for editor contains names from the 
shell instead of only from builtins. When you run the code from the editor, 
names from the shell are not automatically available.

It can be a feature if you use the same star-import in the shell and editor, 
but it can also be considered as a bug.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue41549] IDLE leaks `_` into hint box

2020-08-14 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I cannot reproduce from the description.  More details: OS and maybe version, 
exact Python version (only most recent releases count as completions have been 
touched recently), exact key presses and click in which windows.  Step 2 should 
be irrelevant.  Step 3 gives me a box with keywords and builtins.  Backspace 
and hitting '_' adds entries beginning with '_', including '_' when defined.

--

___
Python tracker 

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



[issue41549] IDLE leaks `_` into hint box

2020-08-14 Thread wyz23x2


New submission from wyz23x2 :

Reproduce:
1. Open shell and enter an expression, say 1+1.
2. Create a new file and save.
3. Enter a letter and press Tab. `_` appears in the box.

--
assignee: terry.reedy
components: IDLE
messages: 375383
nosy: terry.reedy, wyz23x2
priority: normal
severity: normal
status: open
title: IDLE leaks `_` into hint box
type: behavior
versions: Python 3.8, Python 3.9

___
Python tracker 

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