[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/utilities - session.py:1.4

Stuart Bishop zen at shangri-la.dropbear.id.au
Sun Feb 22 20:03:27 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/interfaces/utilities
In directory cvs.zope.org:/tmp/cvs-serv16490/src/zope/app/interfaces/utilities

Modified Files:
	session.py 
Log Message:
Correct behavior of get()


=== Zope3/src/zope/app/interfaces/utilities/session.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/interfaces/utilities/session.py:1.3	Tue Feb 10 10:16:20 2004
+++ Zope3/src/zope/app/interfaces/utilities/session.py	Sun Feb 22 20:02:55 2004
@@ -22,12 +22,11 @@
 # XXX: These mapping interfaces should probably live somewhere like 
 # zope.interface.common.mapping, but there are already similar but less
 # useful ones defined there.
-_missing = []
 class IReadMapping(Interface):
     ''' Mapping methods for retrieving data '''
     def __getitem__(key): 'Return a value'
     def __contains__(key): 'True if there is a value for key'
-    def get(key, default=_missing):
+    def get(key, default=None):
         'Return a value, or default if key not found'
 
 class IWriteMapping(Interface):




More information about the Zope3-Checkins mailing list