[Python-ideas] textFromMap(seq , map=None , sep='' , ldelim='', rdelim='')

Nick Coghlan ncoghlan at gmail.com
Tue Oct 26 14:35:24 CEST 2010

On Tue, Oct 26, 2010 at 10:04 PM, Boris Borcic <bborcic at gmail.com> wrote:
> Nick Coghlan wrote:
>> With the str method, while some
>> people may find it odd to have the method invocation on the separator,
>> they typically don't forget the order once they learn it for the first
>> time.
> OTOH, it is a pain that join and split aren't *both* methods on the
> separator. Imho, 71% of what makes it strange for join to be a method on the
> separator, is that split doesn't follow the same convention.

But split only makes sense for strings, not arbitrary sequences. It's
the other way around for join.


Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia

More information about the Python-ideas mailing list