Re: Tapping into the access of an int instance

2007-10-02 Thread Piet van Oostrum
> [EMAIL PROTECTED] (CM) wrote: >CM> On Sep 20, 1:21 pm, "Tor Erik Sønvisen" <[EMAIL PROTECTED]> wrote: >>> Hi, >>> >>> Does anyone know how to interrupt the lookup of an integer value? I >>> know I need to subclass int, since builtin types can't be altered >>> directly... >>> >>> Below is h

Re: Tapping into the access of an int instance

2007-09-21 Thread Peter Otten
Tor Erik Sønvisen wrote: > Does anyone know how to interrupt the lookup of an integer value? I > know I need to subclass int, since builtin types can't be altered > directly... > > Below is how far I've come... What I want is to tap into the access of > instance i's value 1... > class Int(i

Re: Tapping into the access of an int instance

2007-09-20 Thread James Stroud
Tor Erik Sønvisen wrote: > Hi, > > Does anyone know how to interrupt the lookup of an integer value? I > know I need to subclass int, since builtin types can't be altered > directly... > > Below is how far I've come... What I want is to tap into the access of > instance i's value 1... > cla

Re: Tapping into the access of an int instance

2007-09-20 Thread Ben Finney
"Tor Erik Sønvisen" <[EMAIL PROTECTED]> writes: > Does anyone know how to interrupt the lookup of an integer value? AFAIK, int values *aren't* "looked up", in my understanding of that term. Can you explain what events you want to intercept? > Below is how far I've come... What I want is to tap

Re: Tapping into the access of an int instance

2007-09-20 Thread David
On 9/20/07, Tor Erik Sønvisen <[EMAIL PROTECTED]> wrote: > Hi, > > Does anyone know how to interrupt the lookup of an integer value? I > know I need to subclass int, since builtin types can't be altered > directly... > > Below is how far I've come... What I want is to tap into the access of > insta

Re: Tapping into the access of an int instance

2007-09-20 Thread chris . monsanto
On Sep 20, 1:21 pm, "Tor Erik Sønvisen" <[EMAIL PROTECTED]> wrote: > Hi, > > Does anyone know how to interrupt the lookup of an integer value? I > know I need to subclass int, since builtin types can't be altered > directly... > > Below is how far I've come... What I want is to tap into the access

Tapping into the access of an int instance

2007-09-20 Thread Tor Erik Sønvisen
Hi, Does anyone know how to interrupt the lookup of an integer value? I know I need to subclass int, since builtin types can't be altered directly... Below is how far I've come... What I want is to tap into the access of instance i's value 1... >>> class Int(int): def __init__(self, *a,