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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -