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/2000-July/007198.html below:

[Python-Dev] map() for methods

[Python-Dev] map() for methods [Python-Dev] map() for methodsSkip Montanaro skip@mojam.com (Skip Montanaro)
Sun, 23 Jul 2000 23:12:17 -0500 (CDT)
A couple people have responded to my comment about deprecating the string
without deprecating map().  Most recently, Tim stated:

    >> As far as I'm aware, there's no clean way to do that with string
    >> methods.

    Tim> Sorry if someone pointed this out already (2K+ msgs backed up!):

    Tim>     newlist = [s.strip() for s in oldlist]

I realized that list comprehensions were possible, but they aren't yet in
the language, so I didn't think them a fair substitute for

    map(string.strip, oldlist)

If you get list comprehensions in there in some guise, then sure, deprecate
away...

Skip





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