[Tutor] how to split/partition a string on keywords?

eryksun eryksun at gmail.com
Fri Aug 24 03:41:21 CEST 2012


On Thu, Aug 23, 2012 at 9:08 PM,  <akleider at sonic.net> wrote:
>
>>>> s.dir()
> <Result = exactly what I'm looking for!!!!!!!!>

Surely you mean dir(s). Maybe you're thinking of the __dir__ special
method you can add to a class to override the default behavior.

You can also dir(str), or call help(str) to page through all of the doc strings.


More information about the Tutor mailing list