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


Groups > comp.lang.python > #95432 > unrolled thread

Re: Python 3 sort() problem

Started byJoonas Liik <liik.joonas@gmail.com>
First post2015-08-17 17:14 +0300
Last post2015-08-17 17:14 +0300
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#95432 — Re: Python 3 sort() problem

FromJoonas Liik <liik.joonas@gmail.com>
Date2015-08-17 17:14 +0300
SubjectRe: Python 3 sort() problem
Message-ID<mailman.59.1439820893.4764.python-list@python.org>
>
> 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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web