This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: IDLE lib error in IOBinding.py
Type: behavior Stage: resolved
Components: IDLE Versions: Python 2.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Opening a file in IDLE causes a crash or hang
View: 19426
Assigned To: Nosy List: Domenico.Mustara, ned.deily, r.david.murray
Priority: normal Keywords:

Created on 2014-03-08 09:54 by Domenico.Mustara, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (5)
msg212925 - (view) Author: Domenico Mustara (Domenico.Mustara) Date: 2014-03-08 09:54
Not a new issue, many Python users have already written about this error. In line 128 of IOBinding.py file, please change 'str = str.split("\n", 2)[:2]" to "lst = str.split("\n", 2)[:2]". This error prevents IDLE from working correctly when a .py file is loaded. I use IDLE on Ubuntu 13.10. At every new update, I need to manually modify IOBinding.py file in /usr/lib/python2.7/idlelib directory. Please fix it. Thanks
msg212932 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2014-03-08 14:16
Indeed it has been reported before, and fixed.  (It's a little hard to find the issue by searching the tracker, though.)  Issue 19426.
msg212936 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2014-03-08 17:39
More specifically, the bug that causes the problem was first released in the 2.7.6 release candidate 1 (pre-release, 2013-10-26) and fixed in the official 2.7.6 final release (2013-11-10).  So it is somewhat surprising that you would continually re-encounter it.
msg212993 - (view) Author: Domenico Mustara (Domenico.Mustara) Date: 2014-03-09 22:32
Is idle-python2.7_2.7.5-8ubuntu3.1_all.deb the latest package? I downloaded it from saucy and saucy-updates repository via packages.ubuntu.com. In both cases the error is still there. I don't want to be annoying but I would like you to decompress the package and verify yourself. Tell me please If I'm wrong. Not a great problem, indeed.
msg212994 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2014-03-09 22:37
That's an Ubuntu packaging issue, not a Python issue.  You should check with Ubuntu about it.
History
Date User Action Args
2022-04-11 14:57:59adminsetgithub: 65068
2014-03-09 22:37:34r.david.murraysetmessages: + msg212994
2014-03-09 22:32:35Domenico.Mustarasetmessages: + msg212993
2014-03-08 17:39:34ned.deilysetnosy: + ned.deily
messages: + msg212936
2014-03-08 14:16:25r.david.murraysetstatus: open -> closed

superseder: Opening a file in IDLE causes a crash or hang
nosy: + r.david.murray

messages: + msg212932
type: crash -> behavior
resolution: duplicate
stage: resolved
2014-03-08 09:54:45Domenico.Mustaracreate