File: test_binding.py

package info (click to toggle)
python-extclass 1.2-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 432 kB
  • ctags: 547
  • sloc: ansic: 4,549; python: 134; makefile: 46; sh: 18
file content (15 lines) | stat: -rw-r--r-- 228 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

from ExtensionClass import Base
from MethodObject import Method

class foo(Method):
  def __call__(self,ob,*args,**kw): print 'called', ob, args, kw

class bar(Base):
  hi=foo()

x=bar()
hi=x.hi
print hi
hi(1,2,3,name='spam')