[Tutor] IDLE as battery included

dman dsh8290@rit.edu
Mon, 26 Nov 2001 18:25:51 -0500


On Mon, Nov 26, 2001 at 03:16:56PM -0800, Kirby Urner wrote:
| At 05:09 PM 11/26/2001 -0500, Andrei Kulakov wrote:
 
| >The problem is that when you type in blocks, they're unaligned, and that
| >just don't look right.
| 
| When you type the blocks directly at the IDLE prompt, it's
| not a problem.  When I go:
| 
|  >>> def f(x):
[...]

It's not "def" and "class" blocks that are the problem, but blocks
like "if-else" and "try-except" - blocks that have more than one line
at the least level of indent.  You have to type the "elif", "else",
and "except" such that it _looks_ too much dedented but it really
isn't.

-D

-- 

(E)ighteen (M)egs (A)nd (C)onstantly (S)wapping