[Python-Dev] Idea - place to put string functions and consts

John Machin sjmachin@lexicon.net
Tue, 19 Mar 2002 07:13:53 +1000


On 18 Mar 2002 at 10:27, Barry A. Warsaw wrote:

> 
> >>>>> "GvR" == Guido van Rossum <guido@python.org> writes:
> 
>     GvR> I still like
> 
>     GvR>     ",".join(["spam", "eggs"])
> 
>     GvR> much better.
> 
> Me took, especially when it's spelled
> 
>     COMMA = ','
>     ...
>     COMMA.join(['spam', 'eggs'])
> 

Me too, especially when it's spelled

   comma_join = ",".join
   ...
   comma_join(['spam', 'eggs'])