[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to write raw strings to Python

On 2017-07-05 17:09, Sam Chats wrote:
> Thanks, but I've tried something similar. Actually, I want to convert a string which I receive from a NNTP server to a raw string. So if I try something like:
> raw = r"%s" % string_from_server

You may me looking for repr()

-- Thomas