PyXR

c:\python24\lib \ test \ pyclbr_input.py



0001 """Test cases for test_pyclbr.py"""
0002 
0003 def f(): pass
0004 
0005 class Other(object):
0006     @classmethod
0007     def foo(c): pass
0008 
0009     def om(self): pass
0010 
0011 class B (object):
0012     def bm(self): pass
0013 
0014 class C (B):
0015     foo = Other().foo
0016     om = Other.om
0017 
0018     d = 10
0019 
0020     # XXX: This causes test_pyclbr.py to fail, but only because the
0021     #      introspection-based is_method() code in the test can't
0022     #      distinguish between this and a geniune method function like m().
0023     #      The pyclbr.py module gets this right as it parses the text.
0024     #
0025     #f = f
0026 
0027     def m(self): pass
0028 
0029     @staticmethod
0030     def sm(self): pass
0031 
0032     @classmethod
0033     def cm(self): pass
0034 

Generated by PyXR 0.9.4
SourceForge.net Logo