Silverback Networks added the comment:

OK, now that I've screwed my thinking cap back on, it's obvious that pdb in the 
example is pulling from stdin. However, that isn't be the case in my original 
problem, so modify the example to:

sample.py:
import sys, pdb
infile = sys.stdin.buffer.read()
pdb.set_trace()

Same error despite nothing being left in stdin's buffer.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22009>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to