Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #7407

Re: Question About Command line arguments

Date 2011-06-10 16:28 -0500
From Tim Chase <python.list@tim.thechases.com>
Subject Re: Question About Command line arguments
References <BANLkTi==QHd+5C=xf+2Re1Mh4V6Hk972hg@mail.gmail.com> <4DF25738.2020704@mrabarnett.plus.com> <BANLkTimHfZK=FsbSs4BOX8dU=mt2bVGV9A@mail.gmail.com> <4DF262F7.1080303@tim.thechases.com> <BANLkTinun6jGOyMUmOgJjSqX6a-+Rr_ozQ@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.110.1307741322.11593.python-list@python.org> (permalink)

Show all headers | View raw


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


Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Question About Command line arguments Tim Chase <python.list@tim.thechases.com> - 2011-06-10 16:28 -0500

csiph-web