02.05.22 22:55, [email protected] пише:
```
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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/I4FOEOKERM4ZS4TINQFJ2AJK4B3ZLE2H/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to