create new statement?

Bruce Edge bedge at troikanetworks.com
Fri Mar 2 13:34:42 EST 2001


Can you add a new statement to python?
AFAICT the only type of commands that don't require () or . after them
are statements.

I want to add my own command to the interp, but not have to use object
calling syntax
eg:
    create obj opt
not
    create(obj, opt)

How do I define new statements, or, a way of calling functions using the
former syntax?

Thanks, Bruce.



More information about the Python-list mailing list