Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [RFC] zsh/zpython module



Wondering whether there is a way to call some function automatically when zsh forks. I think can cope without this, but code like

    if (zsh_subshell > zpython_subshell) {
        zpython_subshell = zsh_subshell;
        PyOS_AfterFork();
    }
that needs to be added to every topmost function that may invoke python interpreter (now there is only one, but if I figure out how to define magic variables, other builtins and whatever may be defined to conveniently interact with python in C without hardcoding them as features there will be much more) does not seem like the best way to cope with this.


------------
http://titov.by - Путь выхода из кризиса!



Messages sorted by: Reverse Date, Date, Thread, Author