Read STDIN as bytes rather than a string

Jason Friedman jason at powerpull.net
Mon Jun 18 19:53:29 EDT 2012


Which leads me to another question ... how can I debug these things?

$ echo 'hello' | python3 -m pdb ~/my-input.py
> /home/jason/my-input.py(2)<module>()
-> import sys
(Pdb) *** NameError: name 'hello' is not defined



More information about the Python-list mailing list