detect interactivity

Vito 'ZeD' De Tullio zak.mc.kraken at libero.it
Wed Dec 30 08:42:12 EST 2009


Steven D'Aprano wrote:


>> if I run 'python <<< "import sys; print(sys.ps1)"', I get an error.
> 
> Of course you do, because you're not running interactively

Excuse me, why do you say that?

-- 
By ZeD




More information about the Python-list mailing list