File names with slashes [was Re: error in os.chdir]
Thomas Jollans
tjol at tjol.eu
Tue Jul 3 11:59:00 EDT 2018
On 2018-07-03 14:06, Mikhail V wrote:
> Greg wrote:
>
>> Mikhail V wrote:
>>> s= "\"s\"" ->
>>> s= {"s"}
>>
>> But now you need to find another way to represent set literals.
>
>
> I need to find? That comment was not about (current) Python but
> rather how I think string should have been from the beginning.
>
> So you already like it and want in Python ? :-)
> Fitting it into current Python would need some prefix e.g.
>
> s = !{hello}
Nothing new under the sun.
Our old frenemy Perl has
q{abc""} == "abc\"\""
q`{}` == "{}"
Perl's sexy Japanese alter-ego Ruby has %Q{}, %q{}.
I'm sure there are more.
More information about the Python-list
mailing list