is there a whitespace-free python convention?

eichin at metacarta.com eichin at metacarta.com
Sat Feb 8 01:43:32 EST 2003


I stumbled across this problem with posting code snippets to a
sourceforge discussion -- basically, there's no whitespace
preservation, though newlines are preserved [or it wouldn't even be
worth trying], so even simple code gets mangled.  

Arguably, the fix is for sourceforge to support some mechansim for not
losing whitespace (perhaps html tags, but <pre> clearly didn't work.)
However, a related case came to mind -- a friend of mine does all of
his coding with emacspeak, and while he can switch it to 'explicit
whitespace' mode, it is kind of painful.

So, working from both sides, is there a convention that people
actually like for expressing indentation when it isn't really there? 




More information about the Python-list mailing list