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


Groups > comp.lang.python > #65954

Re: Flag control variable

Date 2014-02-11 11:26 -0800
From Gary Herron <gary.herron@islandtraining.com>
Subject Re: Flag control variable
References <baffb663-4f6d-4580-ac5d-d99b4aaf3c40@googlegroups.com> <5019eb5d-ebda-4417-ab2d-9a58afcdd186@googlegroups.com> <mailman.6693.1392144693.18130.python-list@python.org> <cffe3469-a01c-45b1-9407-72de17e7958c@googlegroups.com> <9881c34f-20f4-43ea-9f9c-e1bd7fec8400@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.6699.1392146784.18130.python-list@python.org> (permalink)

Show all headers | View raw


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

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


Thread

Flag control variable luke.geelen@gmail.com - 2014-02-11 09:29 -0800
  Re: Flag control variable Larry Martell <larry.martell@gmail.com> - 2014-02-11 12:44 -0500
  Re: Flag control variable Peter Otten <__peter__@web.de> - 2014-02-11 18:46 +0100
  Re: Flag control variable luke.geelen@gmail.com - 2014-02-11 10:00 -0800
  Re: Flag control variable luke.geelen@gmail.com - 2014-02-11 10:16 -0800
    Re: Flag control variable Tim Chase <python.list@tim.thechases.com> - 2014-02-11 12:32 -0600
  Re: Flag control variable luke.geelen@gmail.com - 2014-02-11 10:37 -0800
    Re: Flag control variable Tim Chase <python.list@tim.thechases.com> - 2014-02-11 12:51 -0600
    Re: Flag control variable Peter Otten <__peter__@web.de> - 2014-02-11 19:51 +0100
      Re: Flag control variable luke.geelen@gmail.com - 2014-02-11 11:01 -0800
        Re: Flag control variable luke.geelen@gmail.com - 2014-02-11 11:06 -0800
          Re: Flag control variable Gary Herron <gary.herron@islandtraining.com> - 2014-02-11 11:26 -0800
          Re: Flag control variable Tim Chase <python.list@tim.thechases.com> - 2014-02-11 13:28 -0600
            Re: Flag control variable luke.geelen@gmail.com - 2014-02-11 11:54 -0800
              Re: Flag control variable Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-02-11 20:02 +0000
        Re: Flag control variable Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2014-02-11 21:14 +0200
        Re: Flag control variable Gary Herron <gary.herron@islandtraining.com> - 2014-02-11 11:20 -0800
    Re: Flag control variable Gary Herron <gary.herron@islandtraining.com> - 2014-02-11 10:55 -0800
      Re: Flag control variable luke.geelen@gmail.com - 2014-02-11 10:59 -0800
        Re: Flag control variable Gary Herron <gary.herron@islandtraining.com> - 2014-02-11 11:09 -0800
        Re: Flag control variable Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-02-11 19:08 +0000
  Re: Flag control variable luke.geelen@gmail.com - 2014-02-11 11:55 -0800
    Re: Flag control variable Gary Herron <gary.herron@islandtraining.com> - 2014-02-11 12:19 -0800
      Re: Flag control variable luke.geelen@gmail.com - 2014-02-11 13:18 -0800
        Re: Flag control variable Gary Herron <gary.herron@islandtraining.com> - 2014-02-11 15:47 -0800
          Re: Flag control variable luke.geelen@gmail.com - 2014-02-11 21:09 -0800
            Re: Flag control variable Dave Angel <davea@davea.name> - 2014-02-12 00:23 -0500
              Re: Flag control variable luke.geelen@gmail.com - 2014-02-12 07:32 -0800
                Re: Flag control variable Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-02-12 15:42 +0000
                Re: Flag control variable Dave Angel <davea@davea.name> - 2014-02-12 13:51 -0500
            Re: Flag control variable Alain Ketterlin <alain@dpt-info.u-strasbg.fr> - 2014-02-12 17:10 +0100
              Re: Flag control variable luke.geelen@gmail.com - 2014-02-12 09:15 -0800
            Re: Flag control variable Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-02-12 20:46 -0500

csiph-web