[Zope3-checkins] CVS: Zope3/src/zope/context - __init__.py:1.26

Steve Alexander steve@cat-box.net
Sat, 14 Jun 2003 08:58:17 -0400


Update of /cvs-repository/Zope3/src/zope/context
In directory cvs.zope.org:/tmp/cvs-serv16902/src/zope/context

Modified Files:
	__init__.py 
Log Message:
Added explanatory comment.


=== Zope3/src/zope/context/__init__.py 1.25 => 1.26 ===
--- Zope3/src/zope/context/__init__.py:1.25	Sat Jun 14 08:53:28 2003
+++ Zope3/src/zope/context/__init__.py	Sat Jun 14 08:58:16 2003
@@ -124,8 +124,11 @@
     def __delete__(self, inst):
         self.descriptor.__delete__(inst)
 
+# Make a set of special names that we must avoid touching when making the
+# descriptors of a class context-aware.
 _special_names = ['__module__', '__dict__', '__weakref__', '__doc__']
 _special_names = dict(zip(_special_names, _special_names))
+
 def _context_aware_advice(cls):
     for name, obj in cls.__dict__.items():
         if not (name in _special_names or isinstance(obj, ContextDescriptor)):