Python grammar..

William Park opengeometry at yahoo.ca
Mon Jun 11 17:59:04 EDT 2001


On Mon, Jun 11, 2001 at 05:27:18PM -0400, John wrote:
> I previously asked whether Python accepts function arguments without
> the opening/closing brackets and commas, like so:  foo(x,y) would
> become foo x y.  The answer to this was no.  So, I am wondering if it
> would be easy to modify the source and rebuild the interpretor to
> accept this format?  I tried modifying the Grammar file but that
> didn't seem to work...

Wouldn't it be easier to write a script to translate 'foo x y' to
'foo(x,y)' ?

-- 
William Park, Open Geometry Consulting, <opengeometry at yahoo.ca>
8 CPUs cluster, (Slackware) Linux, Python, LaTeX, Vim, Mutt, Sc.




More information about the Python-list mailing list