Yes, None when used as index gives the same effect as if it was omitted.
aList[i:None] is the same as aList[i:]. The same is correct if None is the
first index.
> Substantial work would be required to fold your script into the overall
infrastructure created by the base Importer class. I would be happy to let
you take it from here, but I'm also willing to help. What would you like
to do?
I don't see what substantial work do you mean is required. It is just a
simple function, that can be added to any module, and used to import python
source file instead of whatever is used now. It would be enough to use:
class MyPyScanner:
def __init__(self, *args, **kwargs):
pass
def run(self, s, root):
root.deleteAllChildren()
root.b = s
split_root(root)
return True
instead of currently used Py_Importer. And register this class as a scanner
class for python extension.
Or in Py_Importer class, just override run method to use split_root as
shown above. This suggestion was made in accordance to the Leo version
96f282672d
of 2020-09-14 which is my current version. You may have changed this system
recently, but the basic idea remains the same. Just do not call pipeline
but instead call split_root and return True.
--
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/725800fb-9a8c-4003-8f98-07c4d607471cn%40googlegroups.com.