Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news1.tnib.de!feed.news.tnib.de!news.tnib.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'subject:Python': 0.05; 'statically': 0.07; 'python': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; "they've": 0.09; 'typed': 0.09; 'downside': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'sadly': 0.16; 'variable.': 0.16; 'wrote:': 0.17; 'integer': 0.17; 'code,': 0.18; 'example': 0.23; 'testing': 0.24; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; '3.0': 0.27; 'header:X -Complaints-To:1': 0.28; 'unlike': 0.30; 'waste': 0.30; 'from:addr:yahoo.co.uk': 0.32; 'to:addr:python-list': 0.33; 'languages': 0.33; 'received:org': 0.36; 'really': 0.36; 'but': 0.36; 'programmers': 0.36; 'possible': 0.37; 'does': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'ever': 0.63; 'email addr:gmail.com': 0.63; 'our': 0.65; 'believe': 0.69; 'careful': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Python Newbie Date: Mon, 25 Feb 2013 00:38:27 +0000 References: <9p1ii899tkalvfd1cl7sneoqa9t1cqh4oj@invalid.netcom.com> <5129482F.3080402@gmail.com> <512a5199$0$29998$c3e8da3$5496439d@news.astraweb.com> <5a3bf25b-a08b-4084-a940-e1fd05a1045d@googlegroups.com> <2e9471ad-8320-4f7f-80ba-cd5a7f8f013d@googlegroups.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-92-18-29-221.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 In-Reply-To: X-Antivirus: avast! (VPS 130224-0, 24/02/2013), Outbound message X-Antivirus-Status: Clean 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: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361752662 news.xs4all.nl 6845 [2001:888:2000:d::a6]:50422 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39832 On 25/02/2013 00:08, piterrr.dolinski@gmail.com wrote: >> For example (I believe it's already been mentioned) "declaring" intX with some integer value does *nothing* to maintain >> >> X as an integer: >> >> --> intX = 32 >> >> --> intX = intX / 3.0 >> >> --> intX >> >> 10.6666666666 >> > > Yes I did see that it is possible to redefine the type of a variable. But I don't think I would ever do this intentionally; need to be really careful with Python. > > Peter > Yes this is a big downside with Python. Sadly it means us poor Python programmers have to waste a lot of time and effort testing our code, unlike those who use statically typed languages which work perfectly once they've been compiled. -- Cheers. Mark Lawrence