Python script reading from sys.stdin and debugger
Fillmore
fillmore_remove at hotmail.com
Thu May 19 17:09:52 EDT 2016
Hello PyMasters!
Long story short:
cat myfile.txt | python -m pdb myscript.py
doens't work (pdb hijacking stdin?).
Google indicates that someone has fixed this with named pipes, but, call
me stupid, I don't understand how I need to set up those pipes, how I
need to modify my script and, above all, how I now need to invoke the
program.
Help and suggestions appreciated. I am using Python 3.4 on Cygwin and
Ubuntu.
Thanks
More information about the Python-list
mailing list