Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!newsfeed.xs4all.nl!newsfeed1.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.008 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'syntax': 0.04; 'string': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'strings.': 0.09; 'python': 0.11; 'def': 0.12; 'cleanly': 0.16; 'concatenate': 0.16; 'nick': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'sat,': 0.16; 'wrote:': 0.18; '+0000': 0.22; 'error': 0.23; 'skip:e 30': 0.24; 'url:home': 0.24; 'switch': 0.26; 'header:X-Complaints-To:1': 0.27; 'context.': 0.31; 'decimal': 0.31; 'fri,': 0.33; 'maybe': 0.34; 'subject:the': 0.34; "i'd": 0.34; "can't": 0.35; 'next': 0.36; 'charset:us- ascii': 0.36; 'should': 0.36; 'received:76': 0.38; 'depends': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'skip:u 10': 0.60; 'signal': 0.60; 'numbers': 0.61; 'name': 0.63; 'results': 0.69; 'containing': 0.69; 'acts': 0.74; 'subject:Don': 0.91; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Don't feed the troll... Date: Sat, 15 Jun 2013 13:04:38 -0400 Organization: > Bestiaria Support Staff < References: <51b9708b$0$29872$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-249-19-207.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES 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: 71 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371315889 news.xs4all.nl 15987 [2001:888:2000:d::a6]:38029 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48321 On Sat, 15 Jun 2013 06:31:56 +0000 (UTC), Denis McMahon declaimed the following in gmane.comp.python.general: > On Fri, 14 Jun 2013 12:32:56 +0300, Nick the Gr33k wrote: > > > I'mm not trolling man, i just have hard time understanding why numbers > > acts as strings. > > It depends on the context. Maybe the OP should give up on Python and switch to Regina/Rexx... -=-=-=-=-=- /* */ numint = 123 /* a "number" */ numstr = def /* unknown variable? */ strstr = "abc" /* a string containing alphabetics */ strint = "456" /* a string containing decimal digits */ signal on syntax name next1 say "Adding strstr and numint" say strstr + numint next1: signal on syntax name next2 say "Adding strstr and strint" say strstr + strint next2: signal on syntax name next3 say "Adding numint and strint" say numint + strint next3: signal on syntax name next4 say "Adding numstr and numint" say numstr + numint next4: say "Concatenate numint and strstr" say numint || strstr say "Concatenate strint and numint" say strint || numint say "Concatenate numstr and strint" say numstr || strint say "Concatenate numstr and numint" say numstr || numint -=-=-=-=-=- E:\UserData\Wulfraed\MYDOCU~1>rexx t.rx Adding strstr and numint Adding strstr and strint Adding numint and strint 579 Adding numstr and numint Concatenate numint and strstr 123abc Concatenate strint and numint 456123 Concatenate numstr and strint DEF456 Concatenate numstr and numint DEF123 E:\UserData\Wulfraed\MYDOCU~1> {Pity SYNTAX error can't be trapped with a CALL, i'd have been able to cleanly report results and return to the next statement} -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/