Skip to content
Browse files

Avoid attribute access for autocall by default.

  • Loading branch information...
1 parent e89be0c commit 1a0d632aa75e46ad59a429b2707ec1b3e384ffc4 @takluyver committed Nov 30, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 IPython/core/prefilter.py
View
3 IPython/core/prefilter.py
@@ -663,6 +663,9 @@ def check(self, line_info):
"Check if the initial word/function is callable and autocall is on."
if not self.shell.autocall:
return None
+
+ if (self.shell.autocall < 2) and ("." in line_info.ifun):
+ return None
oinfo = line_info.ofind(self.shell) # This can mutate state via getattr
if not oinfo['found']:

0 comments on commit 1a0d632

Please sign in to comment.
Something went wrong with that request. Please try again.