From hackhalotwo at gmail.com Sat May 2 02:11:35 2009 From: hackhalotwo at gmail.com (Jacob Litewski) Date: Fri, 01 May 2009 20:11:35 -0400 Subject: [Idle-dev] Bug Report Message-ID: <49FB8FB7.20001@gmail.com> Hello. I just started using the IDLE IDE, and sometimes it crashes unexpectedly. I would be writing code or changing the IDE's colors and it would just disappear. I was just wondering if this is a known issue or not. My Computer's specs: Dell Inspiron 1000 Xubuntu 9.04 (Kernel 2.6.28-11-generic) 512Mb RAM (with on-board RAM for video card) Mobile Intel Celeron Python version 2.6.2 IDLE version 2.6.2 Tk version 8.5 Thank you --Jacob Litewski From taste_of_r at yahoo.com Tue May 12 08:25:10 2009 From: taste_of_r at yahoo.com (Wei Su) Date: Mon, 11 May 2009 23:25:10 -0700 (PDT) Subject: [Idle-dev] How to run selected statements in IDLE (Windows XP)? Message-ID: <470715.47407.qm@web43516.mail.sp1.yahoo.com> ? ? Hi, All: ? I am a really green user of Python. And I am now using IDLE. The most significant inconvenience so far is that I still cannot figure out how to run selected statements in the interactive mode. In SAS, I can do F3, in R, F5 and in Matlab F9. But I tried all these keys and still cannot figure out how to run selected statements/commands. I am using Windows XP. ? Any help will be really great! ? Wei Su ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From fuzzyman at voidspace.org.uk Tue May 12 11:46:30 2009 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Tue, 12 May 2009 10:46:30 +0100 Subject: [Idle-dev] How to run selected statements in IDLE (Windows XP)? In-Reply-To: <470715.47407.qm@web43516.mail.sp1.yahoo.com> References: <470715.47407.qm@web43516.mail.sp1.yahoo.com> Message-ID: <4A094576.7070006@voidspace.org.uk> Hello Wei Su, I don't think IDLE has a concept of 'executing selected statements'. You have two main windows with IDLE - one for writing whole programs, which you can then run by pressing F5, and an interactive environment which behaves like the normal Python interactive interpreter (executing individual statements or blocks like function and class definitions etc). All the best, Michael Foord Wei Su wrote: > > > Hi, All: > > I am a really green user of Python. And I am now using IDLE. The most > significant inconvenience so far is that I still cannot figure out how > to run selected statements in the interactive mode. In SAS, I can do > F3, in R, F5 and in Matlab F9. But I tried all these keys and still > cannot figure out how to run selected statements/commands. I am using > Windows XP. > > Any help will be really great! > > Wei Su > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > IDLE-dev mailing list > IDLE-dev at python.org > http://mail.python.org/mailman/listinfo/idle-dev > -- http://www.ironpythoninaction.com/ From Scott.Daniels at Acm.Org Tue May 12 17:57:29 2009 From: Scott.Daniels at Acm.Org (Scott David Daniels) Date: Tue, 12 May 2009 08:57:29 -0700 Subject: [Idle-dev] How to run selected statements in IDLE (Windows XP)? In-Reply-To: <470715.47407.qm@web43516.mail.sp1.yahoo.com> References: <470715.47407.qm@web43516.mail.sp1.yahoo.com> Message-ID: Wei Su wrote: > I am a really green user of Python. And I am now using IDLE. The most > significant inconvenience so far is that I still cannot figure out how > to run selected statements in the interactive mode. In SAS, I can do F3, > in R, F5 and in Matlab F9. But I tried all these keys and still cannot > figure out how to run selected statements/commands. I am using Windows XP. You can select and copy the statement, then move to the interactive window (or to the bottom of the interactive window) and paste it in there. at the interactive prompt, you can use Alt-P to move through previous lines until you find the one you want, edit it, move to its end, and press return. --Scott David Daniels Scott.Daniels at Acm.Org From roger.serwy at gmail.com Thu May 14 04:16:46 2009 From: roger.serwy at gmail.com (Roger Serwy) Date: Wed, 13 May 2009 21:16:46 -0500 Subject: [Idle-dev] How to run selected statements in IDLE (Windows XP)? In-Reply-To: <470715.47407.qm@web43516.mail.sp1.yahoo.com> References: <470715.47407.qm@web43516.mail.sp1.yahoo.com> Message-ID: <4A0B7F0E.3020301@gmail.com> Hi Wei Su, This functionality seems like a good idea for IDLE, so I wrote an extension to execute selected statements. It can be found at http://www.ews.illinois.edu/~serwy/python/code/RunRegion.py Place this file under lib/idlelib and then add these lines to config-extensions.def: [RunRegion] enable=1 enable_shell=0 [RunRegion_cfgBindings] run-region= Regards, Roger D. Serwy Wei Su wrote: > > > Hi, All: > > I am a really green user of Python. And I am now using IDLE. The most > significant inconvenience so far is that I still cannot figure out how > to run selected statements in the interactive mode. In SAS, I can do > F3, in R, F5 and in Matlab F9. But I tried all these keys and still > cannot figure out how to run selected statements/commands. I am using > Windows XP. > > Any help will be really great! > > Wei Su > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > IDLE-dev mailing list > IDLE-dev at python.org > http://mail.python.org/mailman/listinfo/idle-dev > From vic_2007_ at hotmail.com Tue May 19 01:59:49 2009 From: vic_2007_ at hotmail.com (VIC BURAZIN) Date: Mon, 18 May 2009 20:59:49 -0300 Subject: [Idle-dev] Is this a bug Message-ID: idle-dev at python.org a=10 x=0 y=0 z=0 v=[] for me in range(a): x=x+2 y=y+4 z=z+6 v[me:] = x, y, z print v[me:] for e in range(a): print v[e:] IDLE 1.2.2 ==== No Subprocess ==== >>> [2, 4, 6] [4, 8, 12] [6, 12, 18] [8, 16, 24] [10, 20, 30] [12, 24, 36] [14, 28, 42] [16, 32, 48] [18, 36, 54] [20, 40, 60] [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 40, 60] [4, 6, 8, 10, 12, 14, 16, 18, 20, 40, 60] [6, 8, 10, 12, 14, 16, 18, 20, 40, 60] [8, 10, 12, 14, 16, 18, 20, 40, 60] [10, 12, 14, 16, 18, 20, 40, 60] [12, 14, 16, 18, 20, 40, 60] [14, 16, 18, 20, 40, 60] [16, 18, 20, 40, 60] [18, 20, 40, 60] [20, 40, 60] >>> _________________________________________________________________ Create a cool, new character for your Windows Live? Messenger. http://go.microsoft.com/?linkid=9656621 -------------- next part -------------- An HTML attachment was scrubbed... URL: From clockworksaint at gmail.com Wed May 20 14:50:38 2009 From: clockworksaint at gmail.com (Weeble) Date: Wed, 20 May 2009 13:50:38 +0100 Subject: [Idle-dev] Is this a bug In-Reply-To: References: Message-ID: <13e3f9930905200550i12110a67vc63922dd51b08adf@mail.gmail.com> It doesn't *look* like a bug, nor does it seem to be related to IDLE - the results are just the same when you run it directly from the command-line. What were you expecting to happen? You are creating an empty list, then repeatedly using slice assignment to replacing its tail. Did you intend to use slice assignment? "v[me:]" is slice notation for "the part of the list beginning at element index me and continuing to the end of the list". I would guess that perhaps you meant: a=10 x=0 y=0 z=0 v=[] for me in range(a): x=x+2 y=y+4 z=z+6 v.append((x, y, z)) print v[me] for e in range(a): print v[e] or even a=10 x=0 y=0 z=0 v={} for me in range(a): x=x+2 y=y+4 z=z+6 v[me] = x, y, z print v[me] for e in range(a): print v[e] Your question is not really suited to idle-dev, which is about development of the IDLE editor for Python. You will likely get much better answers next time if you try the python-help mailing list or a newsgroup like comp.lang.python. On Tue, May 19, 2009 at 12:59 AM, VIC BURAZIN wrote: > idle-dev at python.org > > a=10 > x=0 > y=0 > z=0 > > v=[] > for me in range(a): > ??????? x=x+2 > ??????? y=y+4 > ??????? z=z+6 > ??????? v[me:] = x, y, z > ??????? print v[me:] > for e in range(a): > ??????? print v[e:] > > IDLE 1.2.2????? ==== No Subprocess ==== >>>> > [2, 4, 6] > [4, 8, 12] > [6, 12, 18] > [8, 16, 24] > [10, 20, 30] > [12, 24, 36] > [14, 28, 42] > [16, 32, 48] > [18, 36, 54] > [20, 40, 60] > [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 40, 60] > [4, 6, 8, 10, 12, 14, 16, 18, 20, 40, 60] > [6, 8, 10, 12, 14, 16, 18, 20, 40, 60] > [8, 10, 12, 14, 16, 18, 20, 40, 60] > [10, 12, 14, 16, 18, 20, 40, 60] > [12, 14, 16, 18, 20, 40, 60] > [14, 16, 18, 20, 40, 60] > [16, 18, 20, 40, 60] > [18, 20, 40, 60] > [20, 40, 60] >>>> > > > ________________________________ > Create a cool, new character for your Windows Live? Messenger. Check it out > _______________________________________________ > IDLE-dev mailing list > IDLE-dev at python.org > http://mail.python.org/mailman/listinfo/idle-dev > > From dblank at cs.brynmawr.edu Wed May 20 14:32:42 2009 From: dblank at cs.brynmawr.edu (Douglas S. Blank) Date: Wed, 20 May 2009 08:32:42 -0400 (EDT) Subject: [Idle-dev] Is this a bug In-Reply-To: References: Message-ID: <63618.71.59.120.170.1242822762.squirrel@cs.brynmawr.edu> Is what a bug? Why do you think this has something to do with IDLE? Do you get a different answer at the Python command line? -Doug > > idle-dev at python.org > > > > a=10 > x=0 > y=0 > z=0 > > > > v=[] > > for me in range(a): > x=x+2 > y=y+4 > z=z+6 > v[me:] = x, y, z > print v[me:] > for e in range(a): > print v[e:] > > IDLE 1.2.2 ==== No Subprocess ==== >>>> > [2, 4, 6] > [4, 8, 12] > [6, 12, 18] > [8, 16, 24] > [10, 20, 30] > [12, 24, 36] > [14, 28, 42] > [16, 32, 48] > [18, 36, 54] > [20, 40, 60] > [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 40, 60] > [4, 6, 8, 10, 12, 14, 16, 18, 20, 40, 60] > [6, 8, 10, 12, 14, 16, 18, 20, 40, 60] > [8, 10, 12, 14, 16, 18, 20, 40, 60] > [10, 12, 14, 16, 18, 20, 40, 60] > [12, 14, 16, 18, 20, 40, 60] > [14, 16, 18, 20, 40, 60] > [16, 18, 20, 40, 60] > [18, 20, 40, 60] > [20, 40, 60] >>>>