From 1ce6d582c906bbf1cf94f315fd2588a94049260b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20K=C3=B6the?= Date: Fri, 17 Nov 2000 12:54:52 +0000 Subject: [PATCH] added forced method sharing [SVN r8240] --- test_extclass.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test_extclass.py b/test_extclass.py index d9194ffe..4531b405 100644 --- a/test_extclass.py +++ b/test_extclass.py @@ -1,4 +1,5 @@ -r'''// (C) Copyright David Abrahams 2000. Permission to copy, use, modify, sell and +r''' +// (C) Copyright David Abrahams 2000. Permission to copy, use, modify, sell and // distribute this software is granted provided this copyright notice appears // in all copies. This software is provided "as is" without express or implied // warranty, and with no claim as to its suitability for any purpose. @@ -966,6 +967,11 @@ test inheritB2 TypeError: bad operand type(s) for pow() Test operator export to a subclass + + # force method table sharing + >>> class IntDerived1(Int): pass + ... + >>> class IntDerived(Int): ... def __init__(self, i): ... Int.__init__(self, i)