From cassandra-user-return-888-apmail-incubator-cassandra-user-archive=incubator.apache.org@incubator.apache.org Fri Oct 09 17:33:40 2009 Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 93573 invoked from network); 9 Oct 2009 17:33:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Oct 2009 17:33:40 -0000 Received: (qmail 54153 invoked by uid 500); 9 Oct 2009 17:33:40 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 54139 invoked by uid 500); 9 Oct 2009 17:33:40 -0000 Mailing-List: contact cassandra-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-user@incubator.apache.org Delivered-To: mailing list cassandra-user@incubator.apache.org Received: (qmail 54130 invoked by uid 99); 9 Oct 2009 17:33:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Oct 2009 17:33:39 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jbellis@gmail.com designates 74.125.78.146 as permitted sender) Received: from [74.125.78.146] (HELO ey-out-1920.google.com) (74.125.78.146) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Oct 2009 17:33:28 +0000 Received: by ey-out-1920.google.com with SMTP id 5so1442056eyb.8 for ; Fri, 09 Oct 2009 10:33:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=HeJGY6KDwdDM7e2b3KQsCPQJgQA67U5ASK2VJKBLpVc=; b=wfindBR9m0Tg6766uxmoXElxHkP/Sz8QED3SQwiu3oEEQi3pk4GJikcNs4ZAue4lhq gZ9dEdl8uasBUU9G3RP/E296JBAsST3ztdbEYukBtRfciYQlsuGqrY5e6upYHzQXA4JB 2IrO4fYXeEzmZNu0/CAOHS3utIw5RJLCffBP4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=GKkwt3IYInDwcnQpnVj+XFCT8Z9DoH45HnYuWByOlfIvhuccplEj0Nxk7OsMVHJbEW 8bhDwDxeCNAe50ub/iaXpkHSWTmuJrD6SLT2Dfm0EHXOI+Br0l3CIKEm8XUfzF+a8VoE hYVnJOIszYkzsqhWlprOFwRSLoquU6RAUWSeQ= MIME-Version: 1.0 Received: by 10.216.87.5 with SMTP id x5mr1018602wee.75.1255109128709; Fri, 09 Oct 2009 10:25:28 -0700 (PDT) In-Reply-To: <51A61A3E-6681-4E18-83D0-885A21AAB406@googlemail.com> References: <51A61A3E-6681-4E18-83D0-885A21AAB406@googlemail.com> Date: Fri, 9 Oct 2009 12:25:28 -0500 Message-ID: Subject: Re: cassdict From: Jonathan Ellis To: cassandra-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org One suggestion -- consider subclassing DictMixin, instead of dict itself. DictMixin is designed for creating things that have a dict-like api, but aren't actually dicts, whereas dict itself obviously isn't. :) Tends to work out cleaner in my experience. Just my two cents, -Jonathan On Fri, Oct 9, 2009 at 12:10 PM, Ben Eliott wrote: > Just a note to inform the list of a python module for cassandra: > > http://bitbucket.org/_ben_/cassdict/overview/ > > For better or worse Cassdict attempts to emulate a standard python > dictionary as an interface to the python thrift api. > > It simplifies thing as far as it goes. Inevitably there's no getting away > from thrift api in the end. But I hope it can be handy in some respects. > Additionally there are a couple of mixins to make the thrift objects more > manageable. > > Thanks to Ian Eure @ Digg for his advices in progressing this module. > > Ben > >