A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-May/053347.html below:

[Python-Dev] PEP 340 -- loose ends

[Python-Dev] PEP 340 -- loose ends [Python-Dev] PEP 340 -- loose endsReinhold Birkenfeld reinhold-birkenfeld-nospam at wolke7.net
Wed May 4 21:28:23 CEST 2005
Noam Raphael wrote:
> On 5/4/05, Reinhold Birkenfeld <reinhold-birkenfeld-nospam at wolke7.net> wrote:
>> 
>> There is one problem with using no keyword: You cannot use arbitrary expressions
>> in the new statement. Consider:
>> 
>> resource = opening("file.txt")
>> block resource:
>>     (...)
>> 
>> resource = opening("file.txt")
>> resource:
>>     (...)
>> 
>> The latter would have to be forbidden.
> 
> Can you explain why it would have to be forbidden please?

Well, with it you could create suites with _any_ introducing
identifier. Consider:

with:
    (...)

synchronized:
    (...)

try:
    (...)

transaction:
    (...)


Do you understand my concern? It would be very, very hard to discern
these "user-defined statements" from real language constructs.

Reinhold

-- 
Mail address is perfectly valid!

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4