Re: 97587a8: The new python importer is now active

2016-11-17 Thread 'Terry Brown' via leo-editor
On Thu, 17 Nov 2016 11:10:20 -0800 (PST)
"Edward K. Ream"  wrote:

> Rev 97587a8 leaves the python.v2 switch ON, which enables the new 
> line-oriented python importer.
> 
> The code passes 30+ python-related unit tests, but bugs could still
> lurk. Please report any problems immediately.

Quick look it seems good.

I tried changing all the @file headline text to @auto in LeoPy.leo to
see if it could import the Leo codebase, but the experiment's not that
straight forward.  Maybe you'd have a better idea of what would be
needed to make that test work.

Some files that already were @auto seemed good though.

> Giving my hands a rest is now urgent, so I'll take a break from
> programming for several days.

That's not what `git log` says :-}

Cheers -Terry

> 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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


97587a8: The new python importer is now active

2016-11-17 Thread Edward K. Ream
Rev 97587a8 leaves the python.v2 switch ON, which enables the new 
line-oriented python importer.

The code passes 30+ python-related unit tests, but bugs could still lurk.  
Please report any problems immediately.

Giving my hands a rest is now urgent, so I'll take a break from programming 
for several days.

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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Status report: the new importers are nearing completion

2016-11-17 Thread Edward K. Ream
​​
​​On Wed, Nov 16, 2016 at 3:34 AM, Edward K. Ream 
wrote:

> On Sunday, November 13, 2016 at 6:23:21 AM UTC-6, Edward K. Ream wrote:
>
> > Work is going extremely well.  I expect to complete the conversion of
> the Python importer in a day or so.
>
> After three more days of intense work on all the importers, I expect to
> complete the Python importer later today.
>

As of rev, 8ea03788f Leo's importers pass all tests regardless of the v2
switch in importers/python.py.  This is a huge milestone.

At present, python decorators are not placed in the proper class/def nodes,
even though there is a unit test for decorators.

Theoretically, this could be fixed in the post-pass, but it will be simpler
to fix things in python_i.v2_gen_lines, where lots of scanning context data
are available.  I'll do this sometime today, and maybe even beef up the
unit test.

I shall then remove the v2 switch and retire the old python scanner.  The
complex code in basescanner.py can't be fully retired until *all* importers
have been converted to use the new code base in linescanner.py.  I'll do
that asap.

After that, I'll need to take a break. I have started icing my hands every
day.  They have taken a pounding and have to heal.

*Important*: The new importers a fundamentally simpler and more robust than
the old importers.  Despite that, there could be bugs in the new importers
that did not exist in the old.

As a result, switch-over to the new importers *will* be followed by a
period of user testing. There is no alternative, and we may as begin
testing asap.

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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.