Python Macros

Arich Chanachai macrocosm at fastmail.fm
Mon Oct 4 19:54:55 CEST 2004


Josiah Carlson wrote:

>>How hard/easy is it to extend the Python syntax?  Perhaps there are 
>>    
>>
>
>Check out the tokenizer module.
>
>
>  
>
Is this easy to use?  Are there good tutorials?

>>macro facilities for this?
>>    
>>
>
>Python has no macro facilities.
>
>
>  
>
Really?  I read that Python was just like Scheme in that it had 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
>
>  
>
Great, thanks.



More information about the Python-list mailing list