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.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to