doctest Hassles!
Bengt Richter
bokr at oz.net
Tue Mar 12 17:36:56 EST 2002
On 12 Mar 2002 21:56:20 GMT, bokr at oz.net (Bengt Richter) wrote:
>On 12 Mar 2002 09:28:11 -0800, doug at pobox.com (Douglas Garstang) wrote:
>
[...]
>>Now, in my code I have:
>>
>>def tester3():
>> """
>> >>> import os
>> >>> ls=os.popen("/bin/ls","r").read()
>> >>> print ls
>> example.py
>> example.pyc
>> tester.py
>>
>> """
>>
>>It ignores the blank line at the end, as the docs say it will. On a
> ^^--what ignores what blank line? There's no executable code above.
Well, at least not directly, sorry ;-/
Regards,
Bengt Richter
More information about the Python-list
mailing list