Compare source code

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Sun Nov 7 11:40:18 CET 2010

In message <87sjzige0r.fsf at>, Ben Finney wrote:

> Seebs <usenet-nospam at> writes:
>> On 2010-11-03, Steven D'Aprano <steve-REMOVE-THIS at>
>> wrote:
>>> Python does explicitly mark blocks. It does it by changes in
>>> indentation. An indent is an explicit start-block. An outdent is an
>>> explicit end- block. There is nothing implicit in a change in indent
>>> level.
>> What's the token that marks the end of a block, corresponding to the
>> colon used to introduce it?
> You have introduced this requirement for tokens; it's fallacious. The
> direct answer is: tokens aren't part of the requirement to be explicit.
> The more general answer is: the block is explicitly ended where the
> indentation ends.

That’s implicit, not explicit.

More information about the Python-list mailing list