<div class="gmail_quote">On 30 November 2011 18:50, Thomas Kluyver <span dir="ltr"><<a href="mailto:takowl@gmail.com">takowl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

As a compromise, why don't we allow autocall of "foo x", but not "foo.bar x" (unless autocall is set to 2)? This preserves the main uses of autocall (len, print in Python 3, etc.), without needing attribute access.</blockquote>

</div><br>I've done this in my autocall-safe branch, if anyone wants to test it:<br><a href="https://github.com/takluyver/ipython/tree/autocall-safe">https://github.com/takluyver/ipython/tree/autocall-safe</a><br><br>

Turning autocall up to 2 will still inspect attributes, but that's not the default.<br><br>If we're happy with this behaviour, I'll update docs and so forth.<br><br>Thomas<br>