question about smtplib

Tim Roberts timr at probo.com
Wed Oct 5 23:36:32 EDT 2005


Piet van Oostrum <piet at cs.uu.nl> wrote:

>>>>>> Tim Roberts <timr at probo.com> (TR) wrote:
>
>>TR> nephish at xit.net wrote:
>>>> cool. so this line
>>>> server = smtplib.SMTP(localhost)
>>>> is when i connect ?
>
>>TR> Use the source, Luke.  Source code for every standard module is included on
>>TR> your hard disk.  If you look in the __init__ for "class SMTP", your
>>TR> question will be answered.
>
>The documentation should be the ultimate reference for the API. The source
>is just implementation detail which may change in the future.

I won't argue with that, but the question of "exactly when does the
connection occur" is in itself an implementation detail.  I wouldn't expect
it to be answered in the documentation.
-- 
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list