summaryrefslogtreecommitdiff
path: root/Lib/dos-8x3/bastion.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-08-26 18:33:32 +0000
committerGuido van Rossum <guido@python.org>1996-08-26 18:33:32 +0000
commita8763e54ff25a226e50b281671189382fd3c324c (patch)
treebea9ea9a9f5bb33cbdfef607b4a8ce5e6197e98b /Lib/dos-8x3/bastion.py
parent52a42fe9e706fb51ec608571c2b60e7694a5d0a2 (diff)
downloadcpython-git-a8763e54ff25a226e50b281671189382fd3c324c.tar.gz
Another batch of updates...
Diffstat (limited to 'Lib/dos-8x3/bastion.py')
-rwxr-xr-xLib/dos-8x3/bastion.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/Lib/dos-8x3/bastion.py b/Lib/dos-8x3/bastion.py
index 7ddd93e3cc..cb54be9159 100755
--- a/Lib/dos-8x3/bastion.py
+++ b/Lib/dos-8x3/bastion.py
@@ -141,6 +141,7 @@ def _test():
return self.sum
o = Original()
b = Bastion(o)
+ testcode = """if 1:
b.add(81)
b.add(18)
print "b.total() =", b.total()
@@ -156,6 +157,20 @@ def _test():
print "inaccessible"
else:
print "accessible"
+ try:
+ print "b._get_.func_defaults =", b._get_.func_defaults,
+ except:
+ print "inaccessible"
+ else:
+ print "accessible"
+ \n"""
+ exec testcode
+ print '='*20, "Using rexec:", '='*20
+ import rexec
+ r = rexec.RExec()
+ m = r.add_module('__main__')
+ m.b = b
+ r.r_exec(testcode)
if __name__ == '__main__':