Almenon / Almenon/AREPL-vscode

different error when opening output than in python

Offen
#336 3 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
backend bug
Vorherrschende Sprache
TypeScript
Sterne
301
Forks
46
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.