Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'arguments': 0.09; 'received:67.192': 0.09; 'received:67.192.241': 0.09; 'received:dfw.emailsrvr.com': 0.09; 'typed': 0.09; 'runs': 0.10; 'python': 0.11; 'question.': 0.14; 'subject:variable': 0.16; 'wrote:': 0.18; 'command': 0.22; 'shell': 0.22; 'header:User- Agent:1': 0.23; 'received:emailsrvr.com': 0.24; 'received:(smtp server)': 0.26; 'header:In-Reply-To:1': 0.27; 'rest': 0.29; 'am,': 0.29; 'gary': 0.31; 'this.': 0.32; 'there': 0.35; 'really': 0.36; 'should': 0.36; 'so,': 0.37; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'tell': 0.60; 'email addr:gmail.com': 0.63; 'characters,': 0.84 X-Virus-Scanned: OK Date: Tue, 11 Feb 2014 11:26:06 -0800 From: Gary Herron User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Flag control variable References: <5019eb5d-ebda-4417-ab2d-9a58afcdd186@googlegroups.com> <9881c34f-20f4-43ea-9f9c-e1bd7fec8400@googlegroups.com> In-Reply-To: <9881c34f-20f4-43ea-9f9c-e1bd7fec8400@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392146784 news.xs4all.nl 2924 [2001:888:2000:d::a6]:59314 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65954 On 02/11/2014 11:06 AM, luke.geelen@gmail.com wrote: > > i found it int(sys.argv[2]) should be sys.argv[2] > > is there a way i can do python ./script.py 3 * 3 instead of python ./script 3 \* 3 ? That's not really a Python question. The shell (as it's called) which interprets your typed command and runs Python with the rest of the command line arguments is in control of this. If you can find a way to tell your shell to not expand '*' characters, or find a shell that does not do so, then yes, you can dispense with the back-slash. Gary Herron