Is smtplib pure python or implemented in C?
Question
Is smtplib pure python or implemented in C?
Solution
smtplib itself is implemented in python but socket is based on C, so its means both.
OTHER TIPS
In [32]: import smtplib
In [33]: smtplib
Out[33]: <module 'smtplib' from '/usr/lib/python2.6/smtplib.pyc'>
Therefore, smtplib is written in python.
Basically pure Python (as the underlying implementation if you go down far enough is C). You can find the source under the Lib\ directory in your Python root.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow