Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #33180
| Path | csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <franke.rob@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.057 |
| X-Spam-Evidence | '*H*': 0.89; '*S*': 0.00; 'cc:addr:python-list': 0.10; 'subject:object': 0.16; "shouldn't": 0.17; '(b)': 0.22; 'subject:problem': 0.22; 'cheers,': 0.23; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In- Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; '>>>>': 0.29; 'year,': 0.30; 'print': 0.32; 'received:google.com': 0.34; 'robert': 0.35; 'received:209.85': 0.35; 'received:209': 0.37; 'subject:: ': 0.38; 'header:Received:5': 0.40; 'range': 0.60; 'to:addr:bluewin.ch': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=CqbAz+IQ3x4HjIiIHe65ldmF0+NPNHsHqfU16Wzzcoc=; b=Qk+oOCi1rcbPjNgUgYlN+2w6xK9eg7cOOIyUhyFFD34RLT5w0mqiR7QDbPN8X1GaAP z10zQIBcJdlI8r5Vh/aThkYHEcvPlu3lOq0I8HeKDoZJwLyXQQWpjqSj18WpEg/TmVhy 1wNKvFXy2uBoXYj6LnMn+YIG0o+rYuis8bw29vOHHwRQXKq5/O3UtGhKDRZZlvrnNmt0 NO+jhM9LCTewErZYyBTMP10rsuahsBpv+ARlrX8AgOkUQkZTfwwYHOpSSy/HP5xVHYQq dL3h0JHICqHq3duYFbA2D1U9nyp0wFXNw3+7LZJagpPcs7y2TbBXhsoO93PuT/jSld3H +12Q== |
| MIME-Version | 1.0 |
| In-Reply-To | <50A0F5A8.4080802@bluewin.ch> |
| References | <50A0F5A8.4080802@bluewin.ch> |
| From | Robert Franke <franke.rob@gmail.com> |
| Date | Mon, 12 Nov 2012 14:27:29 +0100 |
| Subject | Re: Strange object identity problem |
| To | "F.R." <anthra.norell@bluewin.ch> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Cc | python-list@python.org |
| 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.3585.1352726872.27098.python-list@python.org> (permalink) |
| Lines | 32 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1352726872 news.xs4all.nl 6939 [2001:888:2000:d::a6]:35502 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:33180 |
Show key headers only | View raw
Hi Frederic,
[...]
>>>> bas = {}
>>>> for year in range (2010, 2013):
> ba = st.runs ('BA', '%d-01-01' % year, '%d-12-31' % year)
> ba.run ()
> print year, id (ba)
> bas [year] = ba
>
> 2010 150289932
> 2011 150835852
> 2012 149727788
>
>>>> for y in sorted (bas.keys ()):
> b = bas [year]
Shouldn't that be b = bas[y]?
> print y, id (b)
>
> 2010 149727788
> 2011 149727788
> 2012 149727788
>
[...]
Cheers,
Robert
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Strange object identity problem Robert Franke <franke.rob@gmail.com> - 2012-11-12 14:27 +0100
csiph-web