"Guilherme Polo" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
| 2008/2/27, bharath venkatesh <[EMAIL PROTECTED]>:

| >     how to create macro in python for set of instruction that is done
| > frequently but too less in number to ignore the overhead of function 
call

You can't in Python.  Use an external macro program or cut/repeated paste 
in an editor.

| There is lambda, not exactly a macro.

Not at all a macro.  Purely an abbreviation for def ...

| But every program uses functions why cant yours ?

Yes, function call overhead is seldom the major slowdown except possibly in 
inner loops, where code can be written inline just once.

tjr



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to