[Idle-dev] [ idlefork-Bugs-803382 ] PyShell's broken in python 2.3

SourceForge.net noreply at sourceforge.net
Tue Sep 9 14:23:56 EDT 2003


Bugs item #803382, was opened at 2003-09-09 15:24
Message generated for change (Comment added) made by gvanrossum
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109579&aid=803382&group_id=9579

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Charles Doutriaux (cdoutri)
Assigned to: Nobody/Anonymous (nobody)
Summary: PyShell's broken in python 2.3

Initial Comment:
    shell = PyShell.PyShell(parent.flist)

  File

"/roseland0/cdat/latest/lib/python2.3/idlelib/PyShell.py",

line 710, in __init__

    if use_subprocess:

NameError: global name 'use_subprocess' is not defined

 

Any idea ?

----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2003-09-09 16:23

Message:
Logged In: YES 
user_id=6380

Right. It looks like this variable is only defined if main()

in the same module is run. As a workaround, try this:



from idlelib import PyShell

PyShell.use_subprocess = True # or False, whatever you prefer.



I guess the proper fix should be to give use_subprocess a

default variable through an assignment outside main().

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109579&aid=803382&group_id=9579



More information about the IDLE-dev mailing list