summaryrefslogtreecommitdiff
path: root/sandbox/pbool.py
blob: 35ca760c39b7f65aac0f3fe89cf9924e370a74c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class B(object):
    def __init__(self, x):
        if x: self._o = True
        else: self._o = False
    def __getattribute__(self, attr):
        print "ga called", attr
        return object.__getattribute__(self, attr)
    def _sqlquote(self):
        if self._o == True:
            return 'It is True'
        else:
            return 'It is False'