[IPython-dev] Autocall doesn't work when function requires no arguments - where is the FULL option?

Ville Vainio vivainio at gmail.com
Thu Jan 5 08:05:47 EST 2006


I'm using the latest SVN and am trying to call a function that takes
only keyword args - should be readily autocallable even without args.
Wasn't there supposed to be a FULL option in addition to SMART mode?

Here's the session that illustrates the point:

[opt\environmentswitch]|1> up??
Type:           function
Base Class:     <type 'function'>
String Form:    <function up at 0x01018F30>
Namespace:      Interactive
File:           c:\home\_ipython\gutils.py
Definition:     up(levels=1)
Source:
def up(levels=1):
    """ chdir up in tree, optionally specifying depth """
    for l in range(levels):
        os.chdir("..")
        if levels!=1:
            print "->",os.getcwd()
[opt\environmentswitch]|2> up 1
-------------------------> up(1)
[C:\opt]|3> up
        <3> <function up at 0x01018F30>
[C:\opt]|4> %autocall
Automatic calling is: OFF
[C:\opt]|5> %autocall
Automatic calling is: Smart
[C:\opt]|6> %autocall
Automatic calling is: OFF
[C:\opt]|7> %autocall
Automatic calling is: Smart
[C:\opt]|8> up
        <8> <function up at 0x01018F30>

--
Ville Vainio    http://tinyurl.com/2prnb
  Can't you see the world is burning
  Can't you feel its Fire burning
  Don't you know we all are burning
  The Fire of Life       -- R.N.Taylor / Changes




More information about the IPython-dev mailing list