1# Demonstrate alternatives for bindings customization 2# Traditional customization 3from raw.custom import * 4import raw.custom as raw_custom 5 6class ta0 (raw_custom.ta0): 7 def xa0 (self): 8 return 'extend ta0' 9raw_custom.ta0._SetSupersedingClass(ta0) 10 11class tc01 (raw_custom.tc01): 12 def xc01 (self): 13 return 'extend tc01' 14raw_custom.tc01._SetSupersedingClass(tc01) 15 16class tc02 (raw_custom.tc02, ta0): 17 def xc02 (self): 18 return 'extend tc02' 19raw_custom.tc02._SetSupersedingClass(tc02) 20 21# class tc03 left as original 22