Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'say,': 0.05; 'subject:Python': 0.06; 'integers': 0.09; 'subject:into': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '23,': 0.16; 'elsewhere.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:variable': 0.16; 'prevent': 0.16; 'wrote:': 0.18; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'themselves': 0.32; 'could': 0.34; 'received:google.com': 0.35; 'representing': 0.36; 'subject:?': 0.36; 'pm,': 0.38; 'subject:Can': 0.60; 'such': 0.63; 'to:none': 0.92 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:cc :content-type; bh=6aptSY/ADAsuTa/CYt/LowE7u4jv/hqt6Vg60tEjnm0=; b=CSGSdiv9/WErc0S5koK2ZsRNOYofPbhmjBKScpyBjSrrbuAof+7pJSsIbKfCfOpK5B vmybEb+xJD5Bop6UD14Z6lIu4KpRoXVhBY93Kuju4j+q0RLZM32/Asgz1Wvjl6b3cIJ7 Onj8e8Je5FBvNcrlMw7HQDu8AYt6MTGAnU3uF+AKp1AQT34mo6da4826xHXtNUJ2BsLt qwVCHbhXWlSDSrQ9CK5hZhfHhTXEQ9eBuuPIa8D1bcCHLUstyLQsERtqC5t8ENvKRFC7 eEl3kx91ZSY7oorvurWkoTFil5x89lHiFjsg7eq0kjYrzUPEQm+ot3A5meGpUQf2Wv98 rniA== MIME-Version: 1.0 X-Received: by 10.68.200.74 with SMTP id jq10mr18676136pbc.169.1393153946597; Sun, 23 Feb 2014 03:12:26 -0800 (PST) In-Reply-To: <87ob1yay9m.fsf@elektro.pacujo.net> References: <27ac2248-0ca3-4ba6-9d25-eaad324bc5e9@googlegroups.com> <87sird7wuw.fsf@handshake.de> <8454E8CB-E6E3-452F-8E54-9A77BFF34EC2@gmail.com> <1m3gg9lbf2ln5m2kbki954t17mqni3b20k@4ax.com> <53095145$0$29985$c3e8da3$5496439d@news.astraweb.com> <877g8mcg1m.fsf@elektro.pacujo.net> <87ob1yay9m.fsf@elektro.pacujo.net> Date: Sun, 23 Feb 2014 22:12:26 +1100 Subject: Re: Can global variable be passed into Python function? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1393153954 news.xs4all.nl 2952 [2001:888:2000:d::a6]:43720 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:66937 On Sun, Feb 23, 2014 at 10:01 PM, Marko Rauhamaa wrote: > As for Python, there's nothing in the Python specification that would > prevent you from having, say, 63-bit integers as representing > themselves. IOW, you could physically place such integers as themselves > as the reference and the number would not physically exist elsewhere. What would id(5) be? Some constant? What would id(id([])) be? ChrisA