Crash when RecursionError should be thrown
Aperta
- Lingua principale
- Python
- Stelle
- 16.8k
- Fork
- 4.5k
- Merge medio
- 1g 2h
- PR unite (30g)
- 6
Descrizione
```python
class C():
@property
def x(self):
return self.x
C().x
```
See [here](https://stackoverflow.com/q/62356253/10133797); same if running as a file (main) or from within IPython 7.13.0, in Spyder 4.1.3. Some users reproduced this from within terminal (not myself), as attested in comments in linked SO.
**Update**: these were also reproduced by another user from terminal (and myself with Spyder):
```python
def f(*args):
f(*args)
f() # crash
```
```python
def f():
f()
f() # RecursionError (no crash)
def f(x):
f(x)
f(5) # RecursionError (no crash)
```
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.