[Zope3-checkins] CVS: Zope3/lib/python/Persistence - Function.py:1.9
Jeremy Hylton
jeremy@zope.com
Wed, 24 Jul 2002 18:16:53 -0400
Update of /cvs-repository/Zope3/lib/python/Persistence
In directory cvs.zope.org:/tmp/cvs-serv20640
Modified Files:
Function.py
Log Message:
Add comment.
=== Zope3/lib/python/Persistence/Function.py 1.8 => 1.9 ===
_STORE_GLOBAL = chr(dis.opname.index("STORE_GLOBAL"))
def has_side_effect(func):
+ # will find this as an opcode or oparg
return _STORE_GLOBAL in func.func_code.co_code
class CodeWrapper: