On Mon, Dec 6, 2021 at 8:03 PM [email protected] <[email protected]>
wrote:

> I just imported a Python file using the current devel branch (so not
> Vitaije's new code).  The file has a if __name__ == '__main__': section.
> This section is located at the end of the imported file.  I have no problem
> with that location even though the older importer put it near the top.  But
> it is not in its own node, it's just at the end of the last def node. I
> would like it to be in its own node tree, which might have the top node
> headline of  *__main__* or similar.  Also, a *__main__* section can
> sometimes be longish, and if so it should be decomposed into nodes like any
> other part of the file.
>

Thanks for this report. It's on my own list of things to do in the
post-pass.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS14%3DETogDr64qzYpvqdtMXK_E0LCbw3pFXGkxyEAgmkjA%40mail.gmail.com.

Reply via email to