On being a moron. kjbuckets release 2 patch

Aaron Watters (aaron@funcity.njit.edu)
Fri, 3 Mar 1995 12:45:08 GMT

I'm going to post two messages today, partially because this first
one is so embarrassing.

A scheme enthusiast once gave me the following advice:
"Don't be such a moron."
I try to follow this advice, I really do, but it's hard.

Right before posting kjbuckets release 2 I thought "Hey, wouldn't
it be neat to initialize from a tuple as well as a list?" So I
modified the code; compiled it; saw that I could initialize from a
tuple; posted it. If I had bothered to run any of my larger scripts
I would have noticed that I broke the type coercion facility.

What a weenie.

I'll post the fix to ftp.cwi.nl:/pub/python/kjbuckets.tar.gz as
soon as I can get into this really popular server. In the meantime
a patch is given below. -a.
===
Time flies like an arrow.
Fruit flies like a banana.
=============================patch to kjbucketsmodule.c
*** kjbucketsmodule.old Thu Mar 2 09:27:20 1995
--- kjbucketsmodule.c Thu Mar 2 09:28:33 1995
***************
*** 1739,1744 ****
--- 1739,1747 ----
Table *tp;
initlist = NULL;
initWrapper = NULL;
+ islist = 0;
+ iskjtable = 0;
+ istuple = 0;
/* no args: allocate a smallest table: */
if (args == NULL) {
members = 0;