Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'lines.': 0.07; 'override': 0.07; 'python': 0.09; "';'": 0.09; 'bool': 0.09; 'compilers.': 0.09; 'dumps': 0.09; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'received:184.172': 0.09; 'received:gator410.hostgator.com': 0.09; '~ethan~': 0.09; '(c#,': 0.16; '(something': 0.16; 'contributors': 0.16; 'ignores': 0.16; 'long-time': 0.16; "someone's": 0.16; 'wrote:': 0.17; 'widely': 0.17; 'variable': 0.20; 'operations.': 0.22; 'required.': 0.22; 'programming': 0.23; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'language.': 0.27; 'newer': 0.27; 'surprised': 0.29; "i'm": 0.29; 'code': 0.31; 'could': 0.32; 'impression': 0.33; 'anyone': 0.33; 'to:addr:python-list': 0.33; 'languages': 0.33; 'needed': 0.35; 'community': 0.35; 'really': 0.36; 'ability': 0.36; 'but': 0.36; 'others.': 0.36; 'programmers': 0.36; 'bad': 0.37; 'does': 0.37; 'subject:: ': 0.38; 'object': 0.38; 'things': 0.38; 'nothing': 0.38; 'to:addr:python.org': 0.39; 'where': 0.40; 'header:Received:5': 0.40; 'end': 0.40; 'your': 0.60; 'most': 0.61; 'first': 0.61; 'back': 0.62; 'different': 0.63; 'email addr:gmail.com': 0.63; 'love': 0.63; 'more': 0.63; 'here': 0.65; 'cast': 0.65; 'received:69.56': 0.65; 'day': 0.73; 'visually': 0.84; 'received:gateway02.websitewelcome.com': 0.91; 'widespread': 0.91 Date: Sun, 24 Feb 2013 12:34:37 -0800 From: Ethan Furman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Python Newbie References: <5127848B.1060004@gmail.com> <928d2cf7-728b-4f35-b8c9-4c9b958507e5@googlegroups.com> <61471a01-ee6e-4bc6-bd08-8696a31ec1eb@googlegroups.com> In-Reply-To: <61471a01-ee6e-4bc6-bd08-8696a31ec1eb@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator410.hostgator.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stoneleaf.us X-BWhitelist: yes X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([173.12.184.235]) [173.12.184.235]:59582 X-Source-Auth: ethan+stoneleaf.us X-Email-Count: 1 X-Source-Cap: dG9idWs7dG9idWs7Z2F0b3I0MTAuaG9zdGdhdG9yLmNvbQ== 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361738481 news.xs4all.nl 6853 [2001:888:2000:d::a6]:49834 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39787 On 02/24/2013 11:40 AM, piterrr.dolinski@gmail.com wrote: > Back in the day when C was king, or take many newer long established languages (C#, Java), the use of () has been widespread and mandated by the compilers. I have never heard anyone moan about the requirement to use parentheses. Now come Python in which parens are optional, and all of a sudden they are considered bad and apparently widely abandoned. Do you really not see that code with parens is much more pleasing visually? I could understand someone's reluctance to use parens if they are very new to programming and Pythons is their first language. But my impression here is that most group contributors are long-time programmers and have long used () where they are required. Again, I'm really surprised the community as a whole ignores the programming "heritage" and dumps the parens in a heartbeat. Python will also allow you to have ';' at the end of your lines. It does nothing for you, but perhaps you also find that "visually pleasing"? I find () to be four extra keystrokes, not visually pleasing, and needed only to override order of operations. One of the things I love about Python is its ability to get out of the way and let me work: - no variable declarations, just use 'em - no type declarations, just use 'em - no need to remember what's an object and what's not -- everything is an object - no need to cast to bool as everything has a truthy/falsey (something vs nothing) value From a different email you said PyScripter was showing you all the dunder methods? You might want to try one of the others. -- ~Ethan~