Almenon / Almenon/AREPL-vscode

different error when opening output than in python

オープン
#336 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る
backend bug
主要言語
TypeScript
スター
301
フォーク
46
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。