[Python-ideas] idea: Template.match function

Terry Reedy tjreedy at udel.edu
Mon Oct 20 21:46:12 CEST 2008

Boris Borcic wrote:
> Joe Strout wrote:
>> The point is, we already have a very pretty Template class that does 
>> this operation in one direction; it ought to do it in the other 
>> direction too.  The fact that it doesn't is surprising to a newbie 
> BTW, a similar comment goes for delim.join() vs delim.split()

A phrase like 'similar comment' is sometimes hard to expand.
Are you saying that in 3.x .split should produce an iterator instead of 
a list?  Or that ''.split(s) should return list(s) instead of [''] as 
now (in 3.0 at least).

More information about the Python-ideas mailing list