Syntax Error

Terry Reedy tjreedy at udel.edu
Sat Feb 3 19:27:45 EST 2001


<kwasi007uk at yahoo.co.uk> wrote in message
news:mailman.981239644.2167.python-list at python.org...
> Using e.g. poplib, m=poplib.POP3 ...
> I typed in error m.quit.
> It should have been m.quit().
> Why doesn't Python give me an error message?
> It definitely should since q.quit does not exist!

(You meant m.quit on last line?)

If m.quit() is legal (evaluating to the result of calling m.quit), then
m.quit is also
(evaluating to the function itself).  So there should be no error message





More information about the Python-list mailing list