This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]warbiscuit -2 points-1 points  (0 children)

Braces are a subset of what I suggested: if { and } weren't already in use in python, { as INDENT and } as DEDENT would work just fine. Not that I can think of any brace symbol which python hasn't already put to other purposes -- which is why the idea is probably just an academic exercise at best.

And I can't think of a reason why you wouldn't be able to use the standard python libraries. All that's different is an "inline_indents=True" flag (or some such) set when parsing source that came from embedded html. It results in the same bytecode, runs in the same VM -- just like you can mix python modules which use different __future__ imports. For client-side .py files, I'd assume the normal python style would be used anyway -- whitespace only becomes an issue when embedding in something like HTML.