ipython / ipython/ipykernel

Variable explorer displays functions with a leading underscore

Aperta
#1,072 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
734
Fork
412
Merge medio
1g 5h
PR unite (30g)
8

Descrizione

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)

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.