Re: Further questions on dictionaries, namespaces, etc.

2005-08-21 Thread Bruno Desthuilliers
Talin a écrit : (snip) > 2) Is there an easy way to determine if a given object has a callable > method named "unify"? if callable(getattr(obj, 'unify', None)): # obj.unify exists and is callable Br -- http://mail.python.org/mailman/listinfo/python-list

Further questions on dictionaries, namespaces, etc.

2005-08-21 Thread Talin
Thanks to everyone for pointing out my bone-headed errors :) I don't *usually* make that sort of mistake... What I'm attempting to do is create an implentation of the unification algorithm. Now, its fairly straightforward to do unification on my own custom types, all I have to do is define a un