[Python-Dev] PEP_215_ (string interpolation) alternative EvalDict

Skip Montanaro skip@pobox.com
Mon, 14 Jan 2002 22:03:17 -0600


    $'BDFL = $sys.copyright.split()[4].upper()'
    ---> ('BDFL = ' + str(sys.copyright.split()[4].upper()))

How to you know when to stop gobbling after seeing a dollar sign in the
string? 

-- 
Skip Montanaro (skip@pobox.com - http://www.mojam.com/)