Srinivas Sampath <srinivas.1...@gmail.com> added the comment:
if you look at my code, couple of lines below the print, i am actually doing the send over the socket. It took me awhile to figure out why the socket is failing. I understand that the byte array is represented with a 'b' infront as part of encode function being called, and troubleshooting the code it was the first obvious difference that made me thing it was an issue. Thanks for your help On Thu, Jun 25, 2020 at 10:37 PM SilentGhost <rep...@bugs.python.org> wrote: > > SilentGhost <ghost....@runbox.com> added the comment: > > Your request is likely failing for entirely different reasons. > > What you've done is encoded a str object into bytes object, which is > represented with as literal using b prefix. It isn't being sent over the > socket. > > ---------- > nosy: +SilentGhost > resolution: -> not a bug > stage: -> resolved > status: open -> closed > > _______________________________________ > Python tracker <rep...@bugs.python.org> > <https://bugs.python.org/issue41124> > _______________________________________ > -- With Regards, Srinivas Sampath ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41124> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com