Skip to content

Instantly share code, notes, and snippets.

@jamesls
Created August 11, 2016 21:04
Show Gist options
  • Save jamesls/cd02f21a2dff7729ef3963ab7e46481c to your computer and use it in GitHub Desktop.
Save jamesls/cd02f21a2dff7729ef3963ab7e46481c to your computer and use it in GitHub Desktop.
$ python3 -c 'import sys; print("Seekable:", sys.stdin.seekable())'
Seekable: True
$ echo hello | python3 -c 'import sys; print("Seekable:", sys.stdin.seekable())'
Seekable: False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment