Path: csiph.com!usenet.pasdenom.info!goblin1!goblin2!goblin.stu.neva.ru!newsfeed1.swip.net!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!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; 'python.': 0.02; 'resulting': 0.04; 'syntax': 0.04; 'explicitly': 0.05; 'subject:Python': 0.06; 'cents': 0.07; 'float': 0.07; 'parser': 0.07; 'converts': 0.09; 'data:': 0.09; 'mixed': 0.09; 'to)': 0.09; 'trailing': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'language.': 0.14; "wouldn't": 0.14; 'brackets.': 0.16; 'cc:name:python list': 0.16; 'comma': 0.16; 'evaluating': 0.16; 'example)': 0.16; 'personally,': 0.16; 'scripts.': 0.16; 'subject:user': 0.16; 'toolbox': 0.16; 'language': 0.16; 'bit': 0.19; 'thoughts': 0.19; 'value.': 0.19; 'select': 0.22; 'cc:addr:python.org': 0.22; 'error': 0.23; 'integer': 0.24; 'versions': 0.24; '(or': 0.24; 'environment': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'first,': 0.26; 'gets': 0.27; 'header:In- Reply-To:1': 0.27; 'point': 0.28; 'evaluation': 0.30; 'statement': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; '(unless': 0.31; 'cgi': 0.31; 'perl': 0.31; 'anyone': 0.31; 'languages': 0.32; 'stuff': 0.32; 'another': 0.32; 'everyone': 0.33; 'bugs': 0.33; "i'd": 0.34; 'could': 0.34; 'agree': 0.35; 'tool': 0.35; 'convert': 0.35; 'no,': 0.35; 'one,': 0.35; 'but': 0.35; 'received:google.com': 0.35; "he's": 0.36; 'useful': 0.36; 'subject:New': 0.37; 'two': 0.37; 'list': 0.37; 'level': 0.37; 'work?': 0.38; 'rather': 0.38; 'little': 0.38; 'sure': 0.39; 'either': 0.39; 'subject: / ': 0.60; 'mentioned': 0.61; 'high': 0.63; 'field': 0.63; 'myself': 0.63; 'him,': 0.64; 'more': 0.64; 'worth': 0.66; 'answered,': 0.84; 'late,': 0.84; 'message)': 0.84; 'good,': 0.91; 'washington': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=S4VYcAQWM/q7v4MzAFgsHHLotkCiaAX5f5MubYlMlXU=; b=1JpKTpOBar/gUYTwED2obxhHhzvpkvYVGi/f3z5K1bPQPj3RDRdJdMVU9ZWRaL6zty X0odO3f4LX9JN4KLA3zWDEpxXl5rO6il5Sof0w/LXSGm/tDNS/DrqHl0Te/nkTfzyh9Z 8S0Uh1NCT9gA9oA34SW1H5pjCMR79MPGF3Ag+Oqi2DL3qw7nvPMZi1yODjjrUOu+JDL9 ixxBwt4788+a9uLElWvvZ6luUx8jEar4z1xSVHeae0+pdlc3C/GsZDz+gYDVKkjy9hrf YrfD5H3WBYvBZMvIvCuO67/QOG5Tq8JpwUjhaPb5KWux2xl8cBiBCUW3sPpq5uQqDKFV je3A== MIME-Version: 1.0 X-Received: by 10.180.198.193 with SMTP id je1mr5319637wic.6.1384029210121; Sat, 09 Nov 2013 12:33:30 -0800 (PST) In-Reply-To: <-JadnUirYuhUruPPnZ2dnUVZ8rSdnZ2d@bt.com> References: <-JadnUirYuhUruPPnZ2dnUVZ8rSdnZ2d@bt.com> Date: Sat, 9 Nov 2013 12:33:30 -0800 Subject: Re: New user's initial thoughts / criticisms of Python From: Mark Janssen To: John von Horn Content-Type: text/plain; charset=ISO-8859-1 Cc: Python List 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: 47 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1384029709 news.xs4all.nl 15893 [2001:888:2000:d::a6]:36211 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58964 A little late, but a couple of cents worth more data: > 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)? This has to do with evaluation order, the stuff inside the parens gets evaluated first, resulting in an integer for versions of python less than v3. > 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 only have to give one float value: int1/float(int2). The environment converts it to a floating point operation when either of the two is a float value. (try: 1/2.0, for example) > * No sign of a select .. case statement > > Another useful tool in the programmer's toolbox I agree on this one, though I prefer C's syntax of switch/case. The if/then/elif "ladder" of python is a bit cumbersome, but was chosen to reduce language size -- a value with mixed reviews. > * 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. This one got answered, it has to do with the parser when dealing with parens. > Is everyone happy with the way things are? No, but Python is still the best language. > Could anyone recommend a good, > high level language for CGI work? Not sure if I'm going to be happy with > Perl (ahhh, get him, he's mentioned Perl and is a heretic!) or Python. Personally, I wouldn't recommend Python for web scripts. But I'm biased and am speaking from where I see the field of computer languages heading. MarkJ Tacoma, Washington