From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=48863 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ODhnF-0001Le-R3 for qemu-devel@nongnu.org; Sun, 16 May 2010 13:38:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ODhnE-00075r-ED for qemu-devel@nongnu.org; Sun, 16 May 2010 13:38:25 -0400 Received: from mail2.shareable.org ([80.68.89.115]:52579) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ODhnE-00074e-9p for qemu-devel@nongnu.org; Sun, 16 May 2010 13:38:24 -0400 Date: Sun, 16 May 2010 18:38:09 +0100 From: Jamie Lokier Subject: Re: [Qemu-devel] [PATCH 3/8] Add QBuffer Message-ID: <20100516173809.GA29814@shareable.org> References: <6e14cbfe3764b46d9bd6d2db61d41fd9c85dd54e.1273843151.git.jan.kiszka@siemens.com> <4BED9358.1000106@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BED9358.1000106@codemonkey.ws> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Anthony Liguori , Juan Quintela , Jan Kiszka , qemu-devel@nongnu.org, Luiz Capitulino , Avi Kivity , Markus Armbruster Anthony Liguori wrote: > Instead of encoding just as a string, it would be a good idea to encode > it as something like: > > {'__class__': 'base64', 'data': ...} Is there a benefit to the class indirection, over simply a keyword?: {'__base64__': ...} __class__ seems to suggest much more than it's being used for here. -- Jamie