[Python-ideas] Transportable indent level markers

Oleg Broytman phd at phdru.name
Thu Dec 15 11:20:38 CET 2011

On Thu, Dec 15, 2011 at 10:11:01AM +0000, Jeremy Sanders wrote:
> To allow easy use of python in environments which aren't space-sensitive, 
> wouldn't another solution be to have some sort of non-space character which 
> could act as leading spaces, e.g.
> def foo():
> ;;a = 0
> ;;for i in range(10):
> ;;;;a += i
> ;;return a
> Of course this wouldn't work for enviroments which lose or cannot contain 
> line breaks, however.

<line indent="0">def foo():</line>
<line indent="1">a = 0</line>
<line indent="1">for i in range(10):</line>
<line indent="2">a += i</line>
<line indent="1">return a</line>


     Oleg Broytman            http://phdru.name/            phd at phdru.name
           Programmers don't die, they just GOSUB without RETURN.

More information about the Python-ideas mailing list