Thanks guys, esp. Bruce, that explains it.

On Thu, Aug 1, 2013 at 12:05 PM, <[email protected]>wrote:

>    2. Re:  help(<myModule>) raising index out of range exception
>       (Rohit Patnaik)
>    3. Re:  help(<myModule>) raising index out of range exception
>       (Bruce Leban)
>
> Message: 2
> Date: Thu, 1 Aug 2013 12:02:47 -0700
> From: Rohit Patnaik <[email protected]>
> Hey David,
>
> It might be helpful if you could post a repro. case on a pastebin or
> something. Also, what happens if you take your code, wrap it in a trivial
> function, and then at the bottom, call the function as follows:
>     if __name__ == '__main__':
>         foo()
> As far as I know, that's the more idiomatic way of making command-line
> scripts in Python.
>
> Thanks,
> Rohit Patnaik
>
> ------------------------------
>
> Message: 3
> Date: Thu, 1 Aug 2013 12:05:16 -0700
> From: Bruce Leban <[email protected]>
> To: Seattle Python Interest Group <[email protected]>
> Subject: Re: [SEAPY] help(<myModule>) raising index out of range
>         exception
> Message-ID:
>         <
> cagu0antn-5rqvpofoghkxmfp5nvwwys_hqp-bha8f-tdqxw...@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Yes, you need to do import myModule prior to invoking help on it. Detailed
> repro steps and identifying the python version are also essentials.
>
> --- Bruce
>

Reply via email to