[Tutor] list method sort()

orbitz at ezabel.com orbitz at ezabel.com
Fri Apr 2 12:07:49 EST 2004

Most of the list methods don't return the list. sort, reverse, append, extend,
insert, remove.  I dont' know *why*, perhaps it is to re-enforce that it is

On Fri, 2 Apr 2004 09:23:39 -0500
"Crabtree, Chad" <Chad.Crabtree at nationalcity.com> wrote:

> Am I correct in my belief that sort() on lists is in place with no return
> value?  If so does any one know WHY? WHY WHY?  It doesn't make sense
> everything else returns a value istead of having crazy side affects for no
> dicernable reason.  The only other one like this that I know of is 'del'
> which I've read is not technicly a function.
> -----------------------------------------------------------------------------
> --------------***National City made the following annotations
> -----------------------------------------------------------------------------
> --------------
> This communication is a confidential and proprietary business communication.
> It is intended solely for the use of the designated recipient(s).  If this
> communication is received in error, please contact the sender and delete this
> communication.
> =============================================================================
> ==============
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor

More information about the Tutor mailing list