I did not know there was a redirect operator in Python 2, for example here somebody is using it to redirect something to a file. I just knew that there is one in Bash. Is still there such a thing in Python 3?
Asked
Active
Viewed 1,117 times
2 Answers
0
Using the shell redirection this way
python foo_bar.py > file
is still possible with python 3.x as this is not a feature of python itself but this is actually a feature of the shell interpreter in which the python command is run.

Zhormos
- 31
- 5