Wish there was an error message
Alain TESIO
alain at onesite.org
Sun Feb 18 16:55:22 EST 2001
On Sat, 03 Feb 2001 00:39:57 -0000, kwasi007uk at yahoo.co.uk wrote:
>I was using poplib's example as in the documentation. Unfortunately I
>typed in the following at the end of the script:
>
>M.quit instead of M.quit()!
>
>I forgot the parenthesis. The effect was, that my pop-server produced
>really strange things, doubled the number of messages each time I
>queried it with poplib.
>
>But M.quit does not exist. So it should give me an error message? Why
>doesn't it? Can I turn it on somehow?
>
You get the function object, like for this :
x=1
x
This syntax is useful for interactive use if you want to know what is in an object, but
for non-interactive scripts I don't see what is the interest, maybe an option to turn
raise an error would help.
Alain
More information about the Python-list
mailing list