%time magic funtion prevents variable assigment when used in function
Abierto
magics
- Lenguaje dominante
- Python
- Estrellas
- 16.8k
- Forks
- 4.5k
- Merge medio
- 1 d 2 h
- PR fusionados (30 d)
- 6
Descripción
I'm using IPython version 7.27. The following code snippet throws a `NameError: name 'variable' is not defined`:
```
def test(msg):
%time variable = msg
print(variable)
test("moin")
```
The bug is similar to #11659 and #11813, but it seems to only occur when used inside a function body.
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.