First of all let me say that I have no authority or knowledge of language design or multi-processing except from a user point of view, having a decade or so experience. I would like your opinion and appreciate any feedback and value any hints to documentation, procedures or related ramblings :-).

I was wondering if there could be an advantage to add another control flow statement. For the purpose of this writing let's say "ooo" which stands for 'out of order'.

For example;

def do_something():
    a = 4
    b = 2
    c = 1
    ooo:
        a += 1
        b += 2
        c += 3
    print(a, b, c)

What I would expect to happen that all statements within the ooo block may be executed out of order. The block itself waits till all statements are returned before continuing.

What do you think?
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to