From bvande at po-box.mcgill.ca Sun May 8 20:44:39 2005 From: bvande at po-box.mcgill.ca (Brian van den Broek) Date: Sun, 08 May 2005 14:44:39 -0400 Subject: [Idle-dev] module won't run in IDLE: puzzling traceback Message-ID: <427E5E17.80608@po-box.mcgill.ca> Hi all, I'm a hobbyist who posts mostly to Tutor; I'm doing my level best to handle this "right". Apologies for any mis-steps. I have googled the web and searched the gmane archive of this list for the terms asyncqueue and putmessage but did not come up with anything that I recognized as relevant. The problem: I have a module which, when I run it with IDLE 1.1.1 produces the following traceback: IDLE 1.1.1 >>> ================================ RESTART ================================ >>> Traceback (most recent call last): File "C:\PYTHON24\lib\idlelib\rpc.py", line 233, in asyncqueue self.putmessage((seq, request)) File "C:\PYTHON24\lib\idlelib\rpc.py", line 333, in putmessage raise IOError IOError It leaves the program running (attempts to close the shell window produce a "The program is still running!" dialog). My environment is Python 2.4.1 running on a WindowsME box. Possibly of relevance: 1) I run ZoneAlarm, and 2) I often, but unpredictably, get the IDLE subprocess error message when attempting to relaunch IDLE after having shut it down, and have to kill a running Pythonw process in TaskManager to relaunch. My module runs fine when run via each of the following: a DOS console Python interpreter, PythonWin, DrPython, and SciTE. (When applicable, the each tool's 'Check Syntax' command passes just fine, and this includes the check in IDLE itself.) I have encountered this before with other modules of mine. I generally use Leo (a pure Python literate programming outline style code editor ) to edit my longer pieces of code. In the present case, and I believe in previous cases of the same problem, I did indeed use Leo to write my code. Thus, I cannot rule out that Leo is somehow implicated or at fault, but the fact that other means of running my module work make me suspect it is an IDLE issue, rather than a Leo one. (Previous cases of this problem when running via IDLE also worked when ran via other means.) I realize that it would be helpful to have a minimal snippet exhibiting the problem. But, I have been unable so far to produce a small snippet. My original module is over 1200 loc, and I have spent the better part of an hour trying to pare it down; I have reduced it but it still stands at just under 750 loc. I am about to give up on the attempt to pare it down further--at this point, removing any docstrings, classes, methods, if blocks, or even print statements cause the problem to disappear. (Indeed, I was only able to remove a few classes, top-level statements, and all comments while preserving the problem.) I have checked, and there are no tabs in my module and all lines end with the Unix standard \n rather than the Windows \r\n. (I tried converting to \r\n line endings, and it makes no difference.) I know nothing of IDLE's internals, and am not sufficiently skilled in programming to acquire a meaningful understanding in a reasonable time-frame. I would very much appreciate suggestions as to how to narrow down the problem further. Thanks and best, Brian vdB From C.L.L.Bartels at student.tue.nl Mon May 23 11:49:05 2005 From: C.L.L.Bartels at student.tue.nl (Bartels, C.L.L.) Date: Mon, 23 May 2005 11:49:05 +0200 Subject: [Idle-dev] debugging with idle Message-ID: <9782D6A4D5C1E04EA1465591C323EB1B1DC07B@studentex6.campus.tue.nl> Hi, I've been using idle for some time now, and I really like it, it is small/clean/comes with the standard python package and can do most of what I want. Only it's debugging capability is a bit incomplete (or I am not using it correctly, so correct me if I am wrong), i.e. I use a lot of classes with submembers (which for example are lists with implicit references to other python objects) etc... And I can't really view them in the python debugger, it only sais: "class instance at addr xxx" and I cant click it or view deeper into it. Any ideas on this? Best regards, Chris From dscherer at cmu.edu Mon May 30 07:44:19 2005 From: dscherer at cmu.edu (dscherer@cmu.edu) Date: Mon, 30 May 2005 13:44:19 +0800 Subject: [Idle-dev] (no subject) Message-ID: <200505300539.j4U5d9rm027170@skyzonetours.com> ------------------ Virus Warning Message (on mail2.skyzonetours.com) Found virus WORM_MYTOB.BW in file document.txt .scr (in document.zip) The uncleanable file is deleted. --------------------------------------------------------- -------------- next part -------------- The message cannot be represented in 7-bit ASCII encoding and has been sent as a binary attachment. -------------- next part -------------- ------------------ Virus Warning Message (on mail2.skyzonetours.com) document.zip is removed from here because it contains a virus. --------------------------------------------------------- From pantheraleo at animail.net Tue May 31 11:16:46 2005 From: pantheraleo at animail.net (Michael Urban) Date: Tue, 31 May 2005 04:16:46 -0500 Subject: [Idle-dev] Triple quoted strings syntax highlighting Message-ID: <539222FFB7E02BD49B5352779156205D@pantheraleo.animail.net> I'm new to the list, but there was an enchancement I was considering for IDLE (and possibly even writing it myself). Since triple quoted strings are often used (perhaps primary used? at least by me) to enclose documentation for the pydoc generator, I thought it would be a nice feature if IDLE considered triple quoted strings seperately from single and double quoted strings for syntax highlighting purposes. Just wanted to get some opinions and thoughts on this before I start trying to figure out how to add this enhancement myself. Thanks for any input. "The fingerprint of God is often a pawprint." -- Susan Chernak McElroy http://www.Care2.com Free e-mail. 100MB storage. Helps charities. Make a Difference: Tell U.S. Congress to stop hurting our health care! http://www.care2.com/go/z/healthcare