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/020989.html below:

[Python-Dev] "funny".split("")

[Python-Dev] "funny".split("") [Python-Dev] "funny".split("")Andrew Koenig ark@research.att.com
12 Mar 2002 14:01:16 -0500
Christian> Eeeeehhh!
Christian> That sounds very good.
Christian> It can make me unconvinced again, of course.
Christian> Split can never return the separator,
Christian> that makes the number of possible answers
Christian> not only finite, but unique!

Also, note that it does allow for empty elements in the result,
provided that the separator is not empty:

    >>> "a//b".split("/")
    ['a', '', 'b']

-- 
Andrew Koenig, ark@research.att.com, http://www.research.att.com/info/ark



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