ipython / ipython/ipykernel

Variable explorer displays functions with a leading underscore

Offen
#1,072 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
734
Forks
412
Ø Merge
1 T. 5 Std.
Gemergte PRs (30 T.)
8

Beschreibung

The `inspectVariables` request and the variable explorer panel in the debugger seems to display functions with a leading underscore.

Here's a simple repro

```
def _abc():
return "Hello"

def abc():
return "Hello"
```

In the above code snippet, `_abc` will appear in the "Variables" panel whereas `abc` will not, as demonstrated below

![SCR-20230105-nlp](https://user-images.githubusercontent.com/43826141/210908421-0fc99ca9-6908-4313-9db7-af930fc14256.png)

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.