[Python-ideas] PEP 3150 (statement local namespaces) updated based on April discussion

Jan Kaliszewski zuo at chopin.edu.pl
Mon Jun 13 02:21:36 CEST 2011


There are some bugs in the code example in the PEP's section "Detailed
Semantics #1: Early Binding of Variable References":

There is:
        assert seq == ...
...and should be:
        assert map(lambda x: x(), seq) == ...
(3 times)

There is:
        def f(_i=i):
          return i
...and should be:
        def f(_i=i):
          return _i

Cheers.
*j




More information about the Python-ideas mailing list