From cassandra-user-return-892-apmail-incubator-cassandra-user-archive=incubator.apache.org@incubator.apache.org Fri Oct 09 19:07:01 2009 Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 28580 invoked from network); 9 Oct 2009 19:07:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Oct 2009 19:07:01 -0000 Received: (qmail 6915 invoked by uid 500); 9 Oct 2009 19:07:00 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 6904 invoked by uid 500); 9 Oct 2009 19:07:00 -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 6895 invoked by uid 99); 9 Oct 2009 19:07:00 -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 19:07:00 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ben.apperrors@googlemail.com designates 72.14.220.157 as permitted sender) Received: from [72.14.220.157] (HELO fg-out-1718.google.com) (72.14.220.157) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Oct 2009 19:06:47 +0000 Received: by fg-out-1718.google.com with SMTP id 22so403358fge.0 for ; Fri, 09 Oct 2009 12:05:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:mime-version:subject:date:references:x-mailer; bh=fsgBkoCU7OxbdFupr88MnKHfhzl+BaQ6/GIL8H+er18=; b=xL7CavPrKQB/rnX2uZlIPubKEmVhVJHiE39FTBG7a7tHTa644mAI1sXwzOXEnKmKVY lW7z2r/oipx41ZCms+ej+VYXUKAgyk2/emsB0WKg1uTP9Psgwd/gLuqXM4nFLxzH7VLN GXsIfbxivwtPa8J0jOSjelvvanvpUpM/lpLQk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:content-type:mime-version:subject:date :references:x-mailer; b=KEM6bZL4NZ7Vv1yEo7QrUIyLYKYWal/Yu0O82yaOVXEzL57CSPpZM6r/sz1IGGLV09 eYw2Qr7siciDhTe9bjo5PQBmQywZyC7cKIkcFsN9vXpcufeuONqjRbC8Xels3ToQMFDL Pbm5JY5FUuj6Ruvo1G/oThrz3rcrjLGYvWC9Y= Received: by 10.86.220.9 with SMTP id s9mr2762371fgg.40.1255115126929; Fri, 09 Oct 2009 12:05:26 -0700 (PDT) Received: from ?192.168.1.2? (cpc2-sals2-0-0-cust603.sotn.cable.ntl.com [86.17.38.92]) by mx.google.com with ESMTPS id 4sm260390fgg.13.2009.10.09.12.05.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 09 Oct 2009 12:05:26 -0700 (PDT) Message-Id: <6BC0E31E-DBF0-4A1D-B535-DA73B588D69F@googlemail.com> From: Ben Eliott To: cassandra-user@incubator.apache.org Content-Type: multipart/alternative; boundary=Apple-Mail-49--217465594 Mime-Version: 1.0 (Apple Message framework v936) Subject: Fwd: cassdict Date: Fri, 9 Oct 2009 20:05:24 +0100 References: <833D0D0D-C3E3-4B99-B838-5EEB9E4EB1F2@googlemail.com> X-Mailer: Apple Mail (2.936) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-49--217465594 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit > > Cheers, I looked at dictmixin, thought may as well subclass dict, > but i'll check it out again now, thanks for the tip. > Ben > > > On 9 Oct 2009, at 18:25, Jonathan Ellis wrote: > >> 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 >>> >>> > --Apple-Mail-49--217465594 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable

=
Cheers,  I looked at dictmixin, thought may as well = subclass dict, but i'll check it out again now, thanks for the = tip.
Ben


On 9 Oct 2009, at 18:25, Jonathan Ellis = wrote:

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
<ben.apperrors@googlemail.com<= /a>> wrote:
Just a note to inform the list of a python module for = cassandra:

http://bitbucket.or= g/_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



<= br>= --Apple-Mail-49--217465594--