You are viewing an older version (9.12.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.12.0 / IPython / core / completer / has_open_quotes

function

IPython.core.completer:has_open_quotes

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

Signature

def   has_open_quotes ( s : str )  →  Union[str, bool]

Summary

Return whether a string has open quotes.

Extended Summary

This simply counts whether the number of quote characters of either type in the string is odd.

Returns

: If there is an open quote, the quote character is returned. Else, return
: False.

Aliases

  • IPython.core.completer.has_open_quotes