Re: [Python-Dev] Removing callable() from the stdlib

2008-03-28 Thread Collin Winter
On Fri, Mar 28, 2008 at 12:58 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > On Fri, Mar 28, 2008 at 10:51 AM, Collin Winter <[EMAIL PROTECTED]> wrote: > > I've been running 2to3's fix_callable over 2.6's stdlib to remove -3 > > warnings due to callable() usage; 2to3 replaces callable(x) wi

Re: [Python-Dev] Removing callable() from the stdlib

2008-03-28 Thread Guido van Rossum
On Fri, Mar 28, 2008 at 10:51 AM, Collin Winter <[EMAIL PROTECTED]> wrote: > I've been running 2to3's fix_callable over 2.6's stdlib to remove -3 > warnings due to callable() usage; 2to3 replaces callable(x) with > has_attr(x, "__call__"). Unfortunately, this breaks code that wants to > run call

[Python-Dev] Removing callable() from the stdlib

2008-03-28 Thread Collin Winter
I've been running 2to3's fix_callable over 2.6's stdlib to remove -3 warnings due to callable() usage; 2to3 replaces callable(x) with has_attr(x, "__call__"). Unfortunately, this breaks code that wants to run callable() on old-style classes (like test_builtin), because old-style classes don't have