Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #30499
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!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 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/simple; d=python.org; s=200901; t=1348927582; bh=p0dS2qe04ud0h8H7Hq7q9V3xHYZ8wo36KcMTXFgs0tQ=; h=To:From:Subject:Date:Message-ID:References:Mime-Version: Content-Type:Content-Transfer-Encoding:In-Reply-To; b=oHY25bnzR7oyjH29+baMUaBWo2O2pjzAhPNFFqPmgVGdGI3HEeyszBkHo0mt1UQ+T 8wxpi/1gj0kHUlZuncoGpRTi3x12S2hKV5MoxtqshV6z0l5L0p7Piyaq3dkZmLBYlj 5dAuai1BwMDmIRYzn0I2qu31taHVIhSbi2xmLnPc= |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'subject:: [': 0.03; 'subject:Python': 0.05; '"""': 0.05; '"__main__":': 0.07; '__name__': 0.07; 'doctest': 0.07; '(it': 0.09; 'dict': 0.09; 'okay': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'b=2)': 0.16; 'from:name:christian heimes': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'unordered': 0.16; "{'a':": 0.16; 'from:addr:python.org': 0.17; '>>>': 0.18; 'subject:] ': 0.19; 'import': 0.21; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'replace': 0.27; 'set.': 0.27; 'header:X -Complaints-To:1': 0.28; 'hash': 0.29; 'class': 0.29; 'could': 0.32; 'to:addr:python-list': 0.33; "can't": 0.34; 'christian': 0.34; 'something': 0.35; 'received:org': 0.36; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'charset:windows-1251': 0.97 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Christian Heimes <christian@python.org> |
| Subject | Re: [RELEASED] Python 3.3.0 |
| Date | Sat, 29 Sep 2012 16:06:10 +0200 |
| References | <5066E72E.2010100@python.org> <DUB117-W380D12F6F3E5062720F59491810@phx.gbl> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1251 |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | f048193094.adsl.alicedsl.de |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0 |
| In-Reply-To | <DUB117-W380D12F6F3E5062720F59491810@phx.gbl> |
| 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.1631.1348927583.27098.python-list@python.org> (permalink) |
| Lines | 24 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1348927583 news.xs4all.nl 6882 [2001:888:2000:d::a6]:34968 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:30499 |
Show key headers only | View raw
Am 29.09.2012 15:42, schrieb Andriy Kornatskyy:
>
> The following doctest fails with python3.3 (it is okay for python2.4-2.7, 3.2).
>
> class adict(dict):
> """
> >>> d = adict(a=1, b=2)
> >>> d
> {'a': 1, 'b': 2}
> """
>
> if __name__ == "__main__":
> import doctest
> doctest.testmod()
>
> Please advise if that is something known.
Yes, it's caused by the hash randomization. From now on you can't rely
on the order of an unordered type like dict or set. You could replace d
with sorted(d.items()).
Christian
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: [RELEASED] Python 3.3.0 Christian Heimes <christian@python.org> - 2012-09-29 16:06 +0200
csiph-web