Comment 7 for bug 355837

Revision history for this message
Fernando Perez (fdo.perez) wrote : Re: [Bug 355837] Re: error message "str object not callable" when not calling string

On Tue, Apr 7, 2009 at 5:51 PM, Robert Kern
<email address hidden> wrote:

> __builtins__.len(__builtins__.str(...)) perhaps?

I'd dismissed this because ultimately people can stick whatever they
want in there, so the number of ways in which it can fail is basically
unbounded.

But on second thought, it's probably not such a bad idea, since at
least it does close the default hole. People can still break things
with a combination of custom dynamic prompts and redefining things,
but that's likely to be much, much less common.

I've put it in my branch in this format....

Cheers,

f