ipython / ipython/ipykernel

Error when using inspect.stack()

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

Descrizione

After ipykernel 6.21.0 update, the output of "inspect.stack()[1][0].f_globals" has "__file__" content that did not exist before(=ipykernel 6.20.2), causing errors when used in other methods. What is the reason and when will it be fixed?

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Reproduce the reported difference between ipykernel 6.21.0 and 6.20.2 using inspect.stack()[1][0].f_globals["__file__"]. Trace where the kernel sets that frame global and compare the resulting value across versions. Done means identifying the regression and confirming a fix with a focused reproduction or test.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
jupyter, python
Ambito
tooling
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.