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/021345.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 constsBarry A. Warsaw barry@zope.com
Mon, 18 Mar 2002 10:27:54 -0500
>>>>> "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'])

I use that a lot.  The neat thing is that you don't actually have to
do anything to get both.  This ought to put the join-as-builtin
argument to bed, right? ;)

    GvR> But str.letters and so on have my blessing.

Me too!  Very elegant approach to reducing the last few
"import string" still necessary.

-Barry



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