Terry J. Reedy <tjre...@udel.edu> added the comment:

I verified that 'argv' (bound to sys.argv)  appears for all three versions 
after running an editor file, but not when Shell is started normally, without a 
file.

The immediate culprit is the runcommand code in runscript, lines 156-168.  As 
part of the patch to allow additions to sys.argv, temporary name 'argv' was 
added but not deleted at the end.  I missed this when I reviewed the patch.  So 
this bug only affected 3.7.4 and 3.8.0b2 to 3.8.0b4. The immediate fix is 
trivial.

The deeper problem is running internal IDLE code in the user namespace.  I 
believe that this is not necessary and opened #38078 to test and fix.

----------
nosy: +cheryl.sabella

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

Reply via email to