Hi all,<br><span class="gmail_quote"></span><br>
<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">in the CPython implementation, it's the address where the object is<br>stored. but that's an implementation detail.
</blockquote><br>
ok so can i point a vairiable to an address location just as done in C language ? <br>
>>> y = 'ATGCATGC'<br>
>>> x = buffer(y)<br>
>>> del(y)<br>
>>> x<br>
<read-only buffer for 0xbf4cf0e0, size -1, offset 0 at 0xbf4cf240><br>
>>> print x<br>
ATGCATGC<br>
<br>
now even when i delete y, why is that x still exists ? <br>
thats true even in the case of vairable assignment which states it a a reference !<br>
>>> a = 10<br>
>>> b = a<br>
>>> del(a)<br>
>>> b<br>
10<br>
i always thought if u modify the referred variable/buffer object it
should be reflected in the referenced variables/buffers objects . am i
wrong ? <br>
does it mean that references in python are not true references ? <br>
<br>
regards,<br>
KM<br>
<br>
</div><br>