2009-02-07 | Paul Boddie | file changeset files shortlog | Fixed raw object positioning for functions with static defaults. |
paul@131 | 1 | #!/usr/bin/env python |
paul@131 | 2 | |
paul@131 | 3 | a = 1 |
paul@131 | 4 | b = 2 |
paul@131 | 5 | c = 3 |
paul@131 | 6 | |
paul@131 | 7 | class X: |
paul@131 | 8 | def __contains__(self, other): |
paul@131 | 9 | return 1 |
paul@131 | 10 | |
paul@131 | 11 | x = X() |
paul@131 | 12 | |
paul@131 | 13 | a == x != b |
paul@131 | 14 | a is x is not b |
paul@131 | 15 | a in x |
paul@131 | 16 | |
paul@131 | 17 | # vim: tabstop=4 expandtab shiftwidth=4 |