Closed jwilk closed 6 years ago
Rewinding stdin is necessary for persistent mode in Python 2, because the underlying C stdio can cache the EOF status. This happens at least on FreeBSD and OS X.
(This is 100% untested. Sorry!)
Thanks! I've tested it and it works.
Rewinding stdin is necessary for persistent mode in Python 2, because the underlying C stdio can cache the EOF status. This happens at least on FreeBSD and OS X.
(This is 100% untested. Sorry!)