Custom statements
Steve Holden
sholden at holdenweb.com
Tue Jan 7 16:06:56 EST 2003
"Tetsuo" <member16943 at dbforums.com> wrote in message
news:2358094.1041969032 at dbforums.com...
>
> If I wanted "nand" to be a Python statement, could I do that without
> hacking the C source code?
>
Presumably you mean a "Python keyword", not a "Python statement" (unless you
really wanted the line
nand something
to be meaningful). In either case the answer is "no", because statement
syntax and keywords are recognised by the lexical analyser, which is
hard-wired.
regards
-----------------------------------------------------------------------
Steve Holden http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/pwp/
Bring your musical instrument to PyCon! http://www.python.org/pycon/
-----------------------------------------------------------------------
More information about the Python-list
mailing list