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


Groups > comp.lang.python > #95432

Re: Python 3 sort() problem

Path csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <liik.joonas@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.014
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'modify': 0.04; 'subject:Python': 0.05; 'none,': 0.05; 'so?': 0.07; 'confusion': 0.16; 'sort()': 0.16; 'subject:problem': 0.22; 'header:In-Reply- To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'guess': 0.31; 'users.': 0.31; 'returned': 0.32; 'list': 0.34; 'received:google.com': 0.35; 'but': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'why': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'believe': 0.66; 'to:name:python': 0.84
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:to :content-type; bh=KfjpVIq36tzyK+hKKe/bnWeVMJ1MPQL1sNWkJWPZ6k4=; b=pZwT/S8UmZYemooPqjxL9Egd0VWrayIcu65AzuvdIRMwX9Sr6zI+4PvsgM+IPStYET qaQLKhJ9CrxNn4dwvWtYSIQBt5DjXnfve6vzy0u00ihqm4gqbdXBJwqpqcpcIZAJ4n5C +Yu+DRo3+EHd8dHKkye8YaIJr6RPkRKEvRG+70H9ILFWTfj5UXT9flaZX+oPHrumXfhW 4DvUue5SnwxH4U/3snhe6fNch6RZ1Ium6eQMUqMFguBBdXB/Paa40uHEX7PzHKKurVWF uDNAHkUK2wxqNHDAeqGGWtkhBI3xq/UAODCI8TGKMQXi78RnIjgVRtYzi/OMS6REoWoq RZ8Q==
MIME-Version 1.0
X-Received by 10.107.132.169 with SMTP id o41mr1531596ioi.155.1439820890982; Mon, 17 Aug 2015 07:14:50 -0700 (PDT)
In-Reply-To <006601d0d8e1$c17c1480$44743d80$@inbox.ru>
References <006601d0d8e1$c17c1480$44743d80$@inbox.ru>
Date Mon, 17 Aug 2015 17:14:50 +0300
Subject Re: Python 3 sort() problem
From Joonas Liik <liik.joonas@gmail.com>
To Python <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.59.1439820893.4764.python-list@python.org> (permalink)
Lines 7
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1439820894 news.xs4all.nl 26741 [2001:888:2000:d::a6]:53499
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:95432

Show key headers only | View raw


>
> I know that sort() returns None, but I guess that it would be returned x
> that was sorted. Why so?

if it returned a sorted list it might lead some people to believe it
did not modify the oridinal list which would lead to a ton of
confusion for new users.

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


Thread

Re: Python 3 sort() problem Joonas Liik <liik.joonas@gmail.com> - 2015-08-17 17:14 +0300

csiph-web