[Python-Dev] defmacro

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Apr 27 02:13:06 CEST 2005

Shane Holloway (IEEE) wrote:

> So, the question comes back to what are blocks in the language 
> extensibility case?  To me, they would be something very like a code 
> object returned from the compile method.  To this we would need to 
> attach the globals and locals where the block was from.  Then we could 
> use the normal exec statement to invoke the block whenever needed. 

There's no need for all that. They're just callable objects.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg.ewing at canterbury.ac.nz	   +--------------------------------------+

More information about the Python-Dev mailing list