along the lines, hash and obj. id.
castironpi at gmail.com
castironpi at gmail.com
Tue Feb 26 21:54:41 EST 2008
On Feb 26, 1:11 pm, Dennis Lee Bieber <wlfr... at ix.netcom.com> wrote:
> On Mon, 25 Feb 2008 23:58:52 -0800 (PST), castiro... at gmail.com declaimed
> the following in comp.lang.python:
>
> > The generic solution involves a second level of indirection: tuple* d=
> > &obj.a. I can't land a clean solution to it though.
>
> And you wont, because the capability would break Python's
> immutability rules.
>
> If you really want to play with pointers, write in C...
> --
> Wulfraed Dennis Lee Bieber KD6MOG
> wlfr... at ix.netcom.com wulfr... at bestiaria.com
> HTTP://wlfraed.home.netcom.com/
> (Bestiaria Support Staff: web-a... at bestiaria.com)
> HTTP://www.bestiaria.com/
I confess, sometimes I pass a one-length list to a function, just so
it can modify in-place.
More information about the Python-list
mailing list