go-python / go-python/gpython

NotImplemented comparison generate TypeError

Aperta
#102 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
1k
Fork
105
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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'"
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.