[Zope-Checkins] CVS: Packages/BTrees - BucketTemplate.c:1.18

Chris McDonough chrism@zope.com
Mon, 03 Sep 2001 17:14:42 -0400


Are we sure this is the right behavior?

Andreas Jung wrote:
> Update of /cvs-repository/Packages/BTrees
> In directory cvs.zope.org:/tmp/cvs-serv31753
> 
> Modified Files:
> 	BucketTemplate.c 
> Log Message:
> values() return keys instead of values
> 
> 
> === Packages/BTrees/BucketTemplate.c 1.17 => 1.18 ===
>    for (i=low; i <= high; i++)
>      {
> -      COPY_KEY_TO_OBJECT(v, self->keys[i]);
> +      COPY_VALUE_TO_OBJECT(v, self->values[i]);
>        UNLESS (v) goto err;
>        if (PyList_SetItem(r, i, v) < 0) goto err;
>      }
> 
> 
> _______________________________________________
> Zope-Checkins maillist  -  Zope-Checkins@zope.org
> http://lists.zope.org/mailman/listinfo/zope-checkins
> 


-- 
Chris McDonough                    Zope Corporation
http://www.zope.org             http://www.zope.com
"Killing hundreds of birds with thousands of stones"