WedWonder: Scripts and Modules
DL Neil
PythonList at DancesWithMice.info
Thu Sep 12 01:30:26 EDT 2019
On 12/09/19 10:37 AM, Alan Bawden wrote:
> DL Neil <PythonList at DancesWithMice.info> writes:
>
>> ... However, reversing the question in my mind led me to ask (myself):
>> how many scripts do I have (in "production use") which are ever used
>> (also) as a module by some other script? I think the answer is/was:
>> "none"! Accordingly, (spoiler alert: this statement may be heresy) I
>> stopped using the "if".
>
> I found that the problem with doing this is that `pydoc' now _runs_ my
> scripts, when all I wanted was a quick look at the constants and procedures
> defined in them.
I haven't experienced this. However, I'll make a note to test...
--
Regards =dn
More information about the Python-list
mailing list