finding indices in a sequence of parentheses
tiissa
tiissa at nonfree.fr
Mon May 30 14:50:42 EDT 2005
Peter Otten wrote:
> tiissa wrote:
>>Disclaimer: not tested further than example above (but confident).
>
> Not tested but confident should be an oxymoron for a programmer.
Not tested but confident is an oxymoron for mathemtaticians.
Programmers know better than that, they leave bugs in their code to have
more work to do. ;)
OTOH, you're right. Matching parentheses cannot be done without a stack,
that should have rung a bell.
More information about the Python-list
mailing list