On Apr 6, 6:55 pm, Steven D'Aprano <steve
+comp.lang.pyt...@pearwood.info> wrote:
> On Thu, 05 Apr 2012 21:28:01 -0700, rusi wrote:
> > Are there languages (other than python) in which single and double
> > quotes are equivalent?
>
> Classic REXX, CSS, JavaScript, Lua, Prolog, XPath, YAML, Modula-2, HTML,
> and (of course) English. There may be others.
>
> Other languages like Perl, PHP and Ruby support alternate delimiters with
> slightly different semantics.
>
> --
> Steven

Prolog: seems to be different, see
http://stackoverflow.com/questions/4391435/how-to-manipulate-strings-in-prolog

yaml: double seems to be like python triple, ie multi-line allowed
whereas single does not allow multi-line

http://yaml.org/spec/current.html#single%20quoted%20style/syntax
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to