From 929e6aa3b21c891fe67d82d754ea020cafc96c55 Mon Sep 17 00:00:00 2001 From: Aaron Munger Date: Mon, 11 Mar 2024 11:31:38 -0700 Subject: [PATCH] use repr function to get string representation --- .../getVariableInfo/vscodeGetVariableInfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonFiles/vscode_datascience_helpers/getVariableInfo/vscodeGetVariableInfo.py b/pythonFiles/vscode_datascience_helpers/getVariableInfo/vscodeGetVariableInfo.py index 9ca292ac0cc..a1e0e73bdb8 100644 --- a/pythonFiles/vscode_datascience_helpers/getVariableInfo/vscodeGetVariableInfo.py +++ b/pythonFiles/vscode_datascience_helpers/getVariableInfo/vscodeGetVariableInfo.py @@ -49,7 +49,7 @@ def getValue(variable): original_display = set_pandas_display_options() try: - return truncateString(_VSCODE_builtins.str(variable)) + return truncateString(_VSCODE_builtins.repr(variable)) finally: if original_display: set_pandas_display_options(original_display)