Re: test if an input string starts with a python expression

2009-12-07 Thread Richard Thomas
On Dec 8, 1:22 am, r0g wrote: > Torsten Mohr wrote: > > Hi, > > > i'd like to test if an input string starts with a python expression > > and also where that expression ends.  An example: > > > a_func(3*7, '''abc''') +5 pls some

Re: test if an input string starts with a python expression

2009-12-07 Thread r0g
Torsten Mohr wrote: > Hi, > > i'd like to test if an input string starts with a python expression > and also where that expression ends. An example: > > a_func(3*7, '''abc''') +5 pls some more > > The first part until (inclusive) the

Re: test if an input string starts with a python expression

2009-12-07 Thread zeph
It sort of sounds like you want a templating system: http://wiki.python.org/moin/Templating -- http://mail.python.org/mailman/listinfo/python-list

test if an input string starts with a python expression

2009-12-07 Thread Torsten Mohr
Hi, i'd like to test if an input string starts with a python expression and also where that expression ends. An example: a_func(3*7, '''abc''') +5 pls some more The first part until (inclusive) the 5 should be found as an expression and the length of