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


Groups > comp.lang.python > #7405 > unrolled thread

Re: Question About Command line arguments

Started byBenjamin Kaplan <benjamin.kaplan@case.edu>
First post2011-06-10 14:00 -0700
Last post2011-06-10 14:00 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Question About Command line arguments Benjamin Kaplan <benjamin.kaplan@case.edu> - 2011-06-10 14:00 -0700

#7405 — Re: Question About Command line arguments

FromBenjamin Kaplan <benjamin.kaplan@case.edu>
Date2011-06-10 14:00 -0700
SubjectRe: Question About Command line arguments
Message-ID<mailman.108.1307739649.11593.python-list@python.org>
On Fri, Jun 10, 2011 at 11:31 AM, Tim Chase
<python.list@tim.thechases.com> wrote:
> On 06/10/2011 12:58 PM, Mark Phillips wrote:
>>
>> How do I write my script so it picks up argument from the
>> output of commands that pipe input into my script?
>
> You can check
>
>  if os.isatty(sys.stdin):  # <-- this check

Any reason for that over sys.stdin.isatty()?

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web