Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #33199
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Subject | Non Sequitur -- Re: Strange object identity problem |
| Date | 2012-11-12 16:19 -0500 |
| Organization | > Bestiaria Support Staff < |
| References | <mailman.3582.1352726004.27098.python-list@python.org> <r0a7n9-mee.ln1@satorlaser.homedns.org> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3593.1352755136.27098.python-list@python.org> (permalink) |
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 | Next — Previous in thread | Find similar | Unroll 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