Python scoping

Quinn Dunkan quinn at pfennig.ugcs.caltech.edu
Fri Oct 27 00:29:37 EDT 2000


On Fri, 27 Oct 2000 00:28:15 +0200, Alex Martelli <aleaxit at yahoo.com> wrote:
>"Steven D. Majewski" <sdm7g at virginia.edu> wrote in message
>news:mailman.972589295.8493.python-list at python.org...
>    [snip]
>> in those cases, even with a block delimiter, I find I need to use
>> additional comments: 'endif' isn't enough because I probably have
>> multiple if statements, so I need "endif (test-condition)" to match
>> up with "if (test-condition)".
>>  I don't know of any programming languages that are quite that verbose,
>
>There are languages that let you name blocks, and I believe
>I recall that in PL/I you may, if you wish, recall the label in
>the END clause (or was it Ada...?  darn -- big languages, long
>ago...):
>    Foo: BEGIN
>        /* whatever */
>    END Foo;

Same for dylan, although it's optional there too:

define me a new generic method called foo(x is an <integer> type please)
    ..
end define me a new generic method called foo(x is an <integer> type please);



More information about the Python-list mailing list