2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 18:12:43 +00:00

added forced method sharing

[SVN r8240]
This commit is contained in:
Ullrich Köthe
2000-11-17 12:54:52 +00:00
parent 056b0e63fb
commit 1ce6d582c9

View File

@@ -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)