Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #51290 > unrolled thread
| Started by | Florian Baumgartner <bfloriang@gmail.com> |
|---|---|
| First post | 2013-07-26 07:28 +0200 |
| Last post | 2013-07-26 07:28 +0200 |
| 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.
Re: Hello Everyone! A simple questions! Florian Baumgartner <bfloriang@gmail.com> - 2013-07-26 07:28 +0200
| From | Florian Baumgartner <bfloriang@gmail.com> |
|---|---|
| Date | 2013-07-26 07:28 +0200 |
| Subject | Re: Hello Everyone! A simple questions! |
| Message-ID | <mailman.5137.1374830196.3114.python-list@python.org> |
[Multipart message — attachments visible in raw view] — view raw
As alex23 already indicated you created a recursive data-structure (by inserting a reference to the list into the second place of the list) and the interpreter handles this gracefully by showing [...]. In case you really want to insert the lists members into the second place you can assign a copy of the list. values = [0,1,2] values[1] = values[:] 2013/7/26 Thanatos xiao <yanxiaopei199@gmail.com> > >>> values = [0, 1, 2]>>> values[1] = values>>> values[0, [...], 2] > > why?? > > > -- > http://mail.python.org/mailman/listinfo/python-list > >
Back to top | Article view | comp.lang.python
csiph-web