02.05.22 22:55, sam.z.e...@gmail.com пише:
```
with open('/dev/tty', 'r+') as file:
name = input('Name: ', infile=file, outfile=file)
print(name)
```
How does it differ from just:
```
file.write('Name: ')
name = file.readline()
```
?
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/python-ideas@python.org/message/I4FOEOKERM4ZS4TINQFJ2AJK4B3ZLE2H/
Code of Conduct: http://python.org/psf/codeofconduct/