summaryrefslogtreecommitdiff
path: root/sandbox/pbool.py
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/pbool.py')
-rw-r--r--sandbox/pbool.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/sandbox/pbool.py b/sandbox/pbool.py
new file mode 100644
index 0000000..35ca760
--- /dev/null
+++ b/sandbox/pbool.py
@@ -0,0 +1,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'
+