[Ipython-tickets] [IPython] #235: AttributeError Exception in $Id: iplib.py 2871 2007-11-25 when running embed example in WingIDE
IPython
ipython-tickets@scipy....
Sun Feb 24 13:11:16 CST 2008
#235: AttributeError Exception in $Id: iplib.py 2871 2007-11-25 when running
embed example in WingIDE
---------------------+------------------------------------------------------
Reporter: gpotts2 | Owner: fperez
Type: defect | Status: new
Priority: normal | Milestone:
Component: ipython | Version:
Severity: normal | Keywords: IPython 0.8.2
---------------------+------------------------------------------------------
Line 380 in iplib.py assumes sys.stdin will always have an encoding
Attribute, which is not necessarily true when run under a debugger such as
WingIDE.
Current:
self.stdin_encoding = sys.stdin.encoding or 'ascii'
Proposed fix:
try:
self.stdin_encoding = sys.stdin.encoding or 'ascii'
except AttributeError:
self.stdin_encoding = 'ascii'
This works under WingIDE 3.x on my Mac running MacPython 2.4
--
Ticket URL: <http://ipython.scipy.org/ipython/ipython/ticket/235>
IPython <http://ipython.scipy.org>
The IPython interactive Python system
More information about the Ipython-tickets
mailing list