Help with Python Grammar change

Skip Montanaro skip at mojam.com
Tue Feb 15 15:47:09 CET 2000


    Travis> How difficult would it be and what are the problems with
    Travis> altering the grammar (and compile.c code) so that one can enter
    Travis> slice-syntax as an argument to a function call:

Why not just use the slice builtin:

    g(slice(1,10,2),3)

?

Skip Montanaro | http://www.mojam.com/
skip at mojam.com | http://www.musi-cal.com/
"Languages that change by catering to the tastes of non-users tend not to do
so well." - Doug Landauer




More information about the Python-list mailing list