[Twisted-Python] "local" semantics sought in twisted.protocols.smtp.sendmail
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)? Sergio _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus
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. Jp
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@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
participants (2)
-
Jp Calderone
-
Sergio Trejo