Wish there was an error message

Brad Bollenbach bbollenbach at homenospam.com
Sat Feb 3 03:53:49 CET 2001


Actually, if you meant to access M.quit() I'll assume quit() is a valid
method of object M. That said, M.quit is a _reference_ to M.quit(), and in
fact does exist.

For examples of using references to functions look at the documentation on
custom sorting a list, and you'll see that if you define a function called
funcname() you also have reference to that function with funcname.

<kwasi007uk at yahoo.co.uk> wrote in message
news:mailman.981165805.9847.python-list at python.org...
> 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?
>
>





More information about the Python-list mailing list