Re: WeakrefValueDictionary of Callables?

2006-05-21 Thread Lloyd Weehuizen
o extract this information somehow from the bound method and give the external API a more natural feel. Is that possible? Steve Holden wrote: > Lloyd Weehuizen wrote: >> Hey >> >> I'm trying to set up a WeakrefValueDictionary of callables however as >> soon

WeakrefValueDictionary of Callables?

2006-05-20 Thread Lloyd Weehuizen
Hey I'm trying to set up a WeakrefValueDictionary of callables however as soon as my method that adds the callable to the dictionary exits the value is removed? Is there any way around this? Example: import weakref TEST_EVENT = 1 class TestBinder: def __init__( self ):