Searched refs:getcomments (Results 1 – 10 of 10) sorted by relevance
30 the top of the module (see :func:`inspect.getcomments`).
402 .. function:: getcomments(object)
28 the top of the module (see :func:`inspect.getcomments`).
461 .. function:: getcomments(object)
273 self.assertEqual(inspect.getcomments(mod), '# line 1\n')274 self.assertEqual(inspect.getcomments(mod.StupidGit), '# line 20\n')
584 def getcomments(object): function
84 result = inspect.getdoc(object) or inspect.getcomments(object)
434 self.assertEqual(inspect.getcomments(mod), '# line 1\n')435 self.assertEqual(inspect.getcomments(mod.StupidGit), '# line 20\n')438 self.assertIsNone(inspect.getcomments(co))440 self.assertIsNone(inspect.getcomments(list))
833 def getcomments(object): function
94 result = inspect.getdoc(object) or inspect.getcomments(object)