summaryrefslogtreecommitdiff
path: root/pypers/super/ex2.py
diff options
context:
space:
mode:
authormichele.simionato <devnull@localhost>2007-12-02 11:13:11 +0000
committermichele.simionato <devnull@localhost>2007-12-02 11:13:11 +0000
commit20ce686b0193d67ea56823a30551140f88b3aee1 (patch)
tree76015e7e4dc0b000bd857a2bdba6fb7976ac29a7 /pypers/super/ex2.py
parentf08f40335ad7f0ac961f25dabaaed34c4d4bcc44 (diff)
downloadmicheles-20ce686b0193d67ea56823a30551140f88b3aee1.tar.gz
Commited all py papers into Google code
Diffstat (limited to 'pypers/super/ex2.py')
-rwxr-xr-xpypers/super/ex2.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/pypers/super/ex2.py b/pypers/super/ex2.py
new file mode 100755
index 0000000..602631f
--- /dev/null
+++ b/pypers/super/ex2.py
@@ -0,0 +1,12 @@
+# ex2.py# fixed in 2.4
+
+ class C(object):
+ pass
+
+ C.s = super(C)
+
+ if __name__ == "__main__":
+ import doctest, __main__
+ doctest.testmod(__main__)
+
+