Almenon / Almenon/AREPL-vscode

different error when opening output than in python

Aperta
#336 3 commenti 1 reazione 0 assegnatari Vedi su GitHub
backend bug
Lingua principale
TypeScript
Stelle
301
Fork
46
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Describe the bug**
In arepl v1.0.24 it gets the following error:
```
Traceback (most recent call last):
line 1, in
io.UnsupportedOperation: not writable
```

**To Reproduce**
```python
print('hi', file=open(2))
```

**Expected behavior**
```
Traceback (most recent call last):
line 1, in
ValueError: Cannot open console output buffer for reading
```

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Other Information (please complete the following information):**
- OS: Windows 10
- Python Version: 3.8.1

**Additional context**
Same error with file 1.
Using sys.stdout will result in a error matching vanilla python as expected.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.