Home
last modified time | relevance | path

Searched refs:code_context (Results 1 – 4 of 4) sorted by relevance

/third_party/python/Lib/idlelib/
Deditor.py282 self.code_context = None # optionally initialized later below
350 self.code_context = self.CodeContext(self)
352 self.code_context.toggle_code_context_event)
852 if self.code_context is not None:
853 self.code_context.update_highlight_colors()
887 if self.code_context is not None:
888 self.code_context.update_font()
/third_party/python/Lib/
Dinspect.py1640 def __new__(cls, filename, lineno, function, code_context, index, *, positions=None): argument
1641 instance = super().__new__(cls, filename, lineno, function, code_context, index)
1648 self.filename, self.lineno, self.function, self.code_context,
1712 def __new__(cls, frame, filename, lineno, function, code_context, index, *, positions=None): argument
1713 instance = super().__new__(cls, frame, filename, lineno, function, code_context, index)
1721 self.code_context, self.index, self.positions))
/third_party/python/Doc/library/
Dinspect.rst1196 .. attribute:: code_context
1203 The index of the current line being executed in the :attr:`code_context` list.
1235 .. attribute:: code_context
1242 The index of the current line being executed in the :attr:`code_context` list.
1304 ``FrameInfo(frame, filename, lineno, function, code_context, index)``
1319 ``FrameInfo(frame, filename, lineno, function, code_context, index)``
1345 ``FrameInfo(frame, filename, lineno, function, code_context, index)``
1360 ``FrameInfo(frame, filename, lineno, function, code_context, index)``
/third_party/python/Lib/test/
Dtest_inspect.py402 self.assertIn('inspect.stack()', record.code_context[0])
578 self.assertEqual(frame_info.code_context[0], "# line 1\n")
579 self.assertEqual(frame_info.code_context[1], "'A module docstring.'\n")