[Zope3-checkins] CVS: Zope3/src/zope/app - context.py:1.9
Steve Alexander
steve@cat-box.net
Wed, 11 Jun 2003 04:56:23 -0400
Update of /cvs-repository/Zope3/src/zope/app
In directory cvs.zope.org:/tmp/cvs-serv15392/src/zope/app
Modified Files:
context.py
Log Message:
Give the Zope context wrapper python class slots, so that instances can
be created more quickly.
=== Zope3/src/zope/app/context.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/context.py:1.8 Tue Jun 3 10:20:31 2003
+++ Zope3/src/zope/app/context.py Wed Jun 11 04:56:22 2003
@@ -113,6 +113,7 @@
class Wrapper(BaseWrapper):
"""Zope-specific context wrapper
"""
+ __slots__ = ()
def __reduce_ex__(self, proto=None):
raise PicklingError, "Zope context wrappers cannot be pickled"