diff options
author | Federico Di Gregorio <fog@initd.org> | 2004-10-19 03:17:12 +0000 |
---|---|---|
committer | Federico Di Gregorio <fog@initd.org> | 2004-10-19 03:17:12 +0000 |
commit | c904d97f696a665958c2cc43333d09c0e6357577 (patch) | |
tree | de88cb1cb6a48230f79bc0b532835d26a33660e9 /sandbox/pbool.py | |
download | psycopg2-c904d97f696a665958c2cc43333d09c0e6357577.tar.gz |
Initial psycopg 2 import after SVN crash.
Diffstat (limited to 'sandbox/pbool.py')
-rw-r--r-- | sandbox/pbool.py | 13 |
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' + |