nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] triple quoted strings


From: Mike Frysinger
Subject: Re: [Nano-devel] triple quoted strings
Date: Mon, 16 Jun 2014 22:48:41 -0400
User-agent: KMail/4.13.1 (Linux/3.14.2; KDE/4.13.1; x86_64; ; )

On Mon 16 Jun 2014 22:56:01 Benno Schulenberg wrote:
> On Mon, Jun 16, 2014, at 19:23, Chris Allegretta wrote:
> > I'm currently frustrated by the
> > seemingly complete brokenness of python triple quoted strings,
> 
> What is it doing that you don't expect?  Do you have an example file?
> 
> There is bug #26762 (https://savannah.gnu.org/bugs/?26762)
> that puts the finger on the spot, I think:  ┬źNano ignores
> repeated occurences of start until it sees the end. This
> is ok for /*.../*...*/ but not for """..."""...""".┬╗

i run into it most when the docstring is using % expansion:

def foo():
        s = """blah blah %(here)s
foo foo""" % {'here': 'cow'}

the regex looks for """$, and since this """ isn't at the end of the line, it 
never turns off :(
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]