Skip to content

Commit

Permalink
Removed read protection from lists, dicts, tuples, ints, and floats.
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Simpson committed Dec 21, 2000
1 parent 24e4a22 commit 205caf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zbytecodehacks/VSExec.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,8 @@ def _ReadGuard(ob):
w.__dict__['_ob'] = ob
return w

ReadGuard = bind(_ReadGuard, safetypes=(type(''),))
ReadGuard = bind(_ReadGuard, safetypes=(type(''), type([]), type({}),
type(()), type(0), type(1.0),) )

def RedirectReads():
'''Redirect LOAD_* on objects to methods
Expand Down

0 comments on commit 205caf9

Please sign in to comment.