Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #18909 > unrolled thread
| Started by | Eduardo Suarez-Santana <esuarez@itccanarias.org> |
|---|---|
| First post | 2012-01-13 11:44 +0000 |
| Last post | 2012-01-13 11:44 +0000 |
| 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: copy on write Eduardo Suarez-Santana <esuarez@itccanarias.org> - 2012-01-13 11:44 +0000
| From | Eduardo Suarez-Santana <esuarez@itccanarias.org> |
|---|---|
| Date | 2012-01-13 11:44 +0000 |
| Subject | Re: copy on write |
| Message-ID | <mailman.4708.1326455100.27778.python-list@python.org> |
El 13/01/12 11:33, Eduardo Suarez-Santana escribió:
> I wonder whether this is normal behaviour.
>
Even simpler:
$ python
Python 2.7.2 (default, Oct 31 2011, 11:54:55)
[GCC 4.5.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> r={'a':1};
>>> d={};
>>> d['x']=r;
>>> d['y']=r;
>>> d['x']['a']=3
>>> d['y']
{'a': 3}
>>>
Back to top | Article view | comp.lang.python
csiph-web