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


Groups > comp.lang.python > #51275

Re: Hello Everyone! A simple questions!

From Ben Finney <ben+python@benfinney.id.au>
Subject Re: Hello Everyone! A simple questions!
Date 2013-07-26 13:14 +1000
References <CAF0POcuNvJnciWuD4a+CYtJ3XWC+nQZdt0VF08=PD8htKyr_iQ@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.5128.1374808507.3114.python-list@python.org> (permalink)

Show all headers | View raw


Thanatos xiao <yanxiaopei199@gmail.com> writes:

> >>> values = [0, 1, 2]>>> values[1] = values>>> values[0, [...], 2]
>
> why??

Because. :-)

Did you have a more specific question? What exactly are you expecting
that code to do, and what is the surprise?

-- 
 \          “I was the kid next door's imaginary friend.” —Emo Philips |
  `\                                                                   |
_o__)                                                                  |
Ben Finney

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


Thread

Re: Hello Everyone! A simple questions! Ben Finney <ben+python@benfinney.id.au> - 2013-07-26 13:14 +1000

csiph-web