[pypy-svn] pypy default: GetSetProperty's functions are immutable.

alex_gaynor commits-noreply at bitbucket.org
Sat Mar 12 22:35:22 CET 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r42537:462546281356
Date: 2011-03-12 16:35 -0500
http://bitbucket.org/pypy/pypy/changeset/462546281356/

Log:	GetSetProperty's functions are immutable.

diff --git a/pypy/interpreter/typedef.py b/pypy/interpreter/typedef.py
--- a/pypy/interpreter/typedef.py
+++ b/pypy/interpreter/typedef.py
@@ -383,6 +383,8 @@
     return res
 
 class GetSetProperty(Wrappable):
+    _immutable_fields_ = ["fget", "fset", "fdel"]
+
     @specialize.arg(7)
     def __init__(self, fget, fset=None, fdel=None, doc=None,
                  cls=None, use_closure=False, tag=None):


More information about the Pypy-commit mailing list