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

akleider at sonic.net akleider at sonic.net
Fri Aug 24 03:50:17 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.
>

Yes, dir(s) is what I gave the interpreter.
I should have used cut and paste (but tend not to for short bits.)


> You can also dir(str), or call help(str) to page through all of the doc
> strings.
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>




More information about the Tutor mailing list