My favorite class (yet)

Aaron Watters (aaron@funcity.njit.edu)
Thu, 16 Mar 1995 13:06:41 GMT

I don't know whether to be grateful or not, but I'm having
so much fun coding in Python that I'm having trouble doing
anything else (eg, eating, sleeping...).

Let me show you my favorite class yet, from my sql implementation:

class NotExistsPred(ExistsPred):
existsreturn = 0
notexistsreturn = 1
prefix = " NOT EXISTS "

Now, I could shorten both ExistPred and NotExistsPred by
about a total of 4 lines by using "not self.existsreturn"
in place of "self.notexistsreturn", but I decided to sacrifice
code complexity for speed (snort). -a.
===
REMEMBER: There are no bad children, only bad behaviors (snort).