Home
last modified time | relevance | path

Searched refs:get_docstring (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_ast.py525 self.assertEqual(ast.get_docstring(node),
529 self.assertEqual(ast.get_docstring(node.body[0]),
533 self.assertEqual(ast.get_docstring(node.body[0]),
537 self.assertEqual(ast.get_docstring(node.body[0]), 'spam\nham')
540 self.assertIsNone(ast.get_docstring(ast.parse('')))
542 self.assertIsNone(ast.get_docstring(node))
544 self.assertIsNone(ast.get_docstring(node))
547 self.assertIsNone(ast.get_docstring(node.body[0]))
549 self.assertIsNone(ast.get_docstring(node.body[0]))
551 self.assertIsNone(ast.get_docstring(node.body[0]))
[all …]
/external/python/cpython3/Misc/NEWS.d/
D3.7.0.rst7 Fix :func:`ast.get_docstring` for a node that lacks a docstring.
D3.5.0b4.rst246 ast.get_docstring() for 'async def' functions.
/external/python/cpython2/Lib/compiler/
Dtransformer.py180 doc = self.get_docstring(nodelist, symbol.file_input)
268 doc = self.get_docstring(nodelist[-1])
298 doc = self.get_docstring(nodelist[-1])
1394 def get_docstring(self, node, n=None): member in Transformer
1400 return self.get_docstring(node[0])
1403 return self.get_docstring(sub)
1408 return self.get_docstring(sub)
1419 return self.get_docstring(node[0])
1421 return self.get_docstring(node[0])
/external/python/cpython2/Demo/parser/
Dexample.py59 def get_docstring(self): member in SuiteInfoBase
/external/python/cpython2/Lib/
Dast.py187 def get_docstring(node, clean=True): function
/external/python/cpython3/Lib/
Dast.py198 def get_docstring(node, clean=True): function
/external/python/cpython2/Lib/test/
Dtest_ast.py474 self.assertEqual(ast.get_docstring(node.body[0]),
/external/python/cpython3/Doc/library/
Dast.rst146 .. function:: get_docstring(node, clean=True)
/external/python/cpython2/Doc/library/
Dast.rst146 .. function:: get_docstring(node, clean=True)