Path: csiph.com!usenet.pasdenom.info!news.albasani.net!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; 'objects,': 0.07; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'python:': 0.09; 'received:184.172': 0.09; 'received:gator410.hostgator.com': 0.09; 'variables,': 0.09; '~ethan~': 0.09; "objects'": 0.16; 'variable.': 0.16; 'wrote:': 0.17; 'integer': 0.17; 'object.': 0.22; 'example': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; '3.0': 0.27; 'changed.': 0.29; 'objects': 0.29; 'to:addr:python-list': 0.33; 'pm,': 0.35; 'there': 0.35; 'but': 0.36; 'possible': 0.37; 'does': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'email addr:gmail.com': 0.63; 'more': 0.63; 'received:69.56': 0.65; 'stuck': 0.65; 'believe': 0.69; 'received:gateway02.websitewelcome.com': 0.91 Date: Sun, 24 Feb 2013 16:33: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: <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> In-Reply-To: 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]:59638 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361752931 news.xs4all.nl 6865 [2001:888:2000:d::a6]:54587 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39836 On 02/24/2013 04:08 PM, 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. And that right there is one of the key aspects of Python: there are no variables, only objects, and objects' types cannot be changed. objects can be labeled with names, but the names are more like sticky notes, and can be peeled off and stuck on some other object. -- ~Ethan~