Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #30513 > unrolled thread
| Started by | peterfarrell66@gmail.com |
|---|---|
| First post | 2012-09-29 10:14 -0700 |
| Last post | 2012-09-29 21:13 -0700 |
| Articles | 5 — 3 participants |
Back to article view | Back to comp.lang.python
Editing in IDLE peterfarrell66@gmail.com - 2012-09-29 10:14 -0700
Re: Editing in IDLE Terry Reedy <tjreedy@udel.edu> - 2012-09-29 13:52 -0400
Re: Editing in IDLE Chris Angelico <rosuav@gmail.com> - 2012-09-30 04:35 +1000
Re: Editing in IDLE peterfarrell66@gmail.com - 2012-09-29 21:13 -0700
Re: Editing in IDLE peterfarrell66@gmail.com - 2012-09-29 21:13 -0700
| From | peterfarrell66@gmail.com |
|---|---|
| Date | 2012-09-29 10:14 -0700 |
| Subject | Editing in IDLE |
| Message-ID | <13cba669-3640-4e7b-8fee-c84c7bafb67c@googlegroups.com> |
Hello to the group! I'm a new Python user and so far I'm enjoying it. One of the many newbie problems I'm having is I can't edit my code in IDLE once it's run or there's an error message. I can only copy the code so far, paste at the bottom and continue coding. Is there something simple I'm missing, or should I be using a different editor? Thanks in advance! Peter Farrell
[toc] | [next] | [standalone]
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2012-09-29 13:52 -0400 |
| Message-ID | <mailman.1646.1348941195.27098.python-list@python.org> |
| In reply to | #30513 |
On 9/29/2012 1:14 PM, peterfarrell66@gmail.com wrote: > Hello to the group! > > I'm a new Python user and so far I'm enjoying it. One of the many > newbie problems I'm having is I can't edit my code in IDLE once it's > run or there's an error message. I can only copy the code so far, > paste at the bottom and continue coding. Is there something simple > I'm missing, or should I be using a different editor? You are missing how to use IDLE. It has two kinds of windows: interactive Shell and Edit windows. The shell more or less emulates the interactive interpreter, running one statement at a time. You can put the cursor on a previous statement and hit return to make it the current statement, where you can edit it. You edit normal multi-statement code in edit windows, hit F5 to run, edit, run, edit, run. -- Terry Jan Reedy
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2012-09-30 04:35 +1000 |
| Message-ID | <mailman.1651.1348943705.27098.python-list@python.org> |
| In reply to | #30513 |
On Sun, Sep 30, 2012 at 3:14 AM, <peterfarrell66@gmail.com> wrote: > Hello to the group! > > I'm a new Python user and so far I'm enjoying it. One of the many newbie problems I'm having is I can't edit my code in IDLE once it's run or there's an error message. I can only copy the code so far, paste at the bottom and continue coding. Is there something simple I'm missing, or should I be using a different editor? I only ever use IDLE in its interactive mode (at which, imho, it's rather better than the default Python interactive mode, as it auto-indents). In that mode, you can retrieve previous commands with Alt-P - at least, that's the keystroke on Windows, not sure if it's different on other platforms. For editing code that's to be saved in a .py file, I use SciTE, but a lot of people do use IDLE for that too. It's a matter of personal preference. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | peterfarrell66@gmail.com |
|---|---|
| Date | 2012-09-29 21:13 -0700 |
| Message-ID | <20e0f570-997a-4df9-b5ee-1beec6e37417@googlegroups.com> |
| In reply to | #30522 |
Thanks for the responses, Terry and Chris, I'll try the shell, alt-P and I'll check out SciTE! Peter On Saturday, September 29, 2012 11:35:06 AM UTC-7, Chris Angelico wrote: > On Sun, Sep 30, 2012 at 3:14 AM, <peterfarrell66@gmail.com> wrote: > > > Hello to the group! > > > > > > I'm a new Python user and so far I'm enjoying it. One of the many newbie problems I'm having is I can't edit my code in IDLE once it's run or there's an error message. I can only copy the code so far, paste at the bottom and continue coding. Is there something simple I'm missing, or should I be using a different editor? > > > > I only ever use IDLE in its interactive mode (at which, imho, it's > > rather better than the default Python interactive mode, as it > > auto-indents). In that mode, you can retrieve previous commands with > > Alt-P - at least, that's the keystroke on Windows, not sure if it's > > different on other platforms. > > > > For editing code that's to be saved in a .py file, I use SciTE, but a > > lot of people do use IDLE for that too. It's a matter of personal > > preference. > > > > ChrisA
[toc] | [prev] | [next] | [standalone]
| From | peterfarrell66@gmail.com |
|---|---|
| Date | 2012-09-29 21:13 -0700 |
| Message-ID | <mailman.1660.1348978390.27098.python-list@python.org> |
| In reply to | #30522 |
Thanks for the responses, Terry and Chris, I'll try the shell, alt-P and I'll check out SciTE! Peter On Saturday, September 29, 2012 11:35:06 AM UTC-7, Chris Angelico wrote: > On Sun, Sep 30, 2012 at 3:14 AM, <peterfarrell66@gmail.com> wrote: > > > Hello to the group! > > > > > > I'm a new Python user and so far I'm enjoying it. One of the many newbie problems I'm having is I can't edit my code in IDLE once it's run or there's an error message. I can only copy the code so far, paste at the bottom and continue coding. Is there something simple I'm missing, or should I be using a different editor? > > > > I only ever use IDLE in its interactive mode (at which, imho, it's > > rather better than the default Python interactive mode, as it > > auto-indents). In that mode, you can retrieve previous commands with > > Alt-P - at least, that's the keystroke on Windows, not sure if it's > > different on other platforms. > > > > For editing code that's to be saved in a .py file, I use SciTE, but a > > lot of people do use IDLE for that too. It's a matter of personal > > preference. > > > > ChrisA
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web