Ronald Oussoren wrote: > On Jul 20, 2006, at 3:26 AM, Greg Ewing wrote: > >> Ronald Oussoren wrote: >> >>> Classic classes? >> I just checked, and it seems they've been fixed too: >> callable() and hasattr(obj, '__call_') give the same >> result -- true if and only if a __call__ method has >> been defined. > > But classic classes theirself are callable yet don't have a __call__ > attribute.
Which really won't be a problem in Py3k :) Cheers, Nick. -- Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia --------------------------------------------------------------- http://www.boredomandlaziness.org _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com