[IPython-user] Return to editor broken?
Walter Dörwald
walter at livinglogic.de
Thu Jan 12 08:23:14 CST 2006
Hi list,
It seems that the new "Return to editor" functionality kicks in even it
the code wasn't edited in the editor:
If I type eval("?") I get a "Return to editor to correct syntax error?
[Y/n]" prompt, if I type "y" here, I get an empty editor. Closing the
editor without saving gives me the following stacktrace:
/usr/local/lib/python2.4/site-packages/IPython/iplib.py in
safe_execfile(self, fname, *where, **kw)
2064
2065 def safe_execfile(self,fname,*where,**kw):
-> 2066 fname = os.path.expanduser(fname)
2067
2068 # find things also in current directory
/usr/local/lib/python2.4/posixpath.py in expanduser(path)
311 """Expand ~ and ~user constructions. If user or $HOME is
unknown,
312 do nothing."""
--> 313 if not path.startswith('~'):
314 return path
315 i = path.find('/', 1)
AttributeError: 'NoneType' object has no attribute 'startswith'
More information about the IPython-user
mailing list