Skip to content

Instantly share code, notes, and snippets.

@mitsuhiko
Created April 26, 2014 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mitsuhiko/11330202 to your computer and use it in GitHub Desktop.
Save mitsuhiko/11330202 to your computer and use it in GitHub Desktop.
>>> import sys
>>> sys.stdin = sys.stdin.detach()
>>>
>>> input('foo')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: '_io.BufferedReader' object has no attribute 'errors'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment