Question About Command line arguments

Tim Chase python.list at tim.thechases.com
Fri Jun 10 17:28:32 EDT 2011


On 06/10/2011 04:00 PM, Benjamin Kaplan wrote:
> On Fri, Jun 10, 2011 at 11:31 AM, Tim Chase
>>   if os.isatty(sys.stdin):  #<-- this check
>
> Any reason for that over sys.stdin.isatty()?

my knowledge of os.isatty() existing and my previous lack of 
knowledge about sys.stdin.isatty()

:)

-tkc






More information about the Python-list mailing list