Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #33199

Non Sequitur -- Re: Strange object identity problem

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 <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'okay': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'size,': 0.13; 'balls': 0.16; 'diameter': 0.16; 'eckhardt': 0.16; 'lcd': 0.16; 'otoh,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:Non': 0.16; 'subject:object': 0.16; 'mon,': 0.16; 'element': 0.17; 'example.': 0.17; '>>>': 0.18; '(b)': 0.22; 'subject:problem': 0.22; 'statement': 0.23; "i've": 0.23; 'header:X-Complaints-To:1': 0.28; '+0100,': 0.29; 'code': 0.31; 'print': 0.32; 'subject: -- ': 0.33; 'url:home': 0.33; 'to:addr:python-list': 0.33; 'nov': 0.35; 'received:org': 0.36; 'really': 0.36; 'but': 0.36; 'should': 0.36; 'charset:us-ascii': 0.36; 'display': 0.36; 'two': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'most': 0.61; 'spending': 0.61; 'natural': 0.65; 'middle': 0.66; 'ball,': 0.84; 'inch': 0.84; 'nowadays,': 0.84; 'dennis': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Non Sequitur -- Re: Strange object identity problem
Date Mon, 12 Nov 2012 16:19:09 -0500
Organization > Bestiaria Support Staff <
References <mailman.3582.1352726004.27098.python-list@python.org> <r0a7n9-mee.ln1@satorlaser.homedns.org>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host adsl-76-253-101-85.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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3593.1352755136.27098.python-list@python.org> (permalink)
Lines 40
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1352755136 news.xs4all.nl 6888 [2001:888:2000:d::a6]:60861
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:33199

Show key headers only | View raw


On Mon, 12 Nov 2012 14:26:19 +0100, Ulrich Eckhardt
<ulrich.eckhardt@dominolaser.com> declaimed the following in
gmane.comp.python.general:


> 
> Okay, that's almost a classic. You ask about code that fails, while 
> providing code that works as example. Crystal balls are rare nowadays, 

	Not that rare -- I have six*... Spending time to condition and
attune the ball, OTOH, I've not done...

> so this is really hard to answer!
> 

	Not hard to answer -- just gazing at my LCD display reveals the OP
has

 >>> for y in sorted (bas.keys ()):
     b = bas [year]
     print y, id (b)

in which they are looping/printing on "y", but are extracting the SAME
element using "year"

	The middle statement should be

	b = bas[y]


-=-=-=-=-=-
*	Well, okay -- one "crystal ball" is acrylic, and three others are
reconstituted [ie; melted junk quartz recast in larger size, but not
really grown crystals] quartz crystal (
http://www.gaelsong.com/product/7173/decor-other ); the two natural
stones are only about an inch in diameter and the most expensive.
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
        wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Strange object identity problem "F.R." <anthra.norell@bluewin.ch> - 2012-11-12 14:12 +0100
  Re: Strange object identity problem Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2012-11-12 14:26 +0100
    Non Sequitur -- Re: Strange object identity problem Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-11-12 16:19 -0500

csiph-web