Karsten Wolf

Results 20 comments of Karsten Wolf

I'm currently experiencing a cold so my thought might be squishy... `ximport` should allow for .bot files and distingish between .py and .bot. if extension == .bot add SB/NB functions...

I've just looked at the objects in Context.namespace, all the commands, constants etc that are loaded into the script namespace. That's about 230 entries. About 150 if I ignore the...

> In my opinion that's too much to include in a lib automatically. But there should be an option to deliberately do so.

I am new to importlib so I used the smallest change that would make it run. ```python def ximport(self, libName): lib = importlib.__import__( libName ) for name in self._ns: if...

Problems: - libraries defining functions with names from the namespace. Currently these get overwritten. - checking if a name already exists collides with module caching on following scripts.

I filtered for names. That's only half the work. Must check for the right instance of Context and before copying check the target lib for conflicts.

> Doesn't the library get exec'd during import though ? That step happens probably in importlib.__import__()

> I guess it means that you can't have a library with this `fill` and friends in the body, since that would fail during the `__import__` line ? It does...

After some contemplating: - I let the replace `_ctx` idea drop. _ctx is ugly and cheap and does the job - perhaps I'll revive it by introducing an extension for...

There is definitely an issue here. I struggle with this at least 2 releases and 6 months. On my machine vienna sometimes on launch resizes the window significantly beyond the...