Rawest raw string literals
python at mrabarnett.plus.com
Thu Apr 20 21:06:22 EDT 2017
On 2017-04-21 01:11, Tim Chase wrote:
> On 2017-04-20 16:40, Grant Edwards wrote:
>> How can there exist a "universal solution" even in theory?
>> There has to be some sort of "end of literal" terminator character
>> sequence. That means there has to be some sort of escaping
>> mechanism when that "end of literal" sequence appears in the
>> literal itself.
> A number of tools use a custom quote-string:
> cat <<EOT
> "single and double" with \ and /
Perl 5 also does this.
More information about the Python-list