ipython / ipython/ipython

Crash when RecursionError should be thrown

Đang mở
#12,387 8 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
16.8k
Fork
4.5k
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
6

Mô tả

```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)
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.