question about smtplib

Tim Roberts timr at
Thu Oct 6 05:36:32 CEST 2005

Piet van Oostrum <piet at> wrote:

>>>>>> Tim Roberts <timr at> (TR) wrote:
>>TR> nephish at 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
  Providenza & Boekelheide, Inc.

More information about the Python-list mailing list