go-python / go-python/gpython

NotImplemented comparison generate TypeError

Đang mở
#102 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
1k
Fork
105
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

TypeError occurs when comparing NotImplemented value from execution result.

### Expected result (cpython)
```python
>>> range(0).__ne__(2) == NotImplemented
True
```

### Actual result
```python
>>> range(0).__ne__(2) == NotImplemented
Traceback (most recent call last):
File "", line 1, in
FIXME line of source goes here
TypeError: "unsupported operand type(s) for ==: 'NotImplementedError' and 'NotImplementedError'"
```

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

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đá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.