TypeError: send() argument 1 must be string or read-only buffer, not int

Manish Gupta (BBS) manish.gupta at utstar.com
Thu Feb 17 15:16:03 EST 2005


Hello

  invoking something like following -

       sock.send(100)

  generates the following error -

       TypeError: send() argument 1 must be string or read-only buffer, 
not int


  how can I work around this? I wish to write
  msg-length on a stream socket.

  thanks in advance.
  manish





More information about the Python-list mailing list