Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #100050

Re: Question about split method

From Erik <python@lucidity.plus.com>
Newsgroups comp.lang.python
Subject Re: Question about split method
Date 2015-12-05 22:20 +0000
Message-ID <mailman.231.1449354049.14615.python-list@python.org> (permalink)
References <169982db-7285-484a-9a48-0d4a2ea7dea1@googlegroups.com> <mailman.147.1449089117.14615.python-list@python.org> <dcgs81F9d3fU1@mid.individual.net> <b6d3d045-d5e0-4f2f-87e2-e6fdcd3b7407@googlegroups.com> <n3vhaj$8gg$1@ger.gmane.org>

Show all headers | View raw


On 05/12/15 20:27, Mark Lawrence wrote:
> On 05/12/2015 19:51, Robert wrote:
>> On Saturday, December 5, 2015 at 2:29:28 PM UTC-5, Peter Pearson wrote:
>>> On Wed, 2 Dec 2015 14:44:30 -0600, Ian Kelly <ian.g.kelly@gmail.com>
>>> wrote:
>>>> On Wed, Dec 2, 2015 at 2:37 PM, Robert <rxjwg98@gmail.com> wrote:
>>> [snip]
>>>>> ss0="1, 2, 4, 8, 16".split(", ")
>>> [snip]
>>>> Try help(str.split)
>>>
>>> Or if, like me, you can't remember the magic word "str", ask:
>>>
>>> help("".split)
>>>
>>> and you know you're asking about the right "split".
>>>
>>> --
>>> To email me, substitute nowhere->runbox, invalid->com.
>>
>> Thanks for your smart method.
>>
>
> The even smarter method is:
>
> help(''.split)
>
> as this saves you reaching for the shift key :)

... except you're already pressing it for the open parenthesis ... ;)

E.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Question about split method Robert <rxjwg98@gmail.com> - 2015-12-02 12:37 -0800
  Re: Question about split method Ian Kelly <ian.g.kelly@gmail.com> - 2015-12-02 14:44 -0600
    Re: Question about split method Robert <rxjwg98@gmail.com> - 2015-12-02 13:00 -0800
    Re: Question about split method Peter Pearson <pkpearson@nowhere.invalid> - 2015-12-05 19:29 +0000
      Re: Question about split method Robert <rxjwg98@gmail.com> - 2015-12-05 11:51 -0800
        Re: Question about split method Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-12-05 20:27 +0000
        Re: Question about split method Erik <python@lucidity.plus.com> - 2015-12-05 22:20 +0000

csiph-web