tests/logical_attr.py | raw changeset files shortlog |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/logical_attr.py Tue Nov 14 23:42:21 2006 +0100 1.3 @@ -0,0 +1,10 @@ 1.4 +class X: 1.5 + x = 1 1.6 +class Y: 1.7 + y = "2" 1.8 +class B: 1.9 + b = 3.0 1.10 +class C: 1.11 + c = 4 1.12 +a = X() and Y() or B() and not C() 1.13 +b = a.x and a.y or a.b and not a.c