This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author taleinat
Recipients kbk, taleinat
Date 2007-10-10.02:06:48
SpamBayes Score 0.02049907
Marked as misclassified No
Message-id <1191982010.97.0.724994014869.issue1252@psf.upfronthosting.co.za>
In-reply-to
Content
Add an __call__ magic method to Delegator so that it can delegate to
callables. This will raise the required exception if the delegate isn't
callable.

The built-in callable() method will now return True for any Delegator.
Before this patch it always returns False, which is wrong if the
delegate is callable, so callable() doesn't really work on Delegator
instances in both cases. I couldn't see how this could be harmful.

Also make the Delegator class a new-style class.


This patch is required for the Squeezer and ShellLogger IDLE extensions
found on PyPI to be able to co-exist.
Files
File name Uploaded
IDLE_Delegator.071010.patch taleinat, 2007-10-10.02:06:49
History
Date User Action Args
2007-10-10 02:06:52taleinatsetspambayes_score: 0.0204991 -> 0.02049907
recipients: + taleinat, kbk
2007-10-10 02:06:51taleinatsetspambayes_score: 0.0204991 -> 0.0204991
messageid: <1191982010.97.0.724994014869.issue1252@psf.upfronthosting.co.za>
2007-10-10 02:06:50taleinatlinkissue1252 messages
2007-10-10 02:06:49taleinatcreate