This is a development version (latest) and may be unstable.Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython latest / IPython / core / completer / IPCompleter / _is_in_string_or_comment

function

IPython.core.completer:IPCompleter._is_in_string_or_comment

source: /IPython/core/completer.py:2699

Signature

def _is_in_string_or_comment(self, text)

Summary

Determine if the cursor is inside a string or comment. Returns (is_string, is_in_expression) tuple: - is_string: True if in any kind of string - is_in_expression: True if inside an f-string/t-string expression

Aliases

  • IPython.core.completer.IPCompleter._is_in_string_or_comment