Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'python,': 0.02; 'from:addr:yahoo.co.uk': 0.04; 'explicitly': 0.05; 'subject:Python': 0.06; 'float': 0.07; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'tismer': 0.09; 'to)': 0.09; 'trailing': 0.09; 'python': 0.11; 'wrote': 0.14; '3.3,': 0.16; 'brackets.': 0.16; 'comma': 0.16; 'evaluating': 0.16; 'everybody.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'recipes': 0.16; 'set,': 0.16; 'subject:user': 0.16; 'toolbox': 0.16; 'tuple': 0.16; 'tutorials.': 0.16; 'vastly': 0.16; 'you",': 0.16; 'language': 0.16; 'wrote:': 0.18; 'everyone,': 0.19; 'pointed': 0.19; 'thoughts': 0.19; 'work,': 0.20; 'select': 0.22; 'programming': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'integer': 0.24; 'unicode': 0.24; 'initial': 0.24; '(or': 0.24; "i've": 0.25; 'shown': 0.26; 'second': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'leave': 0.29; 'words': 0.29; "doesn't": 0.30; 'needed.': 0.30; 'statement': 0.30; 'strongly': 0.30; 'along': 0.30; "i'm": 0.30; 'usually': 0.31; '(unless': 0.31; 'cgi': 0.31; 'division': 0.31; 'loads': 0.31; 'perl': 0.31; 'sets.': 0.31; 'anyone': 0.31; 'another': 0.32; 'everyone': 0.33; 'bugs': 0.33; 'guess': 0.33; 'comment': 0.34; "i'd": 0.34; 'could': 0.34; 'knowledge': 0.35; "can't": 0.35; 'classes': 0.35; 'tool': 0.35; 'convert': 0.35; 'but': 0.35; 'there': 0.35; "he's": 0.36; 'surely': 0.36; 'done': 0.36; 'useful': 0.36; "i'll": 0.36; 'possible': 0.36; 'should': 0.36; 'behind': 0.37; 'subject:New': 0.37; 'list': 0.37; 'level': 0.37; 'christian': 0.38; 'thank': 0.38; 'depends': 0.38; 'filled': 0.38; 'work?': 0.38; 'skip:[ 10': 0.38; 'to:addr:python-list': 0.38; 'von': 0.38; 'rather': 0.38; 'little': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'changed': 0.39; 'received:org': 0.40; 'above,': 0.60; 'improved': 0.60; 'subject: / ': 0.60; 'mentioned': 0.61; 'world.': 0.61; 'john': 0.61; 'simply': 0.61; "you're": 0.61; 'you.': 0.62; 'show': 0.63; 'high': 0.63; 'kind': 0.63; 'myself': 0.63; 'him,': 0.64; 'love': 0.65; 'youtube': 0.65; 'believe': 0.68; 'yes': 0.68; 'experts.': 0.68; 'past.': 0.68; 'prompt': 0.68; 'online': 0.71; 'safe': 0.72; 'therefore': 0.72; 'sweet': 0.74; 'forth': 0.81; 'confusing': 0.84; 'message)': 0.84; 'suits': 0.84; 'thy': 0.84; 'zen': 0.84; 'good,': 0.91; 'hate': 0.91; 'reasoning': 0.91; 'outcome': 0.93; 'mr.': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: New user's initial thoughts / criticisms of Python Date: Sat, 09 Nov 2013 13:41:49 +0000 References: <-JadnUirYuhUruPPnZ2dnUVZ8rSdnZ2d@bt.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-78-147-17-57.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 In-Reply-To: <-JadnUirYuhUruPPnZ2dnUVZ8rSdnZ2d@bt.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: , Newsgroups: comp.lang.python Message-ID: Lines: 97 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1384004532 news.xs4all.nl 16002 [2001:888:2000:d::a6]:57515 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58937 On 09/11/2013 13:08, John von Horn wrote: > Hi Everyone, > > I'm Mr. Noobie here, I've just started easing into Python (2.7.4) and am > enjoying working along to some youtube tutorials. I've done a little > programming in the past. If it's possible I'd strongly recommend Python 3.3, there's lots of goodies in there like vastly improved unicode handling. > > I've just got a few thoughts I'd like to share and ask about: > > * Why not allow floater=float(int1/int2) - rather than floater=float > (int1)/float(int2)? Surely this depends on the outcome that you actually want or am I missing the obvious? Also note that integer division has been changed in Python 3. > > Give me a float (or an error message) from evaluating everything in the > brackets. Don't make me explicitly convert everything myself (unless I > want to) You usually have to in Python, it's down to strong typing. > > * No sign of a select .. case statement Loads of recipes online for this, ranging from specialised classes to my favourite which is spelt "dict". > > Another useful tool in the programmer's toolbox > > Select DayofWeek > > case "mon" > > ... > > end select > > * Call me pedantic by why do we need a trailing comma for a list of one > item? Keep it intuitive and allow lstShopping=[] or ["Bread"] or > ["Bread", "Milk","Hot Chocolate"] I don't like ["Bread",]. It bugs me. It should as it's not needed. I'd guess you're confusing a tuple of one item with a list of one item? > > Just some initial thoughts. I just wanted to know the reasoning behind > the above, be shown the shortcomings of my ignorance, pointed in the > right direction. Let the High Priests of Python come forth and speak wise > words and show me the ignorance of thy ways. Let my cup be filled to > overflowing with your kind knowledge and wisdom. Try "import this" from the Python interactive prompt for the Zen of Python. > > Is everyone happy with the way things are? Yes thank you. > Could anyone recommend a good, > high level language for CGI work? I can't comment as to whether or not Python is suitable for CGI work, I'll leave that to the experts. > Not sure if I'm going to be happy with > Perl (ahhh, get him, he's mentioned Perl and is a heretic!) or Python. I > would very much value any constructive criticism or insights. Fair enough, Python isn't for everybody. I love it simply because it suits my mind set, hence I have www.python.org bookmarked as "Home Sweet Home". I therefore believe it's safe to say that others hate it as it doesn't suit their mind sets. > > And a "thank you", ["sirs","madams"] but pls, not just ["sirs",] Reread what I wrote above :) > > JvH > And check out my signature!!! -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence