Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.134.4.91.MISMATCH!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'syntax': 0.03; 'subject:Python': 0.05; 'python': 0.09; '"if': 0.09; 'eat': 0.09; 'language': 0.14; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'indent': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16; 'sharp': 0.16; 'syntax.': 0.16; 'tabs': 0.16; 'wrote:': 0.17; "shouldn't": 0.17; 'tend': 0.17; 'windows': 0.19; '(not': 0.20; 'addition,': 0.21; 'error.': 0.21; 'either.': 0.22; 'pascal': 0.22; 'statement': 0.23; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'this?': 0.28; 'initial': 0.28; 'editors': 0.29; 'indentation': 0.29; 'spaces': 0.29; 'starts': 0.29; 'source': 0.29; 'code': 0.31; 'file': 0.32; 'received:84': 0.32; 'comments': 0.33; 'date.': 0.33; 'impression': 0.33; 'to:addr:python-list': 0.33; 'another': 0.33; "can't": 0.34; 'open': 0.35; 'but': 0.36; 'problems': 0.36; 'editor': 0.37; 'rather': 0.37; 'subject:: ': 0.38; 'easier': 0.38; 'fact': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'easily': 0.39; 'space': 0.39; 'where': 0.40; 'received:192.168': 0.40; 'think': 0.40; 'most': 0.61; 'different': 0.63; 'more': 0.63; 'results': 0.65; 'due': 0.66; 'levels': 0.66; 'header:Reply-To:1': 0.68; 'reply-to:no real name:2**0': 0.72; 'matters.': 0.84; 'nerves': 0.84; 'reply- to:addr:python.org': 0.84; 'frustrating': 0.91 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.0 cv=HO4d4PRv c=1 sm=1 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=_vX2mLoUpDQA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=I6uluiCgGVEA:10 a=QaruxWp0KZ339UrVbM8A:9 a=wPNLvfGTeEIA:10 a=0nF1XD0wxitMEM03M9B4ZQ==:117 X-AUTH: mrabarnett:2500 Date: Thu, 21 Feb 2013 21:58:22 +0000 From: MRAB User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Python Newbie References: In-Reply-To: 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 Reply-To: python-list@python.org 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: 35 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361483903 news.xs4all.nl 6908 [2001:888:2000:d::a6]:60912 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39467 On 2013-02-21 21:26, Piterrr wrote: > Hi folks. I am a long time C sharp dev, just learning Python now due > to job requirements. My initial impression is that Python has got to > be the most ambiguous and vague language I have seen to date. I have > major issues with the fact that white space matters. How do you deal > with this? For example, you open a source file in different editors > and the indentation levels change even though i only have spaces, no > tabs (compare Windows Notepad and Notepad++). Which editor do you > trust? In addition, code is difficult to read because you cannot lay > it out in easily discernable blocks. For example, I always tend to > indent a full 'if' statement block so that it is easier to see where > the if block starts and ends. Can't do that in Python. What is even > more frustrating is that Python is inconsistent with its syntax. For > example, when I write "if (myVariable != 0):" then this is OK but > "for (i in intAry):" results in syntax error. Apparently Python has > problems with my use of parentheses. How retarded. I think I will > rather find another job than eat my nerves with Python. Any comments > on this before I quit my job? > Python isn't C#. It has a different syntax. Pascal isn't C# either. Pascal would accept: if (myVariable <> 0) then ... and reject: for (i := 0 to 9) do ... As for the indentation, it shouldn't change if you're using only spaces (not unless you're using a proportional font!).