Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Avoid attribute access for autocall by default.

  • Loading branch information...
commit 1a0d632aa75e46ad59a429b2707ec1b3e384ffc4 1 parent e89be0c
@takluyver authored
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']:
Please sign in to comment.
Something went wrong with that request. Please try again.