call function in console without paranthesis

Troels Thomsen nejtak...
Thu May 31 17:27:20 EDT 2007


Hello,

I am wondering if I can write some code, that allows me to call functions in 
the console , IDLE, without using the paranthesis notation. Like print.
This will improve "intreractive'ness"

serialOpen() # some magic is issued here !!!
tx Hello

instead of
serialObj = mySerial(....)
serialObj.Tx("Hello")

thx in advance
Troels 





More information about the Python-list mailing list