[issue29162] pyshell.py: name 'sys' is not defined

2017-04-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: The follow-up tkinter import issue is #29446 -- ___ Python tracker ___ ___

[issue29162] pyshell.py: name 'sys' is not defined

2017-03-27 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue29162] pyshell.py: name 'sys' is not defined

2017-03-26 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +736 ___ Python tracker ___ ___

[issue29162] pyshell.py: name 'sys' is not defined

2017-03-26 Thread Jelle Zijlstra
Changes by Jelle Zijlstra : -- pull_requests: +735 ___ Python tracker ___ ___

[issue29162] pyshell.py: name 'sys' is not defined

2017-03-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Reopening because I missed file=sys.__stderr__ in the print() above sys.exit ;-(. Reported by JelleZijlstra in PR. I wonder if there is any way to force an import to fail when testing. I could at least partly test by moving the code for import failure and

[issue29162] pyshell.py: name 'sys' is not defined

2017-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree that incidental names should be eliminated from import. Could you open a new issue for this? -- ___ Python tracker

[issue29162] pyshell.py: name 'sys' is not defined

2017-01-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that depending on the incidental import is a bug. Tkinter could change, or I might change 'from tkinter import *' to 'from tkinter import Tk, ...' or 'import tkinter as tk'. Serhiy, tkinter/__init__.py imports enum, sys, and re under their own names,

[issue29162] pyshell.py: name 'sys' is not defined

2017-01-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 52d671684342 by Terry Jan Reedy in branch '3.6': Issue #29162: Don't depend on 'from tkinter import *' importing sys. https://hg.python.org/cpython/rev/52d671684342 -- nosy: +python-dev ___ Python

[issue29162] pyshell.py: name 'sys' is not defined

2017-01-04 Thread Berker Peksag
Berker Peksag added the comment: I misread your comment. I think we need to add "import sys" to that file so I'm reopening this. -- keywords: +easy resolution: not a bug -> stage: resolved -> needs patch status: closed -> open versions: +Python 3.7

[issue29162] pyshell.py: name 'sys' is not defined

2017-01-04 Thread Berker Peksag
Berker Peksag added the comment: Great, thanks for following up with us. -- resolution: -> not a bug stage: -> resolved ___ Python tracker ___

[issue29162] pyshell.py: name 'sys' is not defined

2017-01-04 Thread OO O
OO O added the comment: to msg284696 - (view): OK~ Sorry I found i forget to install tkinter before I run make. so the "from tkinter import *" failed. ( sys not import ). -- status: open -> closed ___ Python tracker

[issue29162] pyshell.py: name 'sys' is not defined

2017-01-04 Thread Berker Peksag
Berker Peksag added the comment: I think the OP is talking about Lib/idlelib/pyshell.py. The relevant changeset is 76f831e4b806. "from tkinter import *" imports the sys module as a side-effect. OO O, did you notice this by reading the code or by using a tool like flake8? -- nosy:

[issue29162] pyshell.py: name 'sys' is not defined

2017-01-04 Thread Milan Oberkirch
Milan Oberkirch added the comment: pyshell.py is not part of CPython, this is the wrong place to report a bug like this. -- nosy: +zvyn ___ Python tracker

[issue29162] pyshell.py: name 'sys' is not defined

2017-01-04 Thread OO O
New submission from OO O: Sorry for my bad English. line 7, 13 at pyshell.py. Call sys befor import sys. Cause name 'sys' is not defined -- assignee: terry.reedy components: IDLE messages: 284684 nosy: OO O, terry.reedy priority: normal severity: normal status: open title: pyshell.py: