Thanks for all the help.
> On 20 Feb 2006, at 17:34, Alex Martelli wrote:
>
> ...integers are immutable, like all other numbers in Python: there
> is NO
> way to "change the value of the integer itself".
So, on learning that I could subclass the number types, I didn't even
consider the fact t
David Coffin <[EMAIL PROTECTED]> wrote:
> I'd like to subclass int to support list access, treating the integer
> as if it were a list of bits.
> Assigning bits to particular indices involves changing the value of
> the integer itself, but changing 'self' obviously just alters the
> valu
David Coffin wrote:
> I'd like to subclass int to support list access, treating the integer
> as if it were a list of bits.
> Assigning bits to particular indices involves changing the value of
> the integer itself, but changing 'self' obviously just alters the
> value of that local variable.
> Is
David Coffin <[EMAIL PROTECTED]> wrote:
> I'd like to subclass int to support list access, treating the integer
> as if it were a list of bits.
Fine, but:
> Assigning bits to particular indices involves changing the value of
> the integer itself, but changing 'self' obviously just alters the