Python Macros

Josiah Carlson jcarlson at
Mon Oct 4 13:19:46 EDT 2004

> How hard/easy is it to extend the Python syntax?  Perhaps there are 

Check out the tokenizer module.

> macro facilities for this?

Python has no macro facilities.

> I'd like to add messages and message 
> passing, for example.

Macros are not necessary for message passing.  There are at least a
dozen message passing libraries for inter and intra-machine
communications, including versions that work with DCOM, Corba, MPI, and
I'm sure just about anything else you could want to do.

Heck, writing message passing with TCP sockets is even quite easy, if
you have experience with writing network protocols.

If you are just wanting to pass messages in your program, and you are
using threads, use the Queue module (in 2.4 it will be faster).

 - Josiah

More information about the Python-list mailing list