[ZODB-Dev] Fwd: [Zodb4-dev] rename PersistentMapping? (Jeremy Hylton)

Jeremy Hylton jeremy@alum.mit.edu
Wed, 31 Jul 2002 18:54:03 -0400


--bAzps8SX2D
Content-Type: text/plain; charset=us-ascii
Content-Description: message body text
Content-Transfer-Encoding: 7bit

This question didn't get any response on the now-defunct zodb4-dev.
Any takers here?  Would anyone object if PersistentMapping was called
PersistentDict in ZODB4.

Jeremy


--bAzps8SX2D
Content-Type: message/rfc822
Content-Description: forwarded message
Content-Transfer-Encoding: 7bit

MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Return-Path: <zodb4-dev-admin@python.org>
Delivered-To: jhylton@speakeasy.net
Received: (qmail 17157 invoked from network); 22 Jul 2002 20:22:08 -0000
Received: from unknown (HELO alum.mit.edu) ([18.7.21.81]) (envelope-sender <zodb4-dev-admin@python.org>)
          by mail15.speakeasy.net (qmail-ldap-1.03) with SMTP
          for <jhylton@speakeasy.net>; 22 Jul 2002 20:22:08 -0000
Received: from mail.python.org (mail.python.org [63.102.49.29])
	by alum.mit.edu (8.9.2/8.9.3) with ESMTP id QAA19772;
	Mon, 22 Jul 2002 16:22:06 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=mail.python.org)
	by mail.python.org with esmtp (Exim 4.05)
	id 17Wjgz-00035f-00; Mon, 22 Jul 2002 16:22:05 -0400
Received: from exim by mail.python.org with spamc (Exim 4.05)
	id 17Wjgf-00031T-00
	for zodb4-dev@zope.org; Mon, 22 Jul 2002 16:21:45 -0400
Received: from smtp.zope.com ([63.100.190.95])
	by mail.python.org with esmtp (Exim 4.05)
	id 17Wjgf-00031M-00
	for zodb4-dev@zope.org; Mon, 22 Jul 2002 16:21:45 -0400
Received: from slothrop.zope.com ([208.251.201.35])
	by smtp.zope.com (8.11.6/8.11.2) with ESMTP id g6MKLIq00784
	for <zodb4-dev@zope.org>; Mon, 22 Jul 2002 16:21:23 -0400
Message-ID: <15676.26806.917995.531072@slothrop.zope.com>
X-Mailer: VM 7.00 under 21.4 (patch 6) "Common Lisp" XEmacs Lucid
Reply-To: jeremy@alum.mit.edu
X-MailScanner: Found to be clean
X-Spam-Status: No, hits=-2.6 required=5.0
	tests=SUBJ_ENDS_IN_Q_MARK,BODY_PYTHON_ZOPE
	version=2.31
Sender: zodb4-dev-admin@python.org
Errors-To: zodb4-dev-admin@python.org
X-BeenThere: zodb4-dev@python.org
X-Mailman-Version: 2.0.12 (101270)
Precedence: bulk
List-Help: <mailto:zodb4-dev-request@python.org?subject=help>
List-Post: <mailto:zodb4-dev@python.org>
List-Subscribe: <http://mail.python.org/mailman/listinfo/zodb4-dev>,
	<mailto:zodb4-dev-request@python.org?subject=subscribe>
List-Id: Discuss the next generation of the Zope Object Database <zodb4-dev.python.org>
List-Unsubscribe: <http://mail.python.org/mailman/listinfo/zodb4-dev>,
	<mailto:zodb4-dev-request@python.org?subject=unsubscribe>
List-Archive: <http://mail.python.org/pipermail/zodb4-dev/>
From: Jeremy Hylton <jeremy@alum.mit.edu>
To: zodb4-dev@zope.org
Subject: [Zodb4-dev] rename PersistentMapping?
Date: Mon, 22 Jul 2002 16:19:02 -0400

On the persistent SIG list, someone suggested change PersistentMapping
to PersistentDict.  I've advocated this position in the past, and
would like to make the change now.

The old (Zope 2.4) PersistentMapping implementation and design
philosophy was to wrap any sort of non-persistent mapping and make it
persistent.  The code went out of its way to use only __getitem__()
and keys() methods on the underlying mapping.

I've ended up changing that for Zope 3 (and later Zope 2 versions)
because all the code ended up using it as a dict.  It was helpful to
have more dict methods supported, and it simplified the implementation
to use UserDict to provide the mapping implementation.

So I'd suggest renaming the data structure.  I'd be happy to
accommodate users who need a persistent mapping object but can't use a
dict, but I'd like to wait and see if any use cases appear.  I suspect
it isn't really needed.

Jeremy



_______________________________________________
Zodb4-dev mailing list
Zodb4-dev@python.org
http://mail.python.org/mailman/listinfo/zodb4-dev


--bAzps8SX2D--