Re: list IndexError

From: Steven Bethard (steven.bethard_at_gmail.com)
Date: 12/23/04


Date: Thu, 23 Dec 2004 16:15:37 GMT

Mike C. Fletcher wrote:
> Ah, my mistake, I missed the [:] after the source argument that was
> taking a copy... which brings up the question, how many other people
> would miss it?

Too many. This is why I greatly prefer

    list(lst)

to

    lst[:]

It's also clearer to me. Do I really want a "slice" of the list? No, I
want a list copy of the list...

Steve



Relevant Pages

  • [PWI 500] The List is Here
    ... 25 Chris Jericho ... 190 Mike Shane ... 195 Steve Lewington ... 202 Kevin Northcutt ...
    (rec.sport.pro-wrestling)
  • Re: Hes BAAAAACK!
    ... > "go fuck yourself Steve" not the rapier comeback you had desired. ... >respect) as a person who understands how to and maintain a business.. ... Mike, Mike, Mike, ... Goddamn you are a jackass. ...
    (alt.vacation.las-vegas)
  • Re: microsoft download site indicates that my version is not authentic
    ... "Steve N." ... > So what's your real name Mike, ... >>>>each year it costs us to develop Windows and other products for you. ... >>>fact it has decreased in real terms while the functionality etc has bee ...
    (microsoft.public.windowsxp.general)
  • Re: TMP File Created in Addition to Document Saved
    ... Mike A's post wasn't quite right. ... (and you have a response to your original post.) ... steve wrote: ...
    (microsoft.public.excel.misc)
  • Re: How to read books on iPod Touch
    ... of what it's like to read a book on an iPod Touch or an iPhone, ... the text size is the same as a paperback book. ... Once again steve manipulates the result for his not-so-closet, ... Mike thinks PB books use only 6 s.i. ...
    (comp.sys.mac.advocacy)