How to make python interprets foo a b c as foo('a','b','c') -
i new python , used matlab command window's auto interpretation.
is there anyway can make python interpreter interpret
>>> foo b c
as
>>> foo('a','b','c')
ps, know user input , parsing want python shell/idle/console/interpreter understand this.
ipython might provide closest solution. manual:
you can (after enabling %autocall magic command)
in [1]: callable_ob arg1, arg2, arg3
which equivalent
callable_ob(arg1, arg2, arg3)
this not possible in regular python interpreter or scripts however.
Comments
Post a Comment