[Twisted-Python] "local" semantics sought in twisted.protocols.smtp.sendmail

Jp Calderone exarkun at divmod.com
Tue Jul 27 15:15:31 EDT 2004

Sergio Trejo wrote:
> The API documentation for twisted.protocols.smtp.sendmail method states 
> that the incoming msg parameter ((a string or a file object) must 
> contain contain lines
> that end with a line feed character because, verbatim: "Line endings 
> must be
> local (I.e., '\n')" ... the URL that I'm quoting from is 
> http://www.twistedmatrix.com/documents/current/api/
> twisted.protocols.smtp.html#sendmail
> I am curious what is meant by the word "local" to describe the use of 
> line endings in the API documentation. Does local mean something 
> specific to an operating system of which the Python interpreter is 
> compiled for and runs on top of (and if so, doesn't that break the 
> philosophy of Python which is mostly OS agnostic)?

   The documentation is wrong.  Use \n to delimit newlines.  I'll go fix 
the docs in SVN.  Thanks for pointing this out.


> Sergio
> _________________________________________________________________
> MSN 8 with e-mail virus protection service: 2 months FREE* 
> http://join.msn.com/?page=features/virus
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

More information about the Twisted-Python mailing list