indirect references

Ken Seehof 12klat at sightreader.com
Tue Jun 6 08:17:36 EDT 2000


I'm not sure exactly what the effect is that you are after, so I assume
that what you are looking is something like call by reference in a
fuction, e.g.

>>> a = "eggs"
>>> spam(a)
>>> print a
spam and eggs

Unfortunately the margin is too small to contain my implementation.  :-)

shaleh at debian.org wrote:

> How do I do this in python:
>
> foo = 'string'
> bar = foo
>
> somehow assign to bar and change the value of foo.
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 12klat.vcf
Type: text/x-vcard
Size: 343 bytes
Desc: Card for Ken Seehof
URL: <http://mail.python.org/pipermail/python-list/attachments/20000606/b13c0b72/attachment.vcf>


More information about the Python-list mailing list