Python Forum
Question about sending escape characters by using sendall function (python2.7).
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about sending escape characters by using sendall function (python2.7).
#2
It is very simple. The string '\r\n' contains two characters: a carriage return and a line feed. The string r'\r\n' contains four characters: a backslash, the letter r, another backslash, the letter n. You need to know what the server is expecting but this is independent from Python programming.
Reply


Messages In This Thread
RE: Question about sending escape characters by using sendall function (python2.7). - by Gribouillis - May-29-2021, 09:26 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Question concerning function of a a socket pkm 4 3,859 Jun-04-2019, 07:48 AM
Last Post: DeaD_EyE
  How to use fcntl.ioctl() to get output buffer of socket after sendall() operation apsaxena 0 4,756 Dec-09-2016, 12:44 PM
Last Post: apsaxena

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020