[Zope-Checkins] CVS: Zope3/lib/python/Zope/ContextWrapper - wrapper.c:1.12.2.16
Fred L. Drake, Jr.
fdrake@acm.org
Thu, 6 Jun 2002 12:52:07 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/ContextWrapper
In directory cvs.zope.org:/tmp/cvs-serv23219
Modified Files:
Tag: Zope-3x-branch
wrapper.c
Log Message:
Add a comment explaining a particular behavior.
=== Zope3/lib/python/Zope/ContextWrapper/wrapper.c 1.12.2.15 => 1.12.2.16 ===
goto finally;
if (wrapper->wrap_context != context) {
+ /* XXX This might be a little weird: if a subclass initializes
+ * XXX wrap_context, we end up overwriting it, and clearing
+ * XXX it if this __init__ is only called with one arg.
+ */
temp = wrapper->wrap_context;
Py_XINCREF(context);
wrapper->wrap_context = context;