Path: csiph.com!usenet.pasdenom.info!gegeweb.org!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.ag!news2.euro.net!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'syntax': 0.03; 'subject:Python': 0.05; 'context': 0.05; 'float': 0.05; 'needed,': 0.05; 'interpreted': 0.07; 'lines.': 0.07; 'null,': 0.07; 'practice,': 0.07; 'problem?': 0.07; 'python': 0.09; 'errors,': 0.09; 'none.': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr :python-list': 0.10; "wouldn't": 0.11; 'accordingly,': 0.16; 'dummy': 0.16; 'err...': 0.16; 'string': 0.17; 'variables': 0.17; 'variable': 0.20; 'define': 0.20; 'written': 0.20; 'trying': 0.21; 'init': 0.22; 'cc:no real name:2**0': 0.24; 'cc:2**1': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'cc:addr:gmail.com': 0.27; 'language.': 0.27; 'question': 0.27; 'loop,': 0.29; 'unlikely': 0.29; 'source': 0.29; 'probably': 0.29; "i'm": 0.29; 'code': 0.31; 'point': 0.31; 'int': 0.33; 'received:google.com': 0.34; 'doing': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'wanted': 0.36; 'thank': 0.36; 'moment': 0.37; 'received:209': 0.37; 'received:209.85.216': 0.37; 'subject:: ': 0.38; 'performance': 0.39; 'think': 0.40; 'your': 0.60; 'from:no real name:2**0': 0.60; 'you.': 0.61; 'further': 0.61; 'excited': 0.63; 'ever': 0.63; 'offer': 0.65; 'malicious': 0.84 X-Received: by 10.49.81.72 with SMTP id y8mr712773qex.42.1361745801644; Sun, 24 Feb 2013 14:43:21 -0800 (PST) Newsgroups: comp.lang.python Date: Sun, 24 Feb 2013 14:43:21 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=77.98.108.31; posting-account=KNmrtAoAAAD-o0n7P5clulJjssENqvZt References: <5127848B.1060004@gmail.com> <928d2cf7-728b-4f35-b8c9-4c9b958507e5@googlegroups.com> <8eadd52c-d533-4333-8c7f-7bf3a6d7b046@googlegroups.com> <9p1ii899tkalvfd1cl7sneoqa9t1cqh4oj@invalid.netcom.com> <5129482F.3080402@gmail.com> <512a5199$0$29998$c3e8da3$5496439d@news.astraweb.com> <5a3bf25b-a08b-4084-a940-e1fd05a1045d@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 77.98.108.31 MIME-Version: 1.0 Subject: Re: Python Newbie From: piterrr.dolinski@gmail.com To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list , piterrr.dolinski@gmail.com 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: , Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361745810 news.xs4all.nl 6896 [2001:888:2000:d::a6]:33419 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39809 Josh, Not thank you for your malicious post. I think you are missing the point here. My source code was just a dummy to offer context for the question I wanted to ask. Further down the line, if I ever feel I don't need to pseudo-declare variables I will stop doing it. But for the moment I am trying to imitate familiar ground. My code as written has no syntax errors, so what's the problem? It is highly unlikely you will ever read any of my Python code - no need to get excited over a few of my lines. And you don't need to answer questions which were not posed, thank you. I wanted Python to register what type of variable I'm after. So I init my vars accordingly, int might be 0, float 0.0 and string with null, err... None. In practice, I wouldn't define an intX_asString var, I would do "str (num)" every time a string representation is needed, provided it isn't a loop, as in that context the expression would probably negatively impact performance in an interpreted language. Peter