New submission from Alex <[email protected]>:
Hi.
This bug I've found is about the redirect, you know, to redirect the standard
input/output stream. It's not really a bug, you can think of it as a feature.
The code is like this:
import sys
sys.stdout = open('redirect.txt','w')
print('hello world!') #Something you want to print
after you run it in the IDLE:
==================== RESTART: XXXXXXXXXXXXXXX.py===================
>>> print(1 + 1)
>>>
You will find you can't output as normal.
The version I choose for this issue is Python 3.8.0b4. However, I find this
problem is also exist in Python 3.7.5.
How to repair it?
----------
assignee: terry.reedy
components: IDLE
messages: 356742
nosy: Alex-Python-Programmer, terry.reedy
priority: normal
severity: normal
status: open
title: The redirect
type: behavior
versions: Python 3.8
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue38819>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com