Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #66048
| Path | csiph.com!usenet.pasdenom.info!goblin1!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.003 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'append': 0.09; 'check,': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'wrote': 0.14; 'anyway': 0.14; 'language.': 0.14; 'indexerror:': 0.16; 'programmer,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'spacing': 0.16; 'subject:variable': 0.16; 'index': 0.16; 'prevent': 0.16; 'language': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'thanks.': 0.20; '>>>': 0.22; 'header:User-Agent:1': 0.23; '---': 0.24; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'sets': 0.30; 'getting': 0.31; "skip:' 10": 0.31; 'tool': 0.35; 'test': 0.35; 'but': 0.35; 'there': 0.35; 'list': 0.37; 'to:addr:python- list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'remove': 0.60; 'dave': 0.60; 'free': 0.61; 'viruses': 0.61; 'range': 0.61; 'course': 0.61; "you're": 0.61; 'email addr:gmail.com': 0.63; 'protection': 0.63; 'our': 0.64; 'antivirus': 0.68; 'received:2': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
| Subject | Re: Flag control variable |
| Date | Wed, 12 Feb 2014 15:42:37 +0000 |
| References | <baffb663-4f6d-4580-ac5d-d99b4aaf3c40@googlegroups.com> <d5c035dd-1f66-4383-b4e2-079e539c267c@googlegroups.com> <mailman.6703.1392149965.18130.python-list@python.org> <a06b09f2-b233-46a1-a7d5-048511adb753@googlegroups.com> <mailman.6704.1392162473.18130.python-list@python.org> <68f27949-e613-476b-9227-5a86e4f4df91@googlegroups.com> <mailman.6727.1392182391.18130.python-list@python.org> <9335871e-e4a5-4bdf-92de-72ac7f20a722@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | host-2-98-192-220.as13285.net |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
| In-Reply-To | <9335871e-e4a5-4bdf-92de-72ac7f20a722@googlegroups.com> |
| X-Antivirus | avast! (VPS 140212-0, 12/02/2014), Outbound message |
| X-Antivirus-Status | Clean |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.6761.1392219909.18130.python-list@python.org> (permalink) |
| Lines | 54 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1392219909 news.xs4all.nl 2849 [2001:888:2000:d::a6]:57532 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:66048 |
Show key headers only | View raw
On 12/02/2014 15:32, luke.geelen@gmail.com wrote:
> Op woensdag 12 februari 2014 06:23:14 UTC+1 schreef Dave Angel:
>> luke.geelen@gmail.com Wrote in message:
>>
>>> Can I make it that if
>>
>>> C = int(sys.argv[3])
>>
>>> But when I only enter 2 argumentvariable it sets c automaticly to 0 or 1
>>
>>>
>>
>>
>>
>> Why do you ask for 'automatically'? You're the programmer, write
>>
>> the test in the code.
>>
>>
>>
>> if len (sys.argv) == 3:
>>
>> sys.argv. append ("0")
>>
>>
>>
>> But of course there are lots of other things you need to check,
>>
>> so consider all of them at the same time.
>>
>>
>>
>> --
>>
>> DaveA
>
> then i keep getting IndexError: list index out of range
> anyway to prevent it and just set the value to 0?
>
Please find a semi-decent tool to use or always follow the instructions
for how to remove the double line spacing when using gg, thanks.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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