[Zope-CVS] CVS: Packages/ContextWrapper - wrapper.c:1.11

Fred Drake Jr fdrake@acm.org
Fri, 16 Nov 2001 16:41:52 -0500


Update of /cvs-repository/Packages/ContextWrapper
In directory cvs.zope.org:/tmp/cvs-serv13028

Modified Files:
	wrapper.c 
Log Message:
Add comments briefly explaining why we do not support the numeric methods.

=== Packages/ContextWrapper/wrapper.c 1.10 => 1.11 ===
 };
 
+/*
+ * Note that the numeric methods are not supported.  This is primarily
+ * because of the way coercion-less operations are performed with
+ * new-style numbers; since we can't tell which side of the operation
+ * is 'self', we can't ensure we'd unwrap the right thing to perform
+ * the actual operation.  We also can't afford to just unwrap both
+ * sides the way weakrefs do, since we don't know what semantics will
+ * be associated with the wrapper itself.
+ */
+
 static PyTypeObject
 WrapperType = {
     PyObject_HEAD_INIT(NULL)