##// END OF EJS Templates
Disable autocall by default, after feedback on the mailing list....
Fernando Perez -
Show More
@@ -188,16 +188,6 b' class ReadlineNoRecord(object):'
188 ghi = self.shell.readline.get_history_item
188 ghi = self.shell.readline.get_history_item
189 return [ghi(x) for x in range(start, end)]
189 return [ghi(x) for x in range(start, end)]
190
190
191
192 _autocall_help = """
193 Make IPython automatically call any callable object even if
194 you didn't type explicit parentheses. For example, 'str 43' becomes 'str(43)'
195 automatically. The value can be '0' to disable the feature, '1' for 'smart'
196 autocall, where it is not applied if there are no more arguments on the line,
197 and '2' for 'full' autocall, where all callable objects are automatically
198 called (even if no arguments are present). The default is '1'.
199 """
200
201 #-----------------------------------------------------------------------------
191 #-----------------------------------------------------------------------------
202 # Main IPython class
192 # Main IPython class
203 #-----------------------------------------------------------------------------
193 #-----------------------------------------------------------------------------
@@ -207,7 +197,7 b' class InteractiveShell(SingletonConfigurable, Magic):'
207
197
208 _instance = None
198 _instance = None
209
199
210 autocall = Enum((0,1,2), default_value=1, config=True, help=
200 autocall = Enum((0,1,2), default_value=0, config=True, help=
211 """
201 """
212 Make IPython automatically call any callable object even if you didn't
202 Make IPython automatically call any callable object even if you didn't
213 type explicit parentheses. For example, 'str 43' becomes 'str(43)'
203 type explicit parentheses. For example, 'str 43' becomes 'str(43)'
@@ -215,7 +205,6 b' class InteractiveShell(SingletonConfigurable, Magic):'
215 'smart' autocall, where it is not applied if there are no more
205 'smart' autocall, where it is not applied if there are no more
216 arguments on the line, and '2' for 'full' autocall, where all callable
206 arguments on the line, and '2' for 'full' autocall, where all callable
217 objects are automatically called (even if no arguments are present).
207 objects are automatically called (even if no arguments are present).
218 The default is '1'.
219 """
208 """
220 )
209 )
221 # TODO: remove all autoindent logic and put into frontends.
210 # TODO: remove all autoindent logic and put into frontends.
General Comments 0
You need to be logged in to leave comments. Login now