A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-March/021375.html below:

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

[Python-Dev] Idea - place to put string functions and consts [Python-Dev] Idea - place to put string functions and constsGuido van Rossum guido@python.org
Mon, 18 Mar 2002 16:11:53 -0500
> >>>>> "GvR" == Guido van Rossum <guido@python.org> writes:
> 
>     >> COMMA.join(['spam', 'eggs'])
> 
>     GvR> This I've never liked.
> 
>     >> comma_join(['spam', 'eggs'])
> 
>     GvR> But this one's sweet!
> 
> Ah, so is it the uppercase letters or the dot you dislike <wink>?

Maybe that, maybe the bother of defining a name for a simple constant;
it's not like you plan to ever change the program to give COMMA a
different value.  But comma_join is sweet because it removes a
constant evaluation from a loop (if the join occurs in a loop).

--Guido van Rossum (home page: http://www.python.org/~guido/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4