Hello Everyone! A simple questions!

Ben Finney ben+python at benfinney.id.au
Thu Jul 25 23:14:52 EDT 2013


Thanatos xiao <yanxiaopei199 at 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




More information about the Python-list mailing list