Lichen

tests/consts.py

210:263f32338b37
2016-11-22 Paul Boddie Prevent lambdas with defaults being referenced as static function objects.
     1 def f():     2     s = "test"     3     m = s.__len__     4     n = "test".__len__     5     print m()     6     print n()     7      8 def g():     9     l = [1]    10     m = l.__len__    11     n = [1].__len__    12     print m()    13     print n()    14     15 f()    16 g()