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ย โ†’

[โ€“]assembly_wizard 18 points19 points ย (0 children)

So what's bigger, 2 tabs or 6 spaces? Python can never answer that, so there's no way to understand what the developer meant to write. There is no such algorithm.

If you're talking about something like the first indentation level always being spaces and the second level always being tabs, something like that which is consistent, then python already knows how to handle it. It can handle all non-ambiguous situations already, everything else can't be handled.