On Sat, Jul 22, 2017 at 7:10 AM, vitalije <[email protected]> wrote:

> Right now I am working on Write part of code. When I finish this part,
> I'll look at turning them in classes.
>

​Another benefit of classes is that they can be copied into leoAtFile.py :-)
​


> I have also thought about using re.escape to make patterns more universal.
> Those patterns can be written in different ways and some are more efficient
> than others, so I wanted to check them in the end and try to profile and
> optimize them. Though, that might not be necessary at all.
>

​Yeah, re.compile is all the optimization you'll likely need.

Speaking of small things, is there any reason you prefer, say,

     yield None, '#@+'
     yield None, sref
     yield None, '\n'​


​to:

    yield None, '#@+%s\n' % sref

?​

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to