Re: Python Macros

Discussion in 'Python' started by Arich Chanachai, Oct 4, 2004.

  1. 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.
     
    Arich Chanachai, Oct 4, 2004
    #1
    1. Advertising

  2. Arich Chanachai wrote:
    > Josiah Carlson wrote:
    >

    (snip)
    >> Python has no macro facilities.
    >>

    > Really? I read that Python was just like Scheme in that it had macro
    > facilities.
    >

    Where ?
     
    Bruno Desthuilliers, Oct 5, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    80
    Views:
    2,435
    Stephen J. Bevan
    Nov 7, 2003
  2. Replies:
    1
    Views:
    451
    Marco Antoniotti
    Oct 7, 2003
  3. Replies:
    5
    Views:
    498
  4. Michael T. Babcock

    Re: Explanation of macros; Haskell macros

    Michael T. Babcock, Nov 3, 2003, in forum: Python
    Replies:
    0
    Views:
    520
    Michael T. Babcock
    Nov 3, 2003
  5. Andrew Arro

    macros-loop? calling macros X times?

    Andrew Arro, Jul 23, 2004, in forum: C Programming
    Replies:
    2
    Views:
    497
    S.Tobias
    Jul 24, 2004
Loading...

Share This Page