This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Srinivas Sampath
Recipients SilentGhost, Srinivas Sampath
Date 2020-06-26.05:53:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAJef1+4vFcJNsdcrspEPPwrJ38SWp4uP6He-fp_xR1uWqm6CdQ@mail.gmail.com>
In-reply-to <1593149827.81.0.346503222022.issue41124@roundup.psfhosted.org>
Content
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 <report@bugs.python.org> wrote:

>
> SilentGhost <ghost.adh@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 <report@bugs.python.org>
> <https://bugs.python.org/issue41124>
> _______________________________________
>

-- 
With Regards,

Srinivas Sampath
History
Date User Action Args
2020-06-26 05:53:12Srinivas Sampathsetrecipients: + Srinivas Sampath, SilentGhost
2020-06-26 05:53:12Srinivas Sampathlinkissue41124 messages
2020-06-26 05:53:12Srinivas Sampathcreate