Read STDIN as bytes rather than a string

Jason Friedman jason at powerpull.net
Tue Jun 19 01:53:29 CEST 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