Strange windows behavior

Erik Max Francis max at alcyone.com
Sun Jan 19 21:27:36 EST 2003


Chris Lyon wrote:

> How is this possible, different responses from python? Both versions
> (idle and command line ) are returning the same version numbers, I've
> unistalled and rebooted enough times to convince myself it's
> happening, Do I need a complete operating reinstallation + patches to
> correct this or have I found another section of the manuals I haven't
> read properly?

Because IDLE is an IDE and is doing the indenting for you.  Python
itself expects the files it processes (whether you type them in manually
or not) to be indented, but it doesn't do it for you via the interactive
prompts (the prompt changes to tell you that it expects indentation but
can't take you further than that).

The same applies to any other (good) programmer's editor; a Python mode
will be smart enough to help you with indentation, but to the Python
interpreter it's just a text file that had better have the proper
indentation.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ Yes I'm / Learning from falling down / Heavily
\__/ Lamya
    Fauxident / http://www.alcyone.com/pyos/fauxident/
 A "faux" ident daemon in Python.




More information about the Python-list mailing list